blob: 7b0292d4157d5e8ee9244e0c50e522f9deee37c2 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=subversion
pkgver=1.7.8
pkgrel=0
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 perl-dev swig
autoconf automake libtool"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc mod_dav_svn
perl-$pkgname:pl $pkgname-libs"
source="http://apache.uib.no/subversion/subversion-$pkgver.tar.bz2
subversion-1.7.0-deplibs.patch
subversion-perl-deplibs.patch
svnserve.confd
svnserve.initd
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
./autogen.sh
}
build() {
cd "$_builddir"
./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-lib || return 1
(cd subversion/bindings/swig/perl/native ; perl Makefile.PL) || return 1
# need override LD_RUN_PATH with something valid, otherwise we get
# empty rpath which is not a good idea.
make -C subversion/bindings/swig/perl/native LD_RUN_PATH="/usr/lib" EXTRALIBS="-lapr-1" || return 1
}
package() {
cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install install-swig-pl-lib || 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
}
libs() {
pkgdesc="Libraries for Subversion Version Control system"
replaces="subversion"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/*.so.* "$subpkgdir"/usr/lib/
}
mod_dav_svn() {
pkgdesc="Apache httpd module for Subversion server"
mkdir -p "$subpkgdir"/usr/lib
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="454b9f398415c3504435bf8c3f6ed127 subversion-1.7.8.tar.bz2
e1127cb722daecb3c89adbaf9eed7adf subversion-1.7.0-deplibs.patch
39dd787af4f9ca05ab85ce94f4471687 subversion-perl-deplibs.patch
d084a7558053784886bc858b94fa9186 svnserve.confd
bedaa1837021bc7654eae333fa9a21f0 svnserve.initd"
|