/[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.11 - (show annotations) (download)
Wed Sep 17 22:54:28 2003 UTC (16 years, 1 month ago) by avenj
Branch: MAIN
Changes since 1.10: +2 -2 lines
ia64 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.10 2003/09/05 22:01:49 msterret Exp $
4
5 inherit gnuconfig
6
7 NPVER=20011209
8 DESCRIPTION="Network utility to retrieve files from the WWW"
9 HOMEPAGE="http://www.cg.tuwien.ac.at/~prikryl/wget.html"
10 SRC_URI="mirror://gnu/wget/${P}.tar.gz
11 http://www.biscom.net/~cade/away/wget-new-percentage/wget-new-percentage-cvs-${NPVER}.tar.gz
12 ipv6? mirror://gentoo/${P}-ipv6-debian.patch.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 x86 ppc sparc alpha hppa arm mips ia64"
17 IUSE="ssl nls static ipv6 debug"
18
19 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 epatch ${FILESDIR}/${PF}-gentoo.diff
27
28 cd ${S}/src
29 epatch ${WORKDIR}/wget-new-percentage/wnp-20011208-2.diff
30
31 if use ipv6
32 then
33 cd ${S}
34 epatch ${WORKDIR}/${P}-ipv6-debian.patch
35 fi
36 }
37
38 src_compile() {
39 # Make wget use up-to-date configure scripts
40 gnuconfig_update
41
42 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 use debug && myconf="${myconf} --disable-debug"
47 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 src_install() {
58 if use build; then
59 insinto /usr
60 dobin ${S}/src/wget
61 return
62 fi
63 make prefix=${D}/usr sysconfdir=${D}/etc/wget \
64 mandir=${D}/usr/share/man infodir=${D}/usr/share/info install || die
65 dodoc AUTHORS COPYING ChangeLog MACHINES MAILING-LIST NEWS README TODO
66 dodoc doc/sample.wgetrc
67 }

  ViewVC Help
Powered by ViewVC 1.1.20