summaryrefslogtreecommitdiff
blob: 2950aaeef62679db8eb4c140761913d13e8523c0 (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
59
60
61
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

#TODO:
# * add use flags and deps for mysql,postrgesql, sqlite
# * complete DEPEND

inherit gnustep-base apache-module

MY_PV="1621-200805211100"

DESCRIPTION="an extensive set of frameworks which form a complete Web application server environment"
HOMEPAGE="http://sope.opengroupware.org/en/index.html"
SRC_URI="http://download.opengroupware.org/nightly/sources/trunk/${PN}-trunk-r${MY_PV}.tar.gz"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="gnustep-base/gnustep-base
	dev-libs/libxml2
	net-nds/openldap"
RDEPEND="${DEPEND}"

APACHE2_MOD_DEFINE="SOPE"
APACHE2_MOD_FILE="sope-appserver/mod_ngobjweb/mod_ngobjweb.so"
need_apache2

S=${WORKDIR}/${PN}

src_unpack() {
	gnustep-base_src_unpack

	# Fix for recent gnustep-base
	epatch "${FILESDIR}"/${PN}-nsexception.patch
	# Install in System instead of Local
	epatch "${FILESDIR}"/${PN}-use_system_root.patch
	# From SOGo project
	epatch "${FILESDIR}"/${PN}-gsmake2.diff
	epatch "${FILESDIR}"/${PN}-mime-nosort.diff
	epatch "${FILESDIR}"/${PN}-patchset-r1621.diff
}

src_compile() {
	# Do not use standard src_compile, as ./configure is not standard
	egnustep_env
	./configure --with-gnustep || die "configure failed"
	egnustep_make apxs=/usr/sbin/apxs apr=/usr/bin/apr-1-config
}

src_install() {
	gnustep-base_src_install
	apache-module_src_install
}

pkg_postinst() {
	gnustep-base_pkg_postinst
	apache-module_pkg_postinst
}