annotate www-apps/egroupware/egroupware-1.8.002.20111011.ebuild @ 338:90ae974540be

mantis has a new version upstream
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 28 Jun 2012 12:14:48 +0000
parents a96ea427e9a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
284
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2010 Gentoo Foundation
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 # $Header: $
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 ##
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 # based on ebuild from bug #284536, depending on dev-php/PEAR-XML_Feed_Parser from #258604
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 ##
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 EAPI="2"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 inherit eutils versionator webapp depend.php
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 MY_PN=eGroupware
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 MY_PV=$(get_version_component_range 1-3)
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 MY_P=$(get_version_component_range 4-)
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 #MY_P="${MY_P/p/}"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 DESCRIPTION="Web-based GroupWare suite"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 HOMEPAGE="http://www.egroupware.org/"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${MY_PV}.${MY_P}.tar.bz2
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 mirror://sourceforge/${PN}/${MY_PN}-egw-pear-${MY_PV}.${MY_P}.tar.bz2
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 phpfreechat? ( mirror://sourceforge/${PN}/${MY_PN}-phpfreechat-${MY_PV}.${MY_P}.tar.bz2 )
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 gallery? ( mirror://sourceforge/${PN}/${MY_PN}-gallery-${MY_PV}.${MY_P}.tar.bz2 )"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 LICENSE="GPL-2"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 IUSE="ldap mssql mysql postgres gallery phpfreechat jpgraph"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 #hint: sqlite needed for calendar
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 RDEPEND="
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 dev-lang/php[ctype,imap,ldap?,mssql?,mysql?,pdo,postgres?,session,sqlite3,unicode]
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 || (
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 dev-lang/php[gd]
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 dev-lang/php[gd-external]
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 )
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 dev-php/PEAR-Auth_SASL
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37 dev-php/PEAR-PEAR
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 dev-php/PEAR-XML_Feed_Parser
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 virtual/cron
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 jpgraph? ( dev-php/jpgraph )
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 "
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 # >dev-php5/jpgraph-1.13
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 need_httpd_cgi
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 need_php_httpd
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 S=${WORKDIR}/${PN}
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 src_prepare() {
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 esvn_clean
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 if use jpgraph; then
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 einfo "Fixing jpgraph location"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 MY_JPGRAPH_VERSION="$(best_version dev-php5/jpgraph)"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 MY_JPGRAPH_VERSION="${MY_JPGRAPH_VERSION/'dev-php5/jpgraph-'/}"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 sed -i "s|EGW_SERVER_ROOT . '/../jpgraph/src/jpgraph.php'|'/usr/share/php5/jpgraph/jpgraph.php'|" \
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58 projectmanager/inc/class.projectmanager_ganttchart.inc.php || die
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 sed -i "s|EGW_SERVER_ROOT . '/../jpgraph/src/jpgraph_gantt.php'|'/usr/share/php5/jpgraph/jpgraph_gantt.php'|" \
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 projectmanager/inc/class.projectmanager_ganttchart.inc.php || die
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 sed -i "s|$jpgraph_path .= SEP.'jpgraph';|$jpgraph_path = dirname('/usr/share/php5/jpgraph/jpgraph.php');|" \
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 setup/check_install.php || die
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 sed -i "s|'unknown';|'${MY_JPGRAPH_VERSION}';\n \$available = version_compare(\$version,\$min_version,'>=');|" \
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 setup/check_install.php || die
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65 fi
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
66 }
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
67
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
68 src_install() {
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
69 webapp_src_preinst
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
70 insinto "${MY_HTDOCSDIR}"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
71 doins -r .
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
72 webapp_serverowned "${MY_HTDOCSDIR}/phpgwapi/images"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
73 webapp_postinst_txt en "${FILESDIR}/postinstall-en-1.2.txt"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
74 webapp_src_install
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
75 }
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
76
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
77 pkg_postinst() {
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
78 if use ldap; then
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
79 elog "If you are using LDAP contacts/addressbook, please read the upgrade instructions at"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
80 elog "http://www.egroupware.org/index.php?page_name=wiki&wikipage=ManualSetupUpdate"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
81 elog "before running the egroupware setup"
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
82 fi
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
83 webapp_pkg_postinst
a96ea427e9a0 ebuild for the latest egroupware including dependencies
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
84 }