2011-06-16 18:43:40 +02:00
|
|
|
# Copyright 1999-2011 Gentoo Foundation
|
2011-06-16 18:30:23 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2011-06-16 18:43:40 +02:00
|
|
|
# $Header: $
|
2011-06-16 18:30:23 +02:00
|
|
|
|
|
|
|
EAPI="2"
|
|
|
|
|
|
|
|
inherit apache-module autotools
|
|
|
|
|
|
|
|
MY_PV=${PV/_p/-r}
|
|
|
|
|
|
|
|
KEYWORDS="amd64 ppc x86"
|
|
|
|
|
|
|
|
DESCRIPTION="A web-based view of a Subversion repository, similar to Chora."
|
|
|
|
HOMEPAGE="http://www.outoforder.cc/projects/apache/mod_svn_view/"
|
|
|
|
SRC_URI="http://ftp.disconnected-by-peer.at/pub/mod_svn_view-${MY_PV}.tar.bz2"
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND=">=dev-libs/libxslt-1.1.5
|
|
|
|
>=dev-libs/libxml2-2.6.11"
|
|
|
|
RDEPEND="${DEPEND}
|
|
|
|
>=www-apache/mod_transform-0.6.0"
|
|
|
|
|
|
|
|
APACHE2_MOD_CONF="10_${PN}"
|
|
|
|
APACHE2_MOD_DEFINE="SVN_VIEW"
|
|
|
|
|
|
|
|
need_apache2
|
|
|
|
|
|
|
|
S=${WORKDIR}/${PN}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
find . -name '.svn' | xargs rm -rf
|
2011-06-16 18:43:40 +02:00
|
|
|
epatch "${FILESDIR}"/mod_svn_view-svn16x_fix.diff
|
2011-06-16 18:30:23 +02:00
|
|
|
# libtool
|
|
|
|
sed -e "s|AC_PROG_RANLIB|AC_PROG_LIBTOOL|g" -i configure.ac
|
|
|
|
rm -rf autom4te.cache
|
|
|
|
touch ./config.in
|
|
|
|
AT_M4DIR="m4" eautoreconf
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf --with-apxs=${APXS} || die "econf failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake || die "emake failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
mkdir src/.libs
|
|
|
|
mv -f ".libs/mod_svn_view.so" "src/.libs/mod_svn_view.so"
|
|
|
|
apache-module_src_install
|
|
|
|
insinto /usr/share/${PN}
|
|
|
|
doins -r themes
|
|
|
|
doins xslt/default.xsl
|
|
|
|
}
|