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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Sep 1 15:15:37 2011 UTC (8 years, 3 months ago) by darkside
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Revision bump with full Gentoo Prefix support, signed off by maintainer with discussion on IRC. Remove old version.

(Portage version: 2.1.10.3/cvs/Linux i686)

1 # Copyright 1999-2010 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-r2.ebuild,v 1.8 2010/09/19 17:50:58 armin76 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 }
35
36 src_configure() {
37 # openssl-0.9.8 now builds with -pthread on the BSD's
38 use elibc_FreeBSD && use ssl && append-ldflags -pthread
39
40 use static && append-ldflags -static
41 econf \
42 --disable-rpath \
43 $(use_with ssl) $(use_enable ssl opie) $(use_enable ssl digest) \
44 $(use_enable idn iri) \
45 $(use_enable ipv6) \
46 $(use_enable nls) \
47 $(use ssl && use_enable ntlm) \
48 $(use_enable debug)
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