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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri Nov 26 22:49:51 2010 UTC (9 years ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2009 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.12.ebuild,v 1.9 2009/10/18 14:26:26 ranger 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 x86 ~sparc-fbsd ~x86-fbsd"
14 IUSE="debug idn ipv6 nls ntlm ssl static"
15
16 RDEPEND="idn? ( net-dns/libidn )
17 ssl? ( >=dev-libs/openssl-0.9.6b )"
18 DEPEND="${RDEPEND}
19 nls? ( sys-devel/gettext )"
20
21 pkg_setup() {
22 if ! use ssl && use ntlm ; then
23 elog "USE=ntlm requires USE=ssl, so disabling ntlm support due to USE=-ssl"
24 fi
25 }
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30 epatch "${FILESDIR}"/${PN}-1.12-linking.patch
31 epatch "${FILESDIR}"/${P}-debug-tests.patch #286173
32 }
33
34 src_compile() {
35 # openssl-0.9.8 now builds with -pthread on the BSD's
36 use elibc_FreeBSD && use ssl && append-ldflags -pthread
37
38 use static && append-ldflags -static
39 econf \
40 --disable-rpath \
41 $(use_with ssl) $(use_enable ssl opie) $(use_enable ssl digest) \
42 $(use_enable idn iri) \
43 $(use_enable ipv6) \
44 $(use_enable nls) \
45 $(use ssl && use_enable ntlm) \
46 $(use_enable debug) \
47 || die
48 emake || die
49 }
50
51 src_install() {
52 emake DESTDIR="${D}" install || die
53 dodoc AUTHORS ChangeLog* MAILING-LIST NEWS README
54 dodoc doc/sample.wgetrc
55
56 use ipv6 && cat "${FILESDIR}"/wgetrc-ipv6 >> "${D}"/etc/wgetrc
57
58 sed -i \
59 -e 's:/usr/local/etc:/etc:g' \
60 "${D}"/etc/wgetrc \
61 "${D}"/usr/share/man/man1/wget.1 \
62 "${D}"/usr/share/info/wget.info
63 }
64
65 pkg_preinst() {
66 ewarn "The /etc/wget/wgetrc file has been relocated to /etc/wgetrc"
67 if [[ -e ${ROOT}/etc/wget/wgetrc ]] ; then
68 if [[ -e ${ROOT}/etc/wgetrc ]] ; then
69 ewarn "You have both /etc/wget/wgetrc and /etc/wgetrc ... you should delete the former"
70 else
71 einfo "Moving /etc/wget/wgetrc to /etc/wgetrc for you"
72 mv "${ROOT}"/etc/wget/wgetrc "${ROOT}"/etc/wgetrc
73 rmdir "${ROOT}"/etc/wget 2>/dev/null
74 fi
75 fi
76 }

  ViewVC Help
Powered by ViewVC 1.1.20