blob: ae8bcf2a86f31944df0e0241580e1f8ea687de82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit versionator webapp eutils depend.php
ZARAFA_MAJOR=$(get_version_component_range 1 ${PV})
ZARAFA_MINOR=$(get_version_component_range 2 ${PV})
ZARAFA_MICRO=$(get_version_component_range 3 ${PV})
ZARAFA_REV=28479
DESCRIPTION="Open Source Groupware Solution"
HOMEPAGE="http://zarafa.com/"
SRC_URI="http://download.zarafa.com/community/final/${ZARAFA_MAJOR}.${ZARAFA_MINOR}/${PV}-${ZARAFA_REV}/sourcecode/zcp-${PV}.tar.gz"
LICENSE="AGPL-3"
KEYWORDS="~x86 ~amd64"
IUSE=""
need_php_httpd
S="${WORKDIR}"/${P/-webaccess/}/php-webclient-ajax
RDEPEND=">=dev-libs/libical-0.40"
DEPEND="${RDEPEND}"
pkg_setup () {
webapp_pkg_setup
require_php_with_use iconv session xml
}
src_install() {
webapp_src_preinst
# make .po files
for pofile in "${S}"/server/language/*/LC_MESSAGES/zarafa.po; do
msgfmt -f -o ${pofile%%.po}.mo ${pofile}
rm ${pofile}
done
dodir /var/lib/zarafa-webaccess/plugins
dodir /var/lib/zarafa-webaccess/tmp
dosym /var/lib/zarafa-webaccess/plugins "${MY_HTDOCSDIR}"/plugins
# remove unneeded files
rm zarafa-webaccess.conf
cp "${S}"/config.php.dist "${S}"/config.php
insinto "${MY_HTDOCSDIR}"
doins -r "${S}"/*
webapp_configfile "${MY_HTDOCSDIR}"/config.php
webapp_serverowned "${MY_HTDOCSDIR}"/config.php
webapp_src_install
}
|