46 lines
1 KiB
Bash
46 lines
1 KiB
Bash
# Copyright 1999-2011 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-db/phppgadmin/phppgadmin-9999.ebuild,v 1.3 2011/09/21 08:50:45 mgorny Exp $
|
|
|
|
EAPI="2"
|
|
|
|
inherit webapp git-2
|
|
|
|
DESCRIPTION="Web-based administration for Postgres database in php"
|
|
HOMEPAGE="http://phppgadmin.sourceforge.net/"
|
|
EGIT_REPO_URI="git://github.com/xzilla/${PN}.git
|
|
https://github.com/xzilla/${PN}.git"
|
|
|
|
LICENSE="GPL-2"
|
|
KEYWORDS=""
|
|
IUSE=""
|
|
|
|
RDEPEND="
|
|
|| (
|
|
<dev-lang/php-5.3[pcre]
|
|
>=dev-lang/php-5.3
|
|
)
|
|
dev-lang/php[postgres,session]
|
|
"
|
|
|
|
pkg_setup() {
|
|
webapp_pkg_setup
|
|
}
|
|
|
|
src_install() {
|
|
webapp_src_preinst
|
|
|
|
local doc
|
|
local docs="CREDITS DEVELOPERS FAQ HISTORY INSTALL TODO TRANSLATORS"
|
|
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
|
|
}
|