# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/net-misc/wget/wget-1.9.1-r2.ebuild,v 1.8 2004/03/18 21:51:01 seemant Exp $ inherit gnuconfig NPVER=20031022 DESCRIPTION="Network utility to retrieve files from the WWW" HOMEPAGE="http://wget.sunsite.dk/" SRC_URI="mirror://gnu/wget/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha hppa ~mips ~amd64 ~ia64 ppc64 s390" IUSE="ssl nls static ipv6 debug socks5 penis" RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6b )" DEPEND="nls? ( sys-devel/gettext ) sys-devel/autoconf" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}+ipvmisc.patch use penis && epatch ${FILESDIR}/${P}-penis.diff } src_compile() { #fix bug 34515, REMOVE THIS AFTER 1.9.1 if use nls; then cd po cat de.po | iconv -f UTF-8 -t ISO-8859-1 > de.po.new mv de.po.new de.po cd .. fi # Make wget use up-to-date configure scripts gnuconfig_update local myconf use ssl \ && myconf="${myconf} --with-ssl" \ || myconf="${myconf} --without-ssl --disable-opie --disable-digest" use ssl && CFLAGS="${CFLAGS} -I/usr/include/openssl" econf \ --sysconfdir=/etc/wget \ `use_enable ipv6` \ `use_enable nls` \ `use_enable debug` \ `use_with socks5 socks` \ ${myconf} || die if use static; then emake LDFLAGS="--static" || die else emake || 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 }