# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils webapp depend.php depend.apache DESCRIPTION="A simpler web photo gallery" HOMEPAGE="http://www.zenphoto.org/" SRC_URI="http://www.zenphoto.org/files/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" IUSE="exif" RDEPEND=">=virtual/mysql-3.23" need_httpd_cgi need_php_httpd S=${WORKDIR}/${PN} pkg_setup() { local require="mysql gd" use exif && require="${require} exif" require_php_with_use ${require} webapp_pkg_setup } src_install () { webapp_src_preinst dodoc README.html lighttpd-rewrite.txt example_robots.txt cp -R [[:lower:]]* ${D}/${MY_HTDOCSDIR} cp ${D}/${MY_HTDOCSDIR}/zp-core/zp-config.php{.example,} webapp_serverowned "${MY_HTDOCSDIR}"/cache webapp_serverowned "${MY_HTDOCSDIR}"/albums webapp_configfile "${MY_HTDOCSDIR}"/zp-core/zp-config.php webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt webapp_src_install }