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

Contents of /net-misc/wget/wget-1.11.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Sep 23 16:34:05 2009 UTC (9 years, 11 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2009 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.11.1.ebuild,v 1.8 2009/08/18 08:33:57 vapier Exp $
4
5 inherit eutils flag-o-matic
6
7 DESCRIPTION="Network utility to retrieve files from the WWW"
8 HOMEPAGE="http://www.gnu.org/software/wget/"
9 SRC_URI="mirror://gnu/wget/${P}.tar.bz2"
10
11 LICENSE="GPL-3"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
14 IUSE="debug ipv6 nls ssl static"
15
16 RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6b )"
17 DEPEND="${RDEPEND}
18 nls? ( sys-devel/gettext )"
19
20 src_unpack() {
21 unpack ${A}
22 cd "${S}"
23 epatch "${FILESDIR}"/${PN}-1.11-linking.patch
24 }
25
26 src_compile() {
27 # openssl-0.9.8 now builds with -pthread on the BSD's
28 use elibc_FreeBSD && use ssl && append-ldflags -pthread
29
30 use static && append-ldflags -static
31 econf \
32 $(use_with ssl) $(use_enable ssl opie) $(use_enable ssl digest) \
33 $(use_enable ipv6) \
34 $(use_enable nls) \
35 $(use_enable debug) \
36 || die
37 emake || die
38 }
39
40 src_install() {
41 emake DESTDIR="${D}" install || die
42 dodoc AUTHORS ChangeLog* MAILING-LIST NEWS README
43 dodoc doc/sample.wgetrc
44
45 use ipv6 && cat "${FILESDIR}"/wgetrc-ipv6 >> "${D}"/etc/wgetrc
46
47 sed -i \
48 -e 's:/usr/local/etc:/etc:g' \
49 "${D}"/etc/wgetrc \
50 "${D}"/usr/share/man/man1/wget.1 \
51 "${D}"/usr/share/info/wget.info
52 }
53
54 pkg_preinst() {
55 ewarn "The /etc/wget/wgetrc file has been relocated to /etc/wgetrc"
56 if [[ -e ${ROOT}/etc/wget/wgetrc ]] ; then
57 if [[ -e ${ROOT}/etc/wgetrc ]] ; then
58 ewarn "You have both /etc/wget/wgetrc and /etc/wgetrc ... you should delete the former"
59 else
60 einfo "Moving /etc/wget/wgetrc to /etc/wgetrc for you"
61 mv "${ROOT}"/etc/wget/wgetrc "${ROOT}"/etc/wgetrc
62 rmdir "${ROOT}"/etc/wget 2>/dev/null
63 fi
64 fi
65 }

  ViewVC Help
Powered by ViewVC 1.1.20