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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Oct 6 16:55:20 2012 UTC (2 years, 2 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 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.8.004.20120613.ebuild,v 1.5 2012/09/19 16:26:45 johu Exp $
4
5 EAPI=4
6
7 inherit eutils webapp
8
9 MY_PN=eGroupware
10
11 DESCRIPTION="Web-based GroupWare suite"
12 HOMEPAGE="http://www.egroupware.org/"
13 SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}.tar.bz2
14 mirror://sourceforge/${PN}/${MY_PN}-egw-pear-${PV}.tar.bz2
15 gallery? ( mirror://sourceforge/${PN}/${MY_PN}-gallery-${PV}.tar.bz2 )"
16
17 LICENSE="GPL-2"
18 KEYWORDS="amd64 hppa ppc ~sparc x86"
19 IUSE="+jpgraph ldap mysql postgres gallery"
20
21 # php deps taken from rpm spec
22 # you can use pdo to access almost anything but sqlite is specifically required
23 # for the calendar module
24 # jpgraph is only needed for the projectmanager module
25 RDEPEND="jpgraph? ( dev-php/jpgraph )
26 dev-php/pear
27 dev-php/PEAR-Auth_SASL
28 virtual/httpd-php
29 dev-lang/php[gd,imap,pdo,posix,session,sqlite,ssl,unicode,xml,zip,zlib,ldap?,mysql?,postgres?]
30 virtual/cron"
31
32 REQUIRED_USE="|| ( mysql postgres )"
33
34 need_httpd_cgi
35
36 S=${WORKDIR}/${PN}
37
38 src_prepare() {
39 esvn_clean
40
41 if use jpgraph; then
42 einfo "Fixing jpgraph location"
43 MY_JPGRAPH_VERSION="$(best_version dev-php/jpgraph)"
44 MY_JPGRAPH_VERSION="${MY_JPGRAPH_VERSION/'dev-php/jpgraph-'/}"
45 sed -i "s|EGW_SERVER_ROOT . '/../jpgraph/src/jpgraph.php'|'/usr/share/php/jpgraph/jpgraph.php'|" \
46 projectmanager/inc/class.projectmanager_ganttchart.inc.php || die "sed jpgraph failed"
47 sed -i "s|EGW_SERVER_ROOT . '/../jpgraph/src/jpgraph_gantt.php'|'/usr/share/php/jpgraph/jpgraph_gantt.php'|" \
48 projectmanager/inc/class.projectmanager_ganttchart.inc.php || die "sed jpgraph failed"
49 sed -i "s|$jpgraph_path .= SEP.'jpgraph';|$jpgraph_path = dirname('/usr/share/php/jpgraph/jpgraph.php');|" \
50 setup/check_install.php || die "sed jpgraph failed"
51 sed -i "s|'unknown';|'${MY_JPGRAPH_VERSION}';\n \$available = version_compare(\$version,\$min_version,'>=');|" \
52 setup/check_install.php || die "sed jpgraph failed"
53 fi
54 }
55
56 src_install() {
57 webapp_src_preinst
58
59 dodoc doc/rpm-build/egroupware.cron
60
61 insinto "${MY_HTDOCSDIR}"
62 doins -r .
63
64 webapp_serverowned "${MY_HTDOCSDIR}/phpgwapi/images"
65
66 webapp_postinst_txt en "${FILESDIR}/postinstall-en-1.2.txt"
67 webapp_src_install
68 }
69
70 pkg_postinst() {
71 if use ldap; then
72 elog "If you are using LDAP contacts/addressbook, please read the upgrade instructions at"
73 elog "http://www.egroupware.org/index.php?page_name=wiki&wikipage=ManualSetupUpdate"
74 elog "before running the egroupware setup"
75 fi
76
77 elog "A cronjob to run eGroupware's async services is available at"
78 elog "/usr/share/doc/${P}"
79
80 webapp_pkg_postinst
81 }

  ViewVC Help
Powered by ViewVC 1.1.20