/[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.8 - (hide annotations) (download)
Sun Jul 6 09:13:30 2003 UTC (16 years, 3 months ago) by kumba
Branch: MAIN
Branch point for: RELEASE-1_4
Changes since 1.7: +2 -2 lines
Changed ~mips to mips in KEYWORDS

1 vapier 1.4 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 aliz 1.1 # Distributed under the terms of the GNU General Public License v2
3 kumba 1.8 # $Header: /home/cvsroot/gentoo-x86/net-misc/wget/wget-1.8.2-r2.ebuild,v 1.7 2003/06/22 08:01:23 drobbins Exp $
4 kumba 1.6
5 aliz 1.1
6     IUSE="ssl nls static ipv6"
7    
8 kumba 1.6 inherit gnuconfig
9    
10 aliz 1.1 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 aliz 1.2 SRC_URI="mirror://gnu/wget/${P}.tar.gz
15 aliz 1.1 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 kumba 1.8 KEYWORDS="amd64 x86 ppc sparc alpha hppa arm mips"
24 aliz 1.1
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 kumba 1.6
43     # Make wget use up-to-date configure scripts
44     gnuconfig_update
45    
46 aliz 1.1 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