/[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.13 - (hide annotations) (download)
Sun Nov 2 07:23:10 2003 UTC (16 years ago) by seemant
Branch: MAIN
Changes since 1.12: +2 -2 lines
src_uri fixes

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

  ViewVC Help
Powered by ViewVC 1.1.20