# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp eutils depend.php DESCRIPTION="This is a sample skeleton ebuild file" HOMEPAGE="http://foo.bar.com/" MY_PN=WebCalendar MY_P=${MY_PN}-${PV} SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" LICENSE="" KEYWORDS="x86" IUSE="mysql postgres sqlite" DEPEND="" RDEPEND="virtual/php mysql? ( >=dev-db/mysql-4 ) postgres? ( dev-db/postgresql ) sqlite? ( dev-db/sqlite ) " S="${WORKDIR}/${MY_P}" pkg_setup () { webapp_pkg_setup use mysql && require_php_with_use mysql use postgres && require_php_with_use postgres use sqlite && require_php_with_use sqlite } src_install() { webapp_src_preinst cp -R * ${D}/${MY_HTDOCSDIR} dohtml README.html webapp_serverowned ${MY_HTDOCSDIR}/includes webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_src_install }