/[gentoo-x86]/net-misc/wget/wget-1.9.1-r2.ebuild
Gentoo

Contents of /net-misc/wget/wget-1.9.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.23 - (show annotations) (download)
Tue May 10 12:22:31 2005 UTC (14 years, 7 months ago) by seemant
Branch: MAIN
CVS Tags: HEAD
Changes since 1.22: +1 -1 lines
FILE REMOVED
remove crufty ebuilds
(Portage version: 2.0.51.21-r1)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/wget/wget-1.9.1-r2.ebuild,v 1.22 2005/01/09 11:31:48 swegener Exp $
4
5 inherit gnuconfig eutils
6
7 NPVER=20031022
8 DESCRIPTION="Network utility to retrieve files from the WWW"
9 HOMEPAGE="http://wget.sunsite.dk/"
10 SRC_URI="mirror://gnu/wget/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ~ppc ppc64 ppc-macos s390 sh ~sparc ~x86"
15 IUSE="build debug ipv6 nls socks5 ssl static"
16
17 RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6b )"
18 DEPEND="${RDEPEND}
19 nls? ( sys-devel/gettext )
20 sys-devel/autoconf"
21
22 src_unpack() {
23 unpack ${A}
24 cd ${S}
25 epatch ${FILESDIR}/${P}+ipvmisc.patch
26 epatch ${FILESDIR}/${PN}-1.9-uclibc.patch
27 epatch ${FILESDIR}/${P}-locale.patch
28 }
29
30 src_compile() {
31 # Make wget use up-to-date configure scripts
32 gnuconfig_update
33
34 local myconf
35 use ssl \
36 && myconf="${myconf} --with-ssl" \
37 || myconf="${myconf} --without-ssl --disable-opie --disable-digest"
38
39 use ssl && CFLAGS="${CFLAGS} -I/usr/include/openssl"
40
41 econf \
42 --sysconfdir=/etc/wget \
43 `use_enable ipv6` \
44 `use_enable nls` \
45 `use_enable debug` \
46 `use_with socks5 socks` \
47 ${myconf} || die
48
49 if use static; then
50 emake LDFLAGS="--static" || die
51 else
52 emake || die
53 fi
54 }
55
56 src_install() {
57 if use build; then
58 insinto /usr
59 dobin ${S}/src/wget
60 return
61 fi
62 make prefix=${D}/usr sysconfdir=${D}/etc/wget \
63 mandir=${D}/usr/share/man infodir=${D}/usr/share/info install || die
64 dodoc AUTHORS COPYING ChangeLog MACHINES MAILING-LIST NEWS README TODO
65 dodoc doc/sample.wgetrc
66 }

  ViewVC Help
Powered by ViewVC 1.1.20