mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 12:58:16 -07:00
Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
39 lines
904 B
Bash
39 lines
904 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit webapp
|
|
|
|
MY_P="phpPgAdmin-${PV}"
|
|
|
|
DESCRIPTION="Web-based administration for Postgres database in php"
|
|
HOMEPAGE="http://phppgadmin.sourceforge.net/"
|
|
SRC_URI="https://github.com/${PN}/${PN}/releases/download/REL_$(ver_rs 1- -)/${MY_P}.tar.bz2"
|
|
|
|
LICENSE="GPL-2"
|
|
KEYWORDS="~amd64"
|
|
IUSE=""
|
|
|
|
RDEPEND="dev-lang/php[postgres,session]"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
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
|
|
}
|