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