/[gentoo-x86]/www-apps/gallery/gallery-2.3.2.ebuild
Gentoo

Contents of /www-apps/gallery/gallery-2.3.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Jul 5 22:06:42 2015 UTC (5 years ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +4 -4 lines
Remove need_php_httpd.  Bug #552866.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/gallery-2.3.2.ebuild,v 1.7 2014/04/15 14:03:19 blueness Exp $
4
5 EAPI="5"
6
7 inherit webapp eutils depend.php confutils
8
9 DESCRIPTION="Web based (PHP Script) photo album viewer/creator"
10 HOMEPAGE="http://galleryproject.org/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.gz"
12
13 LICENSE="GPL-2"
14 KEYWORDS="amd64 hppa ppc ppc64 x86"
15 IUSE="ffmpeg +gd imagemagick +mysql netpbm postgres raw sqlite unzip zip"
16
17 RDEPEND="raw? ( media-gfx/dcraw )
18 ffmpeg? ( virtual/ffmpeg )
19 imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) )
20 netpbm? ( media-libs/netpbm media-gfx/jhead )
21 unzip? ( app-arch/unzip )
22 zip? ( app-arch/zip )
23 sqlite? ( dev-lang/php[pdo] dev-lang/php[sqlite] )
24 mysql? ( || ( dev-lang/php[mysql] dev-lang/php[mysqli] ) )
25 dev-lang/php[session,postgres?,gd?]
26 virtual/httpd-php"
27
28 S=${WORKDIR}/${PN}2
29
30 need_httpd_cgi
31
32 pkg_setup() {
33 webapp_pkg_setup
34 confutils_require_any gd imagemagick netpbm
35 confutils_require_any mysql postgres sqlite
36 }
37
38 src_install() {
39 webapp_src_preinst
40
41 dohtml README.html
42 rm README.html LICENSE
43 sed -i -e "/^LICENSE\>/d" -e "/^README\.html\>/d" MANIFEST
44
45 insinto "${MY_HTDOCSDIR}"
46 doins -r .
47
48 webapp_postinst_txt en "${FILESDIR}/postinstall-en2.txt"
49 webapp_src_install
50 }
51
52 pkg_postinst() {
53 elog "You are strongly encouraged to back up your database"
54 elog "and the g2data directory, as upgrading may make"
55 elog "irreversible changes to both."
56 elog
57 elog "g2data dir: cp -Rf /path/to/g2data/ /path/to/backup"
58 elog "mysql: mysqldump --opt -u username -h hostname -p database > /path/to/backup.sql"
59 elog "postgres: pg_dump -h hostname --format=t database > /path/to/backup.sql"
60 webapp_pkg_postinst
61 }

  ViewVC Help
Powered by ViewVC 1.1.20