/[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.3 - (hide annotations) (download)
Sat Feb 8 23:57:57 2003 UTC (16 years, 8 months ago) by gmsoft
Branch: MAIN
Changes since 1.2: +2 -2 lines
Added hppa to keywords.

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

  ViewVC Help
Powered by ViewVC 1.1.20