# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp DESCRIPTION="Zoph (Zoph Organizes Photos) is a web based digital image presentation and management system. In other words, a photo album. It is built with PHP, MySQL and Perl." HOMEPAGE="http://zoph.sourceforge.net/" SRC_URI="mirror://sourceforge/zoph/${P}.tar.gz" LICENSE="GPL" KEYWORDS="alpha amd64 hppa ppc sparc x86" IUSE="" RDEPEND=">=dev-db/mysql-3.23 =net-www/apache-1.3.24-r1 >=dev-php/mod_php-4.0.4 >=media-gfx/jhead-1.2 >=dev-lang/perl-5.6 >=media-gfx/imagemagick-5.3 dev-perl/DBI dev-perl/DBD-mysql dev-perl/ImageSize" S=${WORKDIR}/${P} src_install() { webapp_src_preinst for file in CHANGELOG FAQ INSTALL MANUAL README REQUIREMENTS UPGRADE do dodoc ${file} rm -f ${file} done for dir in php sql bin contrib lang do cp -R $dir ${D}/${MY_APPDIR} done mv ${D}/${MY_APPDIR}/php/* ${D}/${MY_HTDOCSDIR} mv ${D}/${MY_APPDIR}/lang ${D}/${MY_HTDOCSDIR} rm -r ${D}/${MY_APPDIR}/php ${D}/${MY_APPDIR}/sql ${D}/${MY_APPDIR}/lang # config files webapp_configfile ${MY_HTDOCSDIR}/config.inc.php dohtml docs/* webapp_sqlscript mysql sql/zoph.sql webapp_sqlscript mysql sql/zoph_update-0.4.sql 0.3.3 dodir /bin dosym ${MY_APPDIR}/bin/zophImport.pl /bin/zophImport.pl dosym ${MY_APPDIR}/bin/zophExport.pl /bin/zophExport.pl doman man/*.gz webapp_src_install webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt }