summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/gallery/gallery-2.1.1a.ebuild')
-rw-r--r--www-apps/gallery/gallery-2.1.1a.ebuild21
1 files changed, 17 insertions, 4 deletions
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