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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Sep 7 15:35:08 2007 UTC (7 years, 3 months ago) by jer
Branch: MAIN
Changes since 1.1: +2 -2 lines
Stable for HPPA (bug #191587).
(Portage version: 2.1.2.12)

1 # Copyright 1999-2007 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.2.3.ebuild,v 1.1 2007/09/07 14:41:56 wrobel Exp $
4
5 inherit webapp eutils depend.php
6
7 DESCRIPTION="Web based (PHP Script) photo album viewer/creator"
8 HOMEPAGE="http://gallery.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.gz"
10
11 LICENSE="GPL-2"
12 KEYWORDS="~alpha ~amd64 hppa ~ppc ~ppc64 ~sparc ~x86"
13 IUSE="dcraw ffmpeg gd imagemagick mysql netpbm postgres unzip zip"
14
15 RDEPEND="
16 media-libs/jpeg
17 dcraw? ( >=media-gfx/dcraw-8.03 )
18 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20051216 )
19 gd? ( >=media-libs/gd-2 )
20 imagemagick? ( >=media-gfx/imagemagick-5.4.9.1-r1 )
21 netpbm? ( >=media-libs/netpbm-9.12 >=media-gfx/jhead-2.2 )
22 unzip? ( app-arch/unzip )
23 zip? ( app-arch/zip )
24 "
25
26 S=${WORKDIR}/${PN}2
27
28 need_php
29
30 pkg_setup() {
31 webapp_pkg_setup
32
33 local php_flags="pcre session"
34 local DIE=
35
36 use mysql && php_flags="${php_flags} mysql"
37 use postgres && php_flags="${php_flags} postgres"
38
39 if ! PHPCHECKNODIE="yes" require_php_with_use ${php_flags}; then
40 DIE="yes"
41 fi
42 if use gd; then
43 if ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then
44 DIE="yes"
45 fi
46 fi
47
48 if [[ ${DIE} == "yes" ]]; then
49 eerror
50 eerror "${PHP_PKG} needs to be re-installed with all of the following"
51 eerror "USE flags enabled:"
52 eerror
53 eerror "${php_flags}"
54 eerror
55 if use gd; then
56 eerror "as well as any of the following USE flags enabled:"
57 eerror
58 eerror "gd gd-external"
59 eerror
60 fi
61 die "Re-install ${PHP_PKG}"
62 fi
63 }
64
65 src_install() {
66 webapp_src_preinst
67
68 cp -R * ${D}/${MY_HTDOCSDIR}
69 dohtml README.html
70
71 webapp_postinst_txt en ${FILESDIR}/postinstall-en2.txt
72 webapp_src_install
73 }
74
75 pkg_postinst() {
76 elog "You are strongly encouraged to back up your database"
77 elog "and the g2data directory, as upgrading to 2.2 will make"
78 elog "irreversible changes to both."
79 elog
80 elog "g2data dir: cp -Rf /path/to/g2data/ /path/to/backup"
81 elog "mysql: mysqldump --opt -u username -h hostname -p database > /path/to/backup.sql"
82 elog "postgres: pg_dump -h hostname --format=t database > /path/to/backup.sql"
83 webapp_pkg_postinst
84 }

  ViewVC Help
Powered by ViewVC 1.1.20