linamh/www-apache/mod_svn_view/mod_svn_view-0.1.0_p148.ebuild
geos_one aed9603eb4 www-apache/mod_svn_view: correct config
(Portage version: 2.1.10.3/svn/Linux x86_64)

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2926 6952d904-891a-0410-993b-d76249ca496b
2011-06-16 16:43:40 +00:00

58 lines
1.2 KiB
Bash

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
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
epatch "${FILESDIR}"/mod_svn_view-svn16x_fix.diff
# 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
}