From bd074a594f8cc116e52b486f89de86cc1e656b9f Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Sat, 9 Jun 2018 09:10:42 +0200 Subject: Gallery2 with latest PHP 7.x patches --- www-apps/gallery/gallery-2.3.2.9999.ebuild | 77 ++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 www-apps/gallery/gallery-2.3.2.9999.ebuild (limited to 'www-apps/gallery/gallery-2.3.2.9999.ebuild') diff --git a/www-apps/gallery/gallery-2.3.2.9999.ebuild b/www-apps/gallery/gallery-2.3.2.9999.ebuild new file mode 100644 index 0000000..06cb7ab --- /dev/null +++ b/www-apps/gallery/gallery-2.3.2.9999.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2015 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.8 2015/07/05 22:06:42 blueness Exp $ + +EAPI="6" + +inherit webapp eutils + +DESCRIPTION="Web based (PHP Script) photo album viewer/creator" +HOMEPAGE="http://galleryproject.org/" + +LICENSE="GPL-2" +IUSE="ffmpeg +gd imagemagick +mysql netpbm postgres raw sqlite unzip zip" + +case ${PV} in +*.9999) + SRC_URI="" + EGIT_REPO_URI="https://github.com/gregstoll/gallery2" + inherit git-r3 + ;; +*) + KEYWORDS="amd64 hppa ppc ppc64 x86" + SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.gz" + S=${WORKDIR}/${PN}2 + ;; +esac + +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[sqlite] ) + mysql? ( || ( dev-lang/php[mysql] dev-lang/php[mysqli] ) ) + dev-lang/php[session,postgres?,gd?] + virtual/httpd-php" + +REQUIRED_USE=" + || ( gd imagemagick netpbm ) + || ( mysql postgres sqlite ) +" + +need_httpd_cgi + +pkg_setup() { + webapp_pkg_setup +} + +src_prepare() { + eapply_user +} + +src_install() { + webapp_src_preinst + + HTML_DOCS="README.html" einstalldocs + 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 +} -- cgit v1.2.3