diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2013-03-25 13:16:37 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2013-03-25 13:16:37 +0000 |
commit | c8fda43c4e9b0ae0dfe06b696f848c63358d7763 (patch) | |
tree | 3570802da8739a364b335b5d3305286cd278c58f /www-apps/gallery/gallery-2.3.2.ebuild | |
parent | Mask =x11-misc/xlockmore-5.42 (bug #463180). (diff) | |
download | gentoo-2-c8fda43c4e9b0ae0dfe06b696f848c63358d7763.tar.gz gentoo-2-c8fda43c4e9b0ae0dfe06b696f848c63358d7763.tar.bz2 gentoo-2-c8fda43c4e9b0ae0dfe06b696f848c63358d7763.zip |
Bump 2.3 branch for bug #411727
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
Diffstat (limited to 'www-apps/gallery/gallery-2.3.2.ebuild')
-rw-r--r-- | www-apps/gallery/gallery-2.3.2.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/www-apps/gallery/gallery-2.3.2.ebuild b/www-apps/gallery/gallery-2.3.2.ebuild new file mode 100644 index 000000000000..f09dc1fae82a --- /dev/null +++ b/www-apps/gallery/gallery-2.3.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/gallery-2.3.2.ebuild,v 1.1 2013/03/25 13:16:37 blueness Exp $ + +EAPI="2" + +inherit webapp eutils depend.php confutils + +DESCRIPTION="Web based (PHP Script) photo album viewer/creator" +HOMEPAGE="http://galleryproject.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="ffmpeg +gd imagemagick +mysql netpbm postgres raw sqlite unzip zip" + +RDEPEND="raw? ( media-gfx/dcraw ) + ffmpeg? ( virtual/ffmpeg ) + imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) ) + netpbm? ( media-libs/netpbm media-gfx/jhead ) + unzip? ( app-arch/unzip ) + zip? ( app-arch/zip ) + sqlite? ( dev-lang/php[pdo] + || ( dev-lang/php:5.3[sqlite] dev-lang/php[sqlite3] ) + ) + mysql? ( || ( dev-lang/php[mysql] dev-lang/php[mysqli] ) ) + dev-lang/php[session,postgres?,gd?]" + +S=${WORKDIR}/${PN}2 + +need_httpd_cgi +need_php_httpd + +pkg_setup() { + webapp_pkg_setup + confutils_require_any gd imagemagick netpbm + confutils_require_any mysql postgres sqlite +} + +src_install() { + webapp_src_preinst + + dohtml README.html + rm README.html LICENSE + sed -i -e "/^LICENSE\>/d" -e "/^README\.html\>/d" MANIFEST + + insinto "${MY_HTDOCSDIR}" + doins -r . + + webapp_postinst_txt en "${FILESDIR}/postinstall-en2.txt" + webapp_src_install +} + +pkg_postinst() { + elog "You are strongly encouraged to back up your database" + elog "and the g2data directory, as upgrading may make" + elog "irreversible changes to both." + elog + elog "g2data dir: cp -Rf /path/to/g2data/ /path/to/backup" + elog "mysql: mysqldump --opt -u username -h hostname -p database > /path/to/backup.sql" + elog "postgres: pg_dump -h hostname --format=t database > /path/to/backup.sql" + webapp_pkg_postinst +} |