You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/www-apps/phprojekt/phprojekt-6.1.2.ebuild

42 lines
1.0 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit vcs-snapshot webapp
MY_PN="PHProjekt"
DESCRIPTION="Project management and coordination system"
HOMEPAGE="http://www.phprojekt.com/"
SRC_URI="https://github.com/Mayflower/${MY_PN}/tarball/${PV} -> ${P}.tar.gz"
LICENSE="GPL-3"
KEYWORDS="~amd64 ppc x86"
IUSE="postgres mysql"
RDEPEND="virtual/httpd-php
dev-lang/php[gd,imap,mysql?,pdo,postgres?,session,zlib]"
# need at least one option for a database
REQUIRED_USE="|| ( mysql postgres )"
src_install() {
webapp_src_preinst
dodoc phprojekt/INSTALL phprojekt/UPDATE phprojekt/README
dodoc phprojekt/configuration.php-dist
cp -R phprojekt/* "${D}/${MY_HTDOCSDIR}"
cp phprojekt/.htaccess "${D}/${MY_HTDOCSDIR}"
webapp_serverowned "${MY_HTDOCSDIR}"
dodir "${MY_HOSTROOTDIR}/phprojekt_private"
webapp_serverowned "${MY_HOSTROOTDIR}/phprojekt_private"
webapp_postinst_txt en "${FILESDIR}"/postinstall-6-en.txt
webapp_src_install
}