aboutsummaryrefslogtreecommitdiffstats
path: root/main/subversion/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-07-18 07:20:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-07-18 07:21:33 +0000
commitd6d8167817a242e0134db52e59229a0341caf552 (patch)
tree622c2b6f4e09c84f6e2238addc2f682657c6b5d8 /main/subversion/APKBUILD
parentca66f44096b6e052f1e663db4082844b2e21978e (diff)
downloadaports-d6d8167817a242e0134db52e59229a0341caf552.tar.bz2
aports-d6d8167817a242e0134db52e59229a0341caf552.tar.xz
main/subversion: subpackage for perl binding
git svn needs it.
Diffstat (limited to 'main/subversion/APKBUILD')
-rw-r--r--main/subversion/APKBUILD18
1 files changed, 15 insertions, 3 deletions
diff --git a/main/subversion/APKBUILD b/main/subversion/APKBUILD
index 24bed5fb0e..b25d795239 100644
--- a/main/subversion/APKBUILD
+++ b/main/subversion/APKBUILD
@@ -1,16 +1,17 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=subversion
pkgver=1.6.17
-pkgrel=2
+pkgrel=3
pkgdesc="Replacement for CVS, another versioning system (svn)"
url="http://subversion.tigris.org/"
arch="all"
license="apache bsd"
depends=
makedepends="apr-dev apr-util-dev expat-dev neon-dev openssl-dev zlib-dev
- e2fsprogs-dev sqlite-dev apache2-dev"
+ e2fsprogs-dev sqlite-dev apache2-dev perl-dev swig"
install="$pkgname.pre-install"
-subpackages="$pkgname-dev $pkgname-doc $pkgname-libs mod_dav_svn"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs mod_dav_svn
+ perl-$pkgname:pl"
source="http://subversion.tigris.org/downloads/subversion-$pkgver.tar.bz2
svnserve.confd
svnserve.initd
@@ -22,18 +23,23 @@ build() {
./configure --prefix=/usr \
--disable-nls \
--with-apxs \
+ --with-swig \
--disable-javahl \
--disable-static \
--without-jdk
make external-all || return 1
make local-all || return 1
+ make swig-pl swig-pl-lib || return 1
}
package() {
cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
+ make pure_vendor_install -C subversion/bindings/swig/perl/native \
+ PERL_INSTALL_ROOT="$pkgdir" || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
install -Dm755 "$srcdir"/svnserve.initd "$pkgdir"/etc/init.d/svnserve
install -Dm644 "$srcdir"/svnserve.confd "$pkgdir"/etc/conf.d/svnserve
@@ -52,6 +58,12 @@ mod_dav_svn() {
mv "$pkgdir"/usr/lib/apache2 "$subpkgdir"/usr/lib/
}
+pl() {
+ pkgdesc="Perl bindings to subversion"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/perl* "$subpkgdir"/usr/lib/
+}
+
md5sums="81e5dc5beee4b3fc025ac70c0b6caa14 subversion-1.6.17.tar.bz2
d084a7558053784886bc858b94fa9186 svnserve.confd
22c274fafb4817e31126f60f9d84039f svnserve.initd"