blob: 7bd5a1775478b7824e0fb817ca3b24b1625c52fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/gallery-1.5.7.ebuild,v 1.4 2008/02/22 15:50:50 hollow Exp $
inherit webapp depend.php confutils
DESCRIPTION="Web based (PHP Script) photo album viewer/creator"
HOMEPAGE="http://gallery.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
IUSE="imagemagick netpbm unzip zip"
RDEPEND="media-libs/jpeg
imagemagick? ( >=media-gfx/imagemagick-5.4.9.1-r1 )
netpbm? ( >=media-libs/netpbm-9.12 >=media-gfx/jhead-2.2 )
unzip? ( app-arch/unzip )
zip? ( app-arch/zip )"
need_httpd_cgi
need_php_httpd
S="${WORKDIR}"/${PN}
pkg_setup() {
webapp_pkg_setup
confutils_require_any imagemagick netpbm
require_php_with_use pcre session
}
src_unpack() {
unpack ${A}
cd "${S}"
gunzip ChangeLog.archive.gz
}
src_install() {
webapp_src_preinst
dodoc AUTHORS ChangeLog ChangeLog.archive README
dohtml docs/*
rm -rf AUTHORS ChangeLog ChangeLog.archive README LICENSE.txt docs/
insinto "${MY_HTDOCSDIR}"
doins -r .
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
webapp_src_install
}
|