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