# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="a caching web proxy" SRC_URI="http://www.pps.jussieu.fr/~jch/software/files/${P}.tar.gz" HOMEPAGE="http://www.pps.jussieu.fr/~jch/software/polipo/" SLOT="0" LICENSE="MIT" KEYWORDS="x86" IUSE="ipv6" edit_makefile () { einfo "Editing Makefile..." sed -i 's:^CFLAGS =:CFLAGS +=:' Makefile || die "sed Makefile died" sed -i 's:dir=:dir=$(TARGET):' Makefile || die "sed Makefile died" } src_compile() { edit_makefile use ipv6 \ && append-flags -DHAVE_IPv6 \ || append-flags -DNO_IPv6 emake CDEBUGFLAGS="" LOCAL_ROOT=/usr/share/doc/${P}/html all || \ die "emake failed" } src_install() { emake \ TARGET=${D} \ PREFIX=/usr \ INFODIR=/usr/share/info \ LOCAL_ROOT=/usr/share/doc/${P}/html \ install || die "make install failed" dodoc CHANGES COPYING INSTALL README prepman usr dodir /var/cache/polipo dodir /etc/polipo insinto /etc/polipo doins {config.sample,forbidden.sample} exeinto /etc/init.d newexe ${FILESDIR}/polipo.init.d polipo }