/[gentoo-x86]/net-misc/wget/wget-1.11.ebuild
Gentoo

Contents of /net-misc/wget/wget-1.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Feb 16 22:11:23 2008 UTC (11 years, 9 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/wget/wget-1.11.ebuild,v 1.2 2008/01/28 17:36:04 pva Exp $
4
5 inherit eutils flag-o-matic
6
7 DESCRIPTION="Network utility to retrieve files from the WWW"
8 HOMEPAGE="http://www.gnu.org/software/wget/"
9 SRC_URI="mirror://gnu/wget/${P}.tar.bz2"
10
11 LICENSE="GPL-3"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
14 IUSE="debug ipv6 nls socks5 ssl static"
15
16 RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6b )
17 socks5? ( net-proxy/dante )"
18 DEPEND="${RDEPEND}
19 nls? ( sys-devel/gettext )"
20
21 src_unpack() {
22 unpack ${A}
23 cd "${S}"
24 epatch "${FILESDIR}"/${P}-linking.patch
25 }
26
27 src_compile() {
28 # openssl-0.9.8 now builds with -pthread on the BSD's
29 use elibc_FreeBSD && use ssl && append-ldflags -pthread
30
31 use static && append-ldflags -static
32 econf \
33 $(use_with ssl) $(use_enable ssl opie) $(use_enable ssl digest) \
34 $(use_enable ipv6) \
35 $(use_enable nls) \
36 $(use_enable debug) \
37 $(use_with socks5 socks) \
38 || die
39 emake || die
40 }
41
42 src_install() {
43 emake DESTDIR="${D}" install || die
44 dodoc AUTHORS ChangeLog* MAILING-LIST NEWS README
45 dodoc doc/sample.wgetrc
46
47 use ipv6 && cat "${FILESDIR}"/wgetrc-ipv6 >> "${D}"/etc/wgetrc
48
49 sed -i \
50 -e 's:/usr/local/etc:/etc:g' \
51 "${D}"/etc/wgetrc \
52 "${D}"/usr/share/man/man1/wget.1 \
53 "${D}"/usr/share/info/wget.info
54 }
55
56 pkg_preinst() {
57 ewarn "The /etc/wget/wgetrc file has been relocated to /etc/wgetrc"
58 if [[ -e ${ROOT}/etc/wget/wgetrc ]] ; then
59 if [[ -e ${ROOT}/etc/wgetrc ]] ; then
60 ewarn "You have both /etc/wget/wgetrc and /etc/wgetrc ... you should delete the former"
61 else
62 einfo "Moving /etc/wget/wgetrc to /etc/wgetrc for you"
63 mv "${ROOT}"/etc/wget/wgetrc "${ROOT}"/etc/wgetrc
64 rmdir "${ROOT}"/etc/wget 2>/dev/null
65 fi
66 fi
67 }

  ViewVC Help
Powered by ViewVC 1.1.20