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

Contents of /net-misc/wget/wget-1.9.1-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue May 10 15:57:54 2005 UTC (14 years, 5 months ago) by seemant
Branch: MAIN
Changes since 1.1: +3 -2 lines
keywords all to testing
(Portage version: 2.0.51.21-r1)

1 # Copyright 1999-2005 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.9.1-r4.ebuild,v 1.1 2005/05/10 15:56:47 seemant Exp $
4
5 inherit gnuconfig eutils flag-o-matic
6
7 IUSE="build debug ipv6 nls socks5 ssl static"
8
9 PATCHVER=0.2
10 DESCRIPTION="Network utility to retrieve files from the WWW"
11 HOMEPAGE="http://wget.sunsite.dk/"
12 SRC_URI="mirror://gnu/wget/${P}.tar.gz
13 mirror://gentoo/${P}-gentoo-${PATCHVER}.tar.bz2
14 http://dev.gentoo.org/~seemant/distfiles/${P}-gentoo-${PATCHVER}.tar.bz2"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~ppc-macos ~s390 ~sh
19 ~sparc ~x86"
20
21 RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6b )
22 socks5? ( net-proxy/dante )"
23
24 DEPEND="${RDEPEND}
25 nls? ( sys-devel/gettext )
26 sys-devel/autoconf"
27
28
29 PATCHDIR="${WORKDIR}/patches"
30
31 src_unpack() {
32 unpack ${A} ; cd ${S}
33 EPATCH_SUFFIX="patch" epatch ${PATCHDIR}/gentoo
34 EPATCH_SUFFIX="patch" epatch ${PATCHDIR}/mandrake
35 }
36
37 src_compile() {
38 # Make wget use up-to-date configure scripts
39 gnuconfig_update
40
41 use ssl && append-flags -I/usr/include/openssl
42
43 econf \
44 --sysconfdir=/etc/wget \
45 $(use_with ssl) $(use_enable ssl opie) $(use_enable ssl digest) \
46 $(use_enable ipv6) \
47 $(use_enable nls) \
48 $(use_enable debug) \
49 $(use_with socks5 socks) \
50 || die
51
52 if use static; then
53 emake LDFLAGS="--static" || die
54 else
55 emake || die
56 fi
57 }
58
59 src_install() {
60 if use build; then
61 insinto /usr
62 dobin ${S}/src/wget
63 return
64 fi
65
66 make DESTDIR=${D} install || die
67 dodoc AUTHORS COPYING ChangeLog MACHINES MAILING-LIST NEWS README TODO
68 dodoc doc/sample.wgetrc
69 }

  ViewVC Help
Powered by ViewVC 1.1.20