--- dev-db/pgfouine/pgfouine-0.2-r1.ebuild 2005-12-28 07:09:48.000000000 -0800 +++ dev-db/pgfouine/pgfouine-0.5.ebuild 2006-05-17 16:00:34.210738568 -0700 @@ -2,16 +2,16 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -inherit eutils webapp depend.php +inherit eutils webapp depend.php -MY_P="pgfouine-0.2" +MY_P="pgfouine-0.5" DESCRIPTION="Web-based PostgreSQL log analyzer used to determine which queries you should optimize to speed up your PostgreSQL based application." HOMEPAGE="http://pgfouine.projects.postgresql.org/" -SRC_URI="http://pgfoundry.org/frs/download.php/545/${P}.tar.gz" +SRC_URI="http://pgfoundry.org/frs/download.php/828/${P}.tar.gz" LICENSE="GPL-2" -KEYWORDS="~alpha amd64 hppa ~mips ppc ~sparc x86" -IUSE="vhosts tests" -RDEPEND=">=dev-db/postgresql-7.3 <=dev-db/postgresql-8.1.1 +KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86" +IUSE="vhosts tests graphs" +RDEPEND=">=dev-db/postgresql-7.3 <=dev-db/postgresql-8.1.3 virtual/php sys-apps/findutils" S=${WORKDIR}/${MY_P} @@ -44,13 +44,16 @@ pkg_setup() { require_php_cli webapp_pkg_setup has_php + if use graphs;then + require_php_with_use "gd" + fi } src_unpack() { unpack ${A} cd ${S} - epatch ${FILESDIR}/pgfouine.php-0.2.patch - find ${S} -name rpm-specific\* -or \( -type d -name patches -prune \) | xargs rm -rf + find ${S} -name rpm-specific\* -or \( -type d -name patches -prune \) -or \ + \( -type f -name pgfouine.spec \) | xargs rm -rf if ! use tests;then find ${S} -type d -name tests -prune | xargs rm -rf fi