/[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.6 - (show annotations) (download)
Tue May 20 00:59:52 2003 UTC (16 years, 4 months ago) by kumba
Branch: MAIN
Changes since 1.5: +9 -2 lines
Added gnuconfig eclass support to properly detect linux-mips && added ~mips to KEYWORDS

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

  ViewVC Help
Powered by ViewVC 1.1.20