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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Sep 2 06:58:11 2011 UTC (8 years ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Fix the gnutls uselfag to be wrapped around ssl one. Use use_with calls instead of bash conditions.

(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)

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.13.3-r1.ebuild,v 1.2 2011/09/01 18:33:59 grobian Exp $
4
5 EAPI=4
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.xz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~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 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 REQUIRED_USE="ntlm? ( ssl )"
24
25 DOCS=( AUTHORS MAILING-LIST NEWS README doc/sample.wgetrc )
26
27 src_prepare() {
28 epatch "${FILESDIR}"/${PN}-1.13-static-link-libz.patch
29 }
30
31 src_configure() {
32 # openssl-0.9.8 now builds with -pthread on the BSD's
33 use elibc_FreeBSD && use ssl && append-ldflags -pthread
34 # fix compilation on Solaris, we need filio.h for FIONBIO as used in
35 # the included gnutls -- force ioctl.h to include this header
36 [[ ${CHOST} == *-solaris* ]] && append-flags -DBSD_COMP=1
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_enable ntlm) \
46 $(use_enable debug)
47 }
48
49 src_install() {
50 default
51
52 use ipv6 && cat "${FILESDIR}"/wgetrc-ipv6 >> "${ED}"/etc/wgetrc
53
54 sed -i \
55 -e "s:/usr/local/etc:${EPREFIX}/etc:g" \
56 "${ED}"/etc/wgetrc \
57 "${ED}"/usr/share/man/man1/wget.1 \
58 "${ED}"/usr/share/info/wget.info
59 }

  ViewVC Help
Powered by ViewVC 1.1.20