blob: f384c2c740a2d909f25d528e6fde5f1e96dcece3 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/mod_xslt/mod_xslt-1.0.5a.ebuild,v 1.4 2003/07/13 21:44:10 aliz Exp $
inherit eutils
DESCRIPTION="An xslt filtering DSO module for Apache2"
HOMEPAGE="http://www.mod-xslt.com/"
S=${WORKDIR}/mod-xslt-${PV}
SRC_URI="http://www.dunkel.org/mod-xslt/downloads/mod-xslt-${PV}.tar.gz"
DEPEND="dev-lang/perl dev-libs/libxslt dev-libs/libxml2 =net-www/apache-2*"
LICENSE="Apache-1.1"
KEYWORDS="x86"
IUSE=""
SLOT="0"
src_unpack() {
unpack ${A} || die; cd ${S} || die
epatch ${FILESDIR}/mod_xslt-1.0.5a-register.patch
#oh brother
cp configure.ac configure.ac.orig
sed -e 's|libxml/|libxml2/libxml/|' configure.ac.orig > configure.ac
rm -f configure configure.ac.orig
find src -type f | xargs perl -pi -e "s|libxml/|libxml2/libxml/|g;"
autoconf || die
}
src_compile() {
touch config.h && cd src
mv mod-xslt.c mod_xslt.c
/usr/sbin/apxs2 `pkg-config --cflags --libs libxslt` \
-c ${PN}.c iotools.c logging.c urltools.c xsltools.c || die
}
src_install() {
exeinto /usr/lib/apache2-extramodules
doexe src/.libs/${PN}.so
insinto /etc/apache2/conf/modules.d
doins ${FILESDIR}/25_mod_xslt.conf
dodoc ${FILESDIR}/25_mod_xslt.conf
dodoc AUTHORS ChangeLog LICENSE NEWS README*
}
|