--- privoxy-3.0.3-r1.ebuild 2005-02-24 16:43:54.000000000 +0100 +++ /usr/portage/local/www-proxy/privoxy/privoxy-3.0.3-r1.ebuild 2005-02-24 18:35:15.000000000 +0100 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-proxy/privoxy/privoxy-3.0.3-r1.ebuild,v 1.1 2005/02/24 15:43:54 mrness Exp $ -inherit eutils +inherit toolchain-funcs eutils HOMEPAGE="http://www.privoxy.org" DESCRIPTION="A web proxy with advanced filtering capabilities for protecting privacy against internet junk." @@ -15,7 +15,7 @@ LICENSE="GPL-2" DEPEND=">=sys-apps/sed-4 - sys-devel/autoconf + =sys-devel/autoconf-2.1* virtual/libc pcre? ( dev-libs/libpcre )" @@ -33,16 +33,25 @@ src_unpack() { unpack ${A} cd ${S} - sed -i -e 's:confdir .:confdir /etc/privoxy:' \ + + # update to privoxy 3.0.3-2 + epatch ${FILESDIR}/privoxy-3.0.3.2.patch + rm ${S}/autom4te.cache/{output.0,requests,traces.0} + + sed -e 's:confdir .:confdir /etc/privoxy:' \ -e 's:logdir .:logdir /var/log/privoxy:' \ - -e 's:logfile logfile:logfile privoxy.log:' ${S}/config - sed -i 's:^\+set-image-blocker{pattern}:+set-image-blocker{blank}:' ${S}/default.action.master + -e 's:logfile logfile:logfile privoxy.log:' \ + -i ${S}/config || die "sed failed." + sed -e 's:^\+set-image-blocker{pattern}:+set-image-blocker{blank}:' \ + -i ${S}/default.action.master || die "sed 2 failed." + export WANT_AUTOCONF=2.1 autoheader || die "autoheader failed" autoconf || die "autoconf failed" } src_compile() { + export CC=$(tc-getCC) econf \ $(use_enable pcre dynamic-pcre) \ --sysconfdir=/etc/privoxy || die "econf failed"