diff options
author | Peter Volkov <pva@gentoo.org> | 2009-01-24 10:02:49 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2009-01-24 10:02:49 +0000 |
commit | 3587556b7355129d9e49b6d68f41c4fba51f2837 (patch) | |
tree | eb3ec4fb3458175783f8c79a0ab73a5f4ca51db5 /www-apps/egroupware/egroupware-1.6.001.ebuild | |
parent | Missed a spot (diff) | |
download | gentoo-2-3587556b7355129d9e49b6d68f41c4fba51f2837.tar.gz gentoo-2-3587556b7355129d9e49b6d68f41c4fba51f2837.tar.bz2 gentoo-2-3587556b7355129d9e49b6d68f41c4fba51f2837.zip |
Version bump, bug #251743, thank Kai Sommer and Thomas Raschbacher for this work. Remove old.
(Portage version: 2.1.6.7/cvs/Linux x86_64)
Diffstat (limited to 'www-apps/egroupware/egroupware-1.6.001.ebuild')
-rw-r--r-- | www-apps/egroupware/egroupware-1.6.001.ebuild | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/www-apps/egroupware/egroupware-1.6.001.ebuild b/www-apps/egroupware/egroupware-1.6.001.ebuild new file mode 100644 index 000000000000..7c537d14fd82 --- /dev/null +++ b/www-apps/egroupware/egroupware-1.6.001.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/egroupware/egroupware-1.6.001.ebuild,v 1.1 2009/01/24 10:02:49 pva Exp $ + +inherit eutils webapp depend.php + +MY_PN=eGroupware +MY_PV="${PV/_/.}" + +DESCRIPTION="Web-based GroupWare suite" +HOMEPAGE="http://www.egroupware.org/" +SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${MY_PV}.tar.bz2 + mirror://sourceforge/${PN}/${MY_PN}-egw-pear-${MY_PV}.tar.bz2 + mydms? ( mirror://sourceforge/${PN}/${MY_PN}-mydms-${MY_PV}.tar.bz2 ) + icalsrv? ( mirror://sourceforge/${PN}/${MY_PN}-icalsrv-${MY_PV}.tar.bz2 ) + gallery? ( mirror://sourceforge/${PN}/${MY_PN}-gallery-${MY_PV}.tar.bz2 )" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="jpgraph ldap mssql mysql postgres mydms icalsrv gallery" + +RDEPEND="jpgraph? ( dev-php5/jpgraph ) + dev-php/PEAR-PEAR + virtual/cron" + +need_httpd_cgi +need_php_httpd + +S=${WORKDIR}/${PN} + +pkg_setup () { + webapp_pkg_setup + has_php + + local php_flags="imap session unicode" + + for f in ldap mssql mysql postgres; do + use ${f} && php_flags="${php_flags} ${f}" + done + + if ! PHPCHECKNODIE="yes" require_php_with_use ${php_flags} || \ + ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then + die "Re-install ${PHP_PKG} with ${php_flags} and either gd or gd-external." + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + esvn_clean + + if use jpgraph; then + einfo "Fixing jpgraph location" + sed -i "s|EGW_SERVER_ROOT . '/../jpgraph/src/jpgraph.php'|'/usr/share/php${PHP_VERSION}/jpgraph/jpgraph.php'|" \ + projectmanager/inc/class.projectmanager_ganttchart.inc.php || die + sed -i "s|EGW_SERVER_ROOT . '/../jpgraph/src/jpgraph_gantt.php'|'/usr/share/php${PHP_VERSION}/jpgraph/jpgraph_gantt.php'|" \ + projectmanager/inc/class.projectmanager_ganttchart.inc.php || die + fi +} + +src_install() { + webapp_src_preinst + + insinto "${MY_HTDOCSDIR}" + doins -r . + + webapp_serverowned "${MY_HTDOCSDIR}/phpgwapi/images" + + webapp_postinst_txt en "${FILESDIR}/postinstall-en-1.2.txt" + webapp_src_install +} + +pkg_postinst() { + if use ldap; then + elog "If you are using LDAP contacts/addressbook, please read the upgrade instructions at" + elog "http://www.egroupware.org/index.php?page_name=wiki&wikipage=ManualSetupUpdate" + elog "before running the egroupware setup" + fi + webapp_pkg_postinst +} |