blob: d2e48ed3e7c9002fe70649c3acfe25f8e371a042 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/phppgadmin/phppgadmin-3.5.4.ebuild,v 1.8 2006/02/15 22:32:54 rl03 Exp $
inherit eutils webapp depend.php
IUSE=""
# This package insists on uppercase letters
MY_PN=phpPgAdmin
MY_P=${MY_PN}-${PV}
S="${WORKDIR}/${MY_PN}"
DESCRIPTION="Web-based administration for Postgres database in php"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
HOMEPAGE="http://phppgadmin.sourceforge.net/"
LICENSE="GPL-2"
KEYWORDS="amd64 hppa ppc sparc x86"
need_php
pkg_setup() {
webapp_pkg_setup
require_php_with_use pcre postgres session
}
src_install() {
webapp_src_preinst
local docs="DEVELOPERS FAQ HISTORY INSTALL TODO TRANSLATORS CREDITS BUGS"
dodoc ${docs}
mv conf/config.inc.php-dist conf/config.inc.php
cp -r * ${D}${MY_HTDOCSDIR}
for doc in ${docs} INSTALL LICENSE; do
rm -f ${D}${MY_HTDOCSDIR}/${doc}
done
webapp_configfile ${MY_HTDOCSDIR}/conf/config.inc.php
webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
webapp_src_install
}
|