summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-07-22 17:14:09 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-07-22 17:14:09 +0000
commit7f2bca02279812ffee2996255831ad7b5bd2386b (patch)
treeb45155d4396588a6fe06ca6a500568d07d9812d0 /user
parentd3eb7058d8f66a7fa94c262314df4c95a76a36fc (diff)
parentcf65b0b360d549c2bdc848fb4580b5df89d18c96 (diff)
downloadpackages-7f2bca02279812ffee2996255831ad7b5bd2386b.tar.gz
packages-7f2bca02279812ffee2996255831ad7b5bd2386b.tar.bz2
packages-7f2bca02279812ffee2996255831ad7b5bd2386b.tar.xz
packages-7f2bca02279812ffee2996255831ad7b5bd2386b.zip
Merge branch 'git-svn' into 'master'
user/subversion: add subversion-pl for git-svn support See merge request adelie/packages!286
Diffstat (limited to 'user')
-rw-r--r--user/subversion/APKBUILD31
1 files changed, 26 insertions, 5 deletions
diff --git a/user/subversion/APKBUILD b/user/subversion/APKBUILD
index 582a2dfd9..9cb297aa6 100644
--- a/user/subversion/APKBUILD
+++ b/user/subversion/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=subversion
pkgver=1.12.0
-pkgrel=0
+pkgrel=1
pkgdesc="Version control system from 2000"
url="https://subversion.apache.org/"
arch="all"
@@ -13,9 +13,10 @@ depends=""
depends_dev="apr-dev apr-util-dev linux-headers"
makedepends="apr-dev apr-util-dev cyrus-sasl-dev db-dev dbus-dev file-dev
kdelibs4support-dev kwallet-dev libsecret-dev lz4-dev openssl-dev
- serf-dev sqlite-dev utf8proc-dev zlib-dev autoconf automake python3"
+ serf-dev sqlite-dev utf8proc-dev zlib-dev autoconf automake python3
+ perl-dev swig"
subpackages="$pkgname-dev $pkgname-doc $pkgname-gnome $pkgname-kwallet
- $pkgname-lang"
+ $pkgname-pl $pkgname-lang"
source="https://www-eu.apache.org/dist/subversion/subversion-$pkgver.tar.bz2
apr-1.7.0.patch
python3-bang.patch
@@ -39,16 +40,29 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
- --with-kwallet
+ --with-kwallet \
+ --with-swig
make
+
+ make swig-pl-lib
+ (cd subversion/bindings/swig/perl/native; perl Makefile.PL)
+ # need override LD_RUN_PATH with something valid, otherwise we get
+ # empty rpath which is not a good idea.
+ make -j1 -C subversion/bindings/swig/perl/native \
+ LD_RUN_PATH="/usr/lib" EXTRALIBS="-lapr-1"
}
check() {
make check
+ make check-swig-pl
}
package() {
- make DESTDIR="$pkgdir" -j1 install
+ make DESTDIR="$pkgdir" -j1 install install-swig-pl-lib
+
+ make pure_vendor_install -C subversion/bindings/swig/perl/native \
+ PERL_INSTALL_ROOT="$pkgdir"
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
gnome() {
@@ -64,6 +78,13 @@ kwallet() {
mv "$pkgdir"/usr/lib/libsvn_auth_kwallet* "$subpkgdir"/usr/lib/
}
+pl() {
+ pkgdesc="$pkgdesc (Perl bindings)"
+ install_if="$pkgname=$pkgver-r$pkgrel git"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/*perl* "$subpkgdir"/usr/lib/
+}
+
sha512sums="87a00b23bdac63124fa00642e2ac7e6f7818b092bc6422cabdeb2ca8fbc8c481fb8c1e4fbd86aac94e8e1fc099fa163aa0609aca23265ceb96ef4ebe78a64c13 subversion-1.12.0.tar.bz2
71b22f08a972a51347af00f979c4ec540c5795b44f3ced07ab2fcf8b1294b59add945983af4a63815d9f5d3b0ba88c24320cf2ec21189bf48c0ec46c7c0b48cf apr-1.7.0.patch
1b96b791f70c2f6e05da8dbc9d42ccadf4603f25392c6676c4e30ecdb142ce74dd9b8dc27dc68b1cb461f4409d79c4c2aeed1d39a5a442d9349079a819358f5a python3-bang.patch"