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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Wed Jan 23 17:12:01 2013 UTC (18 months, 4 weeks ago) by pinkbyte
Branch: MAIN
Changes since 1.10: +3 -3 lines
Change homepage, wrt bug #421761

(Portage version: 2.2.0_alpha152/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 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.1.ebuild,v 1.10 2012/09/09 11:43:04 olemarkus Exp $
4
5 EAPI="2"
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]
24 || ( dev-lang/php:5.3[sqlite] dev-lang/php[sqlite3] )
25 )
26 mysql? ( || ( dev-lang/php[mysql] dev-lang/php[mysqli] ) )
27 dev-lang/php[session,postgres?,gd?]"
28
29 S=${WORKDIR}/${PN}2
30
31 need_httpd_cgi
32 need_php_httpd
33
34 pkg_setup() {
35 webapp_pkg_setup
36 confutils_require_any gd imagemagick netpbm
37 confutils_require_any mysql postgres sqlite
38 }
39
40 src_install() {
41 webapp_src_preinst
42
43 dohtml README.html
44 rm README.html LICENSE
45 sed -i -e "/^LICENSE\>/d" -e "/^README\.html\>/d" MANIFEST
46
47 insinto "${MY_HTDOCSDIR}"
48 doins -r .
49
50 webapp_postinst_txt en "${FILESDIR}/postinstall-en2.txt"
51 webapp_src_install
52 }
53
54 pkg_postinst() {
55 elog "You are strongly encouraged to back up your database"
56 elog "and the g2data directory, as upgrading may make"
57 elog "irreversible changes to both."
58 elog
59 elog "g2data dir: cp -Rf /path/to/g2data/ /path/to/backup"
60 elog "mysql: mysqldump --opt -u username -h hostname -p database > /path/to/backup.sql"
61 elog "postgres: pg_dump -h hostname --format=t database > /path/to/backup.sql"
62 webapp_pkg_postinst
63 }

  ViewVC Help
Powered by ViewVC 1.1.20