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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Dec 20 16:25:14 2002 UTC (16 years, 9 months ago) by aliz
Branch: MAIN
Security update

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/wget/wget-1.8.2-r1.ebuild,v 1.5 2002/12/15 10:44:21 bjb Exp $
4
5 IUSE="ssl nls static ipv6"
6
7 NPVER=20011209
8 S=${WORKDIR}/${P}
9 DESCRIPTION="Network utility to retrieve files from the WWW"
10 HOMEPAGE="http://www.cg.tuwien.ac.at/~prikryl/wget.html"
11 SRC_URI="ftp://prep.ai.mit.edu/gnu/wget/${P}.tar.gz
12 ftp://gatekeeper.dec.com/pub/GNU/wget/${P}.tar.gz
13 http://www.biscom.net/~cade/away/wget-new-percentage/wget-new-percentage-cvs-${NPVER}.tar.gz
14 ipv6? mirror://gentoo/${P}-ipv6-debian.patch.bz2"
15
16 RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6b )"
17 DEPEND="nls? ( sys-devel/gettext )"
18
19 SLOT="0"
20 LICENSE="GPL-2"
21 KEYWORDS="x86 ppc sparc alpha"
22
23 src_unpack() {
24 unpack ${A}
25
26 cd ${S}
27 patch -p1 < ${FILESDIR}/${PF}-gentoo.diff || die
28
29 cd ${S}/src
30 patch -p0 < ${WORKDIR}/wget-new-percentage/wnp-20011208-2.diff || die
31
32 if use ipv6
33 then
34 cd ${S}
35 patch -p1 < ${WORKDIR}/${P}-ipv6-debian.patch || die
36 fi
37 }
38
39 src_compile() {
40 local myconf
41 use nls || myconf="--disable-nls"
42 use ssl && myconf="${myconf} --with-ssl"
43 use ssl || myconf="${myconf} --without-ssl --disable-opie --disable-digest"
44 [ -z "$DEBUG" ] && myconf="${myconf} --disable-debug"
45 use ssl && CFLAGS="${CFLAGS} -I/usr/include/openssl"
46 ./configure --prefix=/usr --sysconfdir=/etc/wget \
47 --infodir=/usr/share/info --mandir=usr/share/man $myconf || die
48 if use static; then
49 make LDFLAGS="--static" || die
50 else
51 make || die
52 fi
53 }
54
55 src_install() {
56 if use build; then
57 insinto /usr
58 dobin ${S}/src/wget
59 return
60 fi
61 make prefix=${D}/usr sysconfdir=${D}/etc/wget \
62 mandir=${D}/usr/share/man infodir=${D}/usr/share/info install || die
63 dodoc AUTHORS COPYING ChangeLog MACHINES MAILING-LIST NEWS README TODO
64 dodoc doc/sample.wgetrc
65 }

  ViewVC Help
Powered by ViewVC 1.1.20