diff options
Diffstat (limited to 'www-apps/coppermine/coppermine-1.4.18.ebuild')
-rw-r--r-- | www-apps/coppermine/coppermine-1.4.18.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/www-apps/coppermine/coppermine-1.4.18.ebuild b/www-apps/coppermine/coppermine-1.4.18.ebuild new file mode 100644 index 000000000000..7f2cf3d9e8af --- /dev/null +++ b/www-apps/coppermine/coppermine-1.4.18.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/coppermine/coppermine-1.4.18.ebuild,v 1.1 2008/04/25 11:26:52 hollow Exp $ + +inherit webapp versionator depend.php + +DESCRIPTION="Web picture gallery written in PHP with a MySQL backend" +HOMEPAGE="http://coppermine.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/cpg${PV}.zip" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~sparc ~x86" +IUSE="imagemagick" + +DEPEND="app-arch/unzip" +RDEPEND="imagemagick? ( media-gfx/imagemagick )" + +S="${WORKDIR}"/cpg$(delete_all_version_separators) + +need_httpd_cgi +need_php_httpd + +pkg_setup() { + webapp_pkg_setup + require_php_with_use mysql +} + +src_install() { + webapp_src_preinst + + dodoc CHANGELOG README.txt + dohtml docs/* + rm -rf CHANGELOG README.txt COPYING docs/ + + insinto "${MY_HTDOCSDIR}" + doins -r . + + dodir "${MY_HTDOCSDIR}"/albums/{userpics,edit} + webapp_serverowned "${MY_HTDOCSDIR}"/albums{,/userpics,/edit} + webapp_serverowned "${MY_HTDOCSDIR}"/include + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + webapp_src_install +} |