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

Contents of /net-misc/wget/wget-1.13.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (hide annotations) (download)
Sat Jan 4 18:45:31 2014 UTC (6 years ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +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 vapier 1.16 # Copyright 1999-2013 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 polynomial-c 1.17 # $Header: /var/cvsroot/gentoo-x86/net-misc/wget/wget-1.13.4-r1.ebuild,v 1.16 2013/01/28 20:06:23 vapier Exp $
4 vapier 1.1
5     EAPI="4"
6    
7     inherit flag-o-matic toolchain-funcs autotools
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.xz"
12    
13     LICENSE="GPL-3"
14     SLOT="0"
15 armin76 1.14 KEYWORDS="alpha amd64 arm 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 ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16 vapier 1.1 IUSE="debug gnutls idn ipv6 nls ntlm +ssl static"
17    
18 vapier 1.3 LIB_DEPEND="idn? ( net-dns/libidn[static-libs(+)] )
19 vapier 1.1 ssl? (
20     gnutls? ( net-libs/gnutls[static-libs(+)] )
21 vapier 1.16 !gnutls? ( dev-libs/openssl:0[static-libs(+)] )
22 vapier 1.1 )"
23 vapier 1.3 RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
24 vapier 1.1 DEPEND="${RDEPEND}
25     app-arch/xz-utils
26 jdhore 1.6 virtual/pkgconfig
27 vapier 1.3 static? ( ${LIB_DEPEND} )
28 vapier 1.1 nls? ( sys-devel/gettext )"
29    
30     REQUIRED_USE="ntlm? ( !gnutls ssl ) gnutls? ( ssl )"
31    
32     DOCS=( AUTHORS MAILING-LIST NEWS README doc/sample.wgetrc )
33    
34     src_prepare() {
35     epatch "${FILESDIR}"/${P}-openssl-pkg-config.patch
36 vapier 1.9 epatch "${FILESDIR}"/${P}-no-gets.patch
37 vapier 1.1 eautoreconf
38     }
39    
40     src_configure() {
41     # openssl-0.9.8 now builds with -pthread on the BSD's
42     use elibc_FreeBSD && use ssl && append-ldflags -pthread
43     # fix compilation on Solaris, we need filio.h for FIONBIO as used in
44     # the included gnutls -- force ioctl.h to include this header
45     [[ ${CHOST} == *-solaris* ]] && append-flags -DBSD_COMP=1
46    
47     # the configure script contains a few hacks to workaround openssl
48     # build limitations. disable those, and use openssl's pkg-config.
49     eval export ac_cv_lib_{z_compress,dl_{dlopen,shl_load}}=no
50    
51     if use static ; then
52     append-ldflags -static
53     tc-export PKG_CONFIG
54     PKG_CONFIG+=" --static"
55     fi
56     econf \
57     --disable-rpath \
58     $(use_with ssl ssl $(usex gnutls gnutls openssl)) \
59     $(use_enable ssl opie) \
60     $(use_enable ssl digest) \
61     $(use_enable idn iri) \
62     $(use_enable ipv6) \
63     $(use_enable nls) \
64     $(use_enable ntlm) \
65     $(use_enable debug)
66     }
67    
68     src_install() {
69     default
70    
71     sed -i \
72     -e "s:/usr/local/etc:${EPREFIX}/etc:g" \
73     "${ED}"/etc/wgetrc \
74     "${ED}"/usr/share/man/man1/wget.1 \
75     "${ED}"/usr/share/info/wget.info
76     }

  ViewVC Help
Powered by ViewVC 1.1.20