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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Jan 4 18:45:31 2014 UTC (5 years, 11 months ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Removed old versions and files

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)

1 # Copyright 1999-2011 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-r3.ebuild,v 1.9 2011/02/28 23:40:41 ranger Exp $
4
5 EAPI="2"
6
7 inherit eutils flag-o-matic
8
9 DESCRIPTION="Network utility to retrieve files from the WWW"
10 HOMEPAGE="http://www.gnu.org/software/wget/"
11 SRC_URI="mirror://gnu/wget/${P}.tar.bz2"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
16 IUSE="debug idn ipv6 nls ntlm +ssl static"
17
18 RDEPEND="idn? ( net-dns/libidn )
19 ssl? ( >=dev-libs/openssl-0.9.6b )"
20 DEPEND="${RDEPEND}
21 nls? ( sys-devel/gettext )"
22
23 pkg_setup() {
24 if ! use ssl && use ntlm ; then
25 elog "USE=ntlm requires USE=ssl, so disabling ntlm support due to USE=-ssl"
26 fi
27 }
28
29 src_prepare() {
30 epatch "${FILESDIR}"/${PN}-1.12-linking.patch
31 epatch "${FILESDIR}"/${PN}-1.12-sni.patch #301312
32 epatch "${FILESDIR}"/${P}-debug-tests.patch #286173
33 epatch "${FILESDIR}"/${P}-CVE-2010-2252.patch #329941
34 epatch "${FILESDIR}"/${P}-sae.patch #344939
35 }
36
37 src_configure() {
38 # openssl-0.9.8 now builds with -pthread on the BSD's
39 use elibc_FreeBSD && use ssl && append-ldflags -pthread
40
41 use static && append-ldflags -static
42 econf \
43 --disable-rpath \
44 $(use_with ssl) $(use_enable ssl opie) $(use_enable ssl digest) \
45 $(use_enable idn iri) \
46 $(use_enable ipv6) \
47 $(use_enable nls) \
48 $(use ssl && use_enable ntlm) \
49 $(use_enable debug)
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install || die
54 dodoc AUTHORS ChangeLog* MAILING-LIST NEWS README
55 dodoc doc/sample.wgetrc
56
57 use ipv6 && cat "${FILESDIR}"/wgetrc-ipv6 >> "${D}"/etc/wgetrc
58
59 sed -i \
60 -e 's:/usr/local/etc:/etc:g' \
61 "${D}"/etc/wgetrc \
62 "${D}"/usr/share/man/man1/wget.1 \
63 "${D}"/usr/share/info/wget.info
64 }
65
66 pkg_preinst() {
67 ewarn "The /etc/wget/wgetrc file has been relocated to /etc/wgetrc"
68 if [[ -e ${ROOT}/etc/wget/wgetrc ]] ; then
69 if [[ -e ${ROOT}/etc/wgetrc ]] ; then
70 ewarn "You have both /etc/wget/wgetrc and /etc/wgetrc ... you should delete the former"
71 else
72 einfo "Moving /etc/wget/wgetrc to /etc/wgetrc for you"
73 mv "${ROOT}"/etc/wget/wgetrc "${ROOT}"/etc/wgetrc
74 rmdir "${ROOT}"/etc/wget 2>/dev/null
75 fi
76 fi
77 }

  ViewVC Help
Powered by ViewVC 1.1.20