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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Apr 15 14:03:19 2014 UTC (6 years, 3 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Fix php[sqlite] dependency, bug #503906

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/gallery-3.0.9.ebuild,v 1.6 2013/10/23 17:40:55 ago Exp $
4
5 EAPI="5"
6
7 inherit webapp
8
9 DESCRIPTION="Web based (PHP Script) photo album viewer/creator"
10 HOMEPAGE="http://gallery.menalto.com/"
11 SRC_URI="mirror://sourceforge/gallery/${PN}/${P}.zip"
12
13 LICENSE="GPL-2"
14 KEYWORDS="amd64 hppa ppc ppc64 x86"
15 IUSE="ffmpeg +gd imagemagick mysql mysqli"
16
17 # Build depend is on unzip
18 DEPEND="app-arch/unzip"
19
20 #PHP flags
21 PHP_REQUIRED_FLAGS="ctype,filter,iconv,json,simplexml,tokenizer,unicode"
22 PHP_OPTIONAL_FLAGS="gd?,mysql?,mysqli?"
23
24 # No forced dependency on
25 # mysql? ( virtual/mysql )
26 # which may live on another server
27 RDEPEND="
28 imagemagick? ( || (
29 media-gfx/imagemagick
30 media-gfx/graphicsmagick[imagemagick]
31 ) )
32 ffmpeg? ( virtual/ffmpeg )
33 >=dev-lang/php-5.2.3[${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}]
34 virtual/httpd-php"
35
36 REQUIRED_USE="
37 || ( gd imagemagick )
38 || ( mysql mysqli )"
39
40 S="${WORKDIR}/${PN}3"
41
42 src_install() {
43 webapp_src_preinst
44
45 rm LICENSE
46 insinto "${MY_HTDOCSDIR}"
47 doins -r .
48
49 keepdir "${MY_HTDOCSDIR}"/var
50 webapp_serverowned "${MY_HTDOCSDIR}"/var
51
52 webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
53 webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt
54
55 webapp_src_install
56 }
57
58 pkg_postinst() {
59 ewarn
60 ewarn "\033[1;33m**************************************************\033[00m"
61 ewarn
62 ewarn "gallery3 requires short_open_tag to be enabled."
63 ewarn "You need to edit \"/etc/php/apache2-php5.?/php.ini\","
64 ewarn "set short_open_tag to \"On\" and then restart apache."
65 ewarn
66 ewarn "This ebuild does not depend on mysql or mariadb,"
67 ewarn "because the database may run on different host. But"
68 ewarn "you will need to run a database server somewhere."
69 ewarn
70 ewarn "\033[1;33m**************************************************\033[00m"
71 ewarn
72
73 einfo
74 einfo "\033[1;32m**************************************************\033[00m"
75 einfo
76 einfo "To see the post install instructions, do"
77 einfo
78 einfo " webapp-config --show-postinst ${PN} ${PVR}"
79 einfo
80 einfo "or for the post upgrade instructions, do"
81 einfo
82 einfo " webapp-config --show-postupgrade ${PN} ${PVR}"
83 einfo
84 einfo "\033[1;32m**************************************************\033[00m"
85 einfo
86 }

  ViewVC Help
Powered by ViewVC 1.1.20