/[gentoo-x86]/www-apps/egroupware/egroupware-1.4.004.ebuild
Gentoo

Contents of /www-apps/egroupware/egroupware-1.4.004.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Oct 6 16:55:20 2012 UTC (2 years ago) by armin76
Branch: MAIN
Changes since 1.7: +3 -3 lines
Drop alpha keywords

(Portage version: 2.1.11.16/cvs/Linux ia64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/egroupware/egroupware-1.4.004.ebuild,v 1.7 2011/04/09 19:22:45 olemarkus Exp $
4
5 inherit eutils webapp depend.php
6
7 MY_PN=eGroupWare
8
9 DESCRIPTION="Web-based GroupWare suite"
10 HOMEPAGE="http://www.egroupware.org/"
11 SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-2.tar.bz2
12 mirror://sourceforge/${PN}/${MY_PN}-egw-pear-${PV}-2.tar.bz2"
13
14 LICENSE="GPL-2"
15 KEYWORDS="amd64 hppa ppc ~sparc x86"
16 IUSE="jpgraph ldap mssql mysql postgres"
17
18 RDEPEND="jpgraph? ( dev-php/jpgraph )
19 dev-php/PEAR-PEAR
20 virtual/cron"
21
22 need_httpd_cgi
23 need_php_httpd
24
25 S="${WORKDIR}"/${PN}
26
27 pkg_setup () {
28 webapp_pkg_setup
29 has_php
30
31 local php_flags="imap session unicode"
32
33 for f in ldap mssql mysql postgres; do
34 use ${f} && php_flags="${php_flags} ${f}"
35 done
36
37 if ! PHPCHECKNODIE="yes" require_php_with_use ${php_flags} || \
38 ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then
39 die "Re-install ${PHP_PKG} with ${php_flags} and either gd or gd-external."
40 fi
41 }
42
43 src_unpack() {
44 unpack ${A}
45 cd "${S}"
46 esvn_clean
47
48 if use jpgraph; then
49 einfo "Fixing jpgraph location"
50 sed -i "s|EGW_SERVER_ROOT . '/../jpgraph/src/jpgraph.php'|'/usr/share/php${PHP_VERSION}/jpgraph/jpgraph.php'|" \
51 projectmanager/inc/class.ganttchart.inc.php || die
52 sed -i "s|EGW_SERVER_ROOT . '/../jpgraph/src/jpgraph_gantt.php'|'/usr/share/php${PHP_VERSION}/jpgraph/jpgraph_gantt.php'|" \
53 projectmanager/inc/class.ganttchart.inc.php || die
54 fi
55 }
56
57 src_install() {
58 webapp_src_preinst
59
60 insinto "${MY_HTDOCSDIR}"
61 doins -r .
62
63 webapp_serverowned "${MY_HTDOCSDIR}"/phpgwapi/images
64
65 webapp_postinst_txt en "${FILESDIR}"/postinstall-en-1.2.txt
66 webapp_src_install
67 }
68
69 pkg_postinst() {
70 if use ldap; then
71 elog "If you are using LDAP contacts/addressbook, please read the upgrade instructions at"
72 elog "http://www.egroupware.org/index.php?page_name=wiki&wikipage=ManualSetupUpdate"
73 elog "before running the egroupware setup"
74 fi
75 webapp_pkg_postinst
76 }

  ViewVC Help
Powered by ViewVC 1.1.20