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