summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenat Lumpau <rl03@gentoo.org>2006-07-09 21:55:17 +0000
committerRenat Lumpau <rl03@gentoo.org>2006-07-09 21:55:17 +0000
commitfed6c4219533eb6730829d7790074aa3f5535512 (patch)
tree281ac4bf46b246b96b81d1b0ce8ed66fdd53c144 /www-apps
parentVersion bump and cleanup of olders ebuilds, thanks to the work done on bug #8... (diff)
downloadgentoo-2-fed6c4219533eb6730829d7790074aa3f5535512.tar.gz
gentoo-2-fed6c4219533eb6730829d7790074aa3f5535512.tar.bz2
gentoo-2-fed6c4219533eb6730829d7790074aa3f5535512.zip
Add php checking from bug #137490.
(Portage version: 2.1)
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/gallery/ChangeLog5
-rw-r--r--www-apps/gallery/gallery-2.1.1a.ebuild21
2 files changed, 21 insertions, 5 deletions
diff --git a/www-apps/gallery/ChangeLog b/www-apps/gallery/ChangeLog
index 33b042da98b2..9974bf7bf094 100644
--- a/www-apps/gallery/ChangeLog
+++ b/www-apps/gallery/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for www-apps/gallery
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/ChangeLog,v 1.94 2006/07/09 20:55:19 rl03 Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/ChangeLog,v 1.95 2006/07/09 21:55:17 rl03 Exp $
+
+ 09 Jul 2006; Renat Lumpau <rl03@gentoo.org> gallery-2.1.1a.ebuild:
+ Add php checking from bug #137490.
09 Jul 2006; Renat Lumpau <rl03@gentoo.org> -gallery-1.5.2_p2.ebuild,
gallery-2.1.1a.ebuild:
diff --git a/www-apps/gallery/gallery-2.1.1a.ebuild b/www-apps/gallery/gallery-2.1.1a.ebuild
index 71c752a5ba5b..67752c35ba06 100644
--- a/www-apps/gallery/gallery-2.1.1a.ebuild
+++ b/www-apps/gallery/gallery-2.1.1a.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/gallery-2.1.1a.ebuild,v 1.2 2006/07/09 20:55:19 rl03 Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/gallery-2.1.1a.ebuild,v 1.3 2006/07/09 21:55:17 rl03 Exp $
-inherit webapp eutils
+inherit webapp eutils depend.php
DESCRIPTION="Web based (PHP Script) photo album viewer/creator"
HOMEPAGE="http://gallery.sourceforge.net/"
@@ -10,15 +10,16 @@ SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
-IUSE="ffmpeg gd imagemagick netpbm mysql postgres unzip zip"
+IUSE="dcraw ffmpeg gd imagemagick mysql netpbm postgres unzip zip"
RDEPEND="virtual/httpd-php
media-libs/jpeg
+ dcraw? ( >=media-gfx/dcraw-8.03 )
ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20051216 )
gd? ( >=media-libs/gd-2 )
imagemagick? ( >=media-gfx/imagemagick-5.4.9.1-r1 )
- netpbm? ( >=media-libs/netpbm-9.12 >=media-gfx/jhead-2.2 )
mysql? ( dev-db/mysql )
+ netpbm? ( >=media-libs/netpbm-9.12 >=media-gfx/jhead-2.2 )
postgres? ( >=dev-db/postgresql-7 )
unzip? ( app-arch/unzip )
zip? ( app-arch/zip )
@@ -26,6 +27,18 @@ RDEPEND="virtual/httpd-php
S=${WORKDIR}/${PN}2
+pkg_setup() {
+ webapp_pkg_setup
+
+ local php_flags="session"
+
+ use gd && php_flags="${php_flags} gd"
+ use mysql && php_flags="${php_flags} mysql"
+ use postgres && php_flags="${php_flags} postgres"
+
+ require_php_with_use ${php_flags}
+}
+
src_install() {
webapp_src_preinst