summaryrefslogtreecommitdiff
blob: d956c1e765b2e333c7e5ef6633800f89d9c5eaed (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnustep-libs/gsweb/gsweb-1.1.1_pre20041119.ebuild,v 1.1 2004/11/21 20:28:36 fafhrd Exp $

ECVS_CVS_COMMAND="cvs -q"
ECVS_SERVER="savannah.gnu.org:/cvsroot/gnustep"
ECVS_USER="anoncvs"
ECVS_AUTH="ext"
ECVS_MODULE="gnustep/dev-libs/${PN}"
ECVS_CO_OPTS="-P -D ${PV/*_pre}"
ECVS_UP_OPTS="-dP -D ${PV/*_pre}"
ECVS_TOP_DIR="${DISTDIR}/cvs-src/savannah.gnu.org-gnustep"
inherit gnustep cvs eutils depend.apache

S=${WORKDIR}/${ECVS_MODULE}

DESCRIPTION="GNUstepWeb is a library which was designed to be compatible with WebObjects 4.x (developed by NeXT (now Apple) Inc.)."
HOMEPAGE="http://www.gnustep.org"

KEYWORDS="~ppc"
LICENSE="LGPL-2.1"
SLOT="0"

DEPEND="${GS_DEPEND}
	gnustep-libs/gdl2
	x11-libs/libPropList"
RDEPEND="${GS_RDEPEND}
	gnustep-libs/gdl2
	x11-libs/libPropList
	net-www/apache"
need_apache2
IUSE="${IUSE}"

egnustep_install_domain "System"

src_unpack() {
	cvs_src_unpack
	( cd ${S}/GSWeb.framework ; epatch ${FILESDIR}/${PV}-build-fixes.patch )
	( cd ${S}/GSWAdaptors/Apache ; epatch ${FILESDIR}/apache1-make.patch )
	( cd ${S}/GSWAdaptors/Apache ; epatch ${FILESDIR}/apache2-make.patch )
}

src_compile() {
	cd ${S}
	egnustep_env
	econf "--prefix=$(egnustep_prefix)" || die "./configure failed"
	egnustep_make || die
	cd ${S}/GSWAdaptors/Apache
	pwd
	einfo "emake -f GNUmakefile-Apache${APACHE_VERSION}x all"
	emake -f GNUmakefile-Apache${APACHE_VERSION}x all
	ls -la
	cd ${S}
	pwd
}

src_install() {
	gnustep_src_install
	cd ${S}/GSWAdaptors/Apache
	insinto /usr/lib/apache${APACHE_VERSION#1}-extramodules
	insopts -m0755
	doins mod_gsweb.so
	cd ${S}

	insinto /etc/apache${APACHE_VERSION#1}/conf/modules.d
	doins ${FILESDIR}/${APACHE_VERSION}/90_mod_gsweb.conf

	insinto /etc/apache${APACHE_VERSION#1}/conf
	doins ${FILESDIR}/gsweb.conf

	dodir $(egnustep_system_domain)/Library/Documentation/GSWeb
	insinto $(egnustep_system_domain)/Library/Documentation/GSWeb
	doins GSWAdaptors/Doc/ConfigurationFile.html
}

pkg_postinst() {
	gnustep_pkg_postinst
	einfo "Edit /etc/conf.d/apache${APACHE_VERSION#1} and add \"-D GSWeb\" to APACHE${APACHE_VERSION#1}_OPTS"
}