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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Sun Nov 9 09:19:05 2014 UTC (4 years, 10 months ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +2 -2 lines
ppc/ppc64 stable wrt bug #527056

(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0xC42EB5D6)

1 # Copyright 1999-2014 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.16.ebuild,v 1.13 2014/11/06 23:39:12 vapier Exp $
4
5 EAPI="4"
6 PYTHON_COMPAT=( python{3_3,3_4} )
7
8 inherit flag-o-matic python-any-r1 toolchain-funcs autotools
9
10 DESCRIPTION="Network utility to retrieve files from the WWW"
11 HOMEPAGE="http://www.gnu.org/software/wget/"
12 SRC_URI="mirror://gnu/wget/${P}.tar.xz"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
17 IUSE="debug gnutls idn ipv6 nls ntlm pcre +ssl static test uuid zlib"
18
19 LIB_DEPEND="idn? ( net-dns/libidn[static-libs(+)] )
20 pcre? ( dev-libs/libpcre[static-libs(+)] )
21 ssl? (
22 gnutls? ( net-libs/gnutls[static-libs(+)] )
23 !gnutls? ( dev-libs/openssl:0[static-libs(+)] )
24 )
25 uuid? ( sys-apps/util-linux[static-libs(+)] )
26 zlib? ( sys-libs/zlib[static-libs(+)] )"
27 RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
28 DEPEND="${RDEPEND}
29 app-arch/xz-utils
30 virtual/pkgconfig
31 static? ( ${LIB_DEPEND} )
32 test? (
33 ${PYTHON_DEPS}
34 dev-lang/perl
35 dev-perl/HTTP-Daemon
36 dev-perl/HTTP-Message
37 dev-perl/IO-Socket-SSL
38 )
39 nls? ( sys-devel/gettext )"
40
41 REQUIRED_USE="ntlm? ( !gnutls ssl ) gnutls? ( ssl )"
42
43 DOCS=( AUTHORS MAILING-LIST NEWS README doc/sample.wgetrc )
44
45 pkg_setup() {
46 use test && python-any-r1_pkg_setup
47 }
48
49 src_prepare() {
50 epatch "${FILESDIR}"/${PN}-1.16-pkg-config.patch
51 epatch "${FILESDIR}"/${PN}-1.16-openssl-header.patch
52 epatch "${FILESDIR}"/${PN}-1.16-tests-skip.patch
53 epatch "${FILESDIR}"/${P}-openssl-no-ssl3.patch
54 epatch "${FILESDIR}"/${P}-fix-proxy-test-race.patch
55 eautoreconf
56 }
57
58 src_configure() {
59 # openssl-0.9.8 now builds with -pthread on the BSD's
60 use elibc_FreeBSD && use ssl && append-ldflags -pthread
61 # fix compilation on Solaris, we need filio.h for FIONBIO as used in
62 # the included gnutls -- force ioctl.h to include this header
63 [[ ${CHOST} == *-solaris* ]] && append-flags -DBSD_COMP=1
64
65 if use static ; then
66 append-ldflags -static
67 tc-export PKG_CONFIG
68 PKG_CONFIG+=" --static"
69 fi
70 econf \
71 --disable-rpath \
72 $(use_with ssl ssl $(usex gnutls gnutls openssl)) \
73 $(use_enable ssl opie) \
74 $(use_enable ssl digest) \
75 $(use_enable idn iri) \
76 $(use_enable ipv6) \
77 $(use_enable nls) \
78 $(use_enable ntlm) \
79 $(use_enable pcre) \
80 $(use_enable debug) \
81 $(use_with uuid libuuid) \
82 $(use_with zlib)
83 }
84
85 src_test() {
86 emake check
87 }
88
89 src_install() {
90 default
91
92 sed -i \
93 -e "s:/usr/local/etc:${EPREFIX}/etc:g" \
94 "${ED}"/etc/wgetrc \
95 "${ED}"/usr/share/man/man1/wget.1 \
96 "${ED}"/usr/share/info/wget.info
97 }

  ViewVC Help
Powered by ViewVC 1.1.20