aboutsummaryrefslogtreecommitdiffstats
path: root/main/subversion/APKBUILD
blob: 2d3b663d46bd0f71a328f6f6726380136c5f2c77 (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
90
91
92
93
94
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=subversion
pkgver=1.9.3
pkgrel=2
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 serf-dev
	autoconf automake libtool python"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc mod_dav_svn
	perl-$pkgname:pl $pkgname-libs"
source="http://archive.apache.org/dist/$pkgname/$pkgname-$pkgver.tar.bz2
	subversion-1.7.0-deplibs.patch
	subversion-perl-deplibs.patch
	svnserve.confd
	svnserve.initd
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	default_prepare || return 1
	LIBTOOL_CONFIG=/usr/share/libtool/build-aux ./autogen.sh
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-nls \
		--with-apxs \
		--with-apache-libexecdir \
		--with-swig \
		--disable-javahl \
		--disable-static \
		--enable-disallowing-of-undefined-references \
		--without-jdk \
		--with-serf \
		|| return 1

	make 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 -j1 -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
	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
}

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="243036eb28b50ce517fc228eb3250add  subversion-1.9.3.tar.bz2
e1127cb722daecb3c89adbaf9eed7adf  subversion-1.7.0-deplibs.patch
39dd787af4f9ca05ab85ce94f4471687  subversion-perl-deplibs.patch
d084a7558053784886bc858b94fa9186  svnserve.confd
5f8f894631143c5da874bfb6917f2e07  svnserve.initd"
sha256sums="8bbf6bb125003d88ee1c22935a36b7b1ab7d957e0c8b5fbfe5cb6310b6e86ae0  subversion-1.9.3.tar.bz2
0259a605a62e7a7fe128ee3bfa1264421e4a4ebc66e35c666b59cac97471f5b7  subversion-1.7.0-deplibs.patch
da9cb4a1cf95b15088ab6612691f96b1ab338056843c22b5997238f0aaf2b38f  subversion-perl-deplibs.patch
c70655c073dc06f538c5acdbcd49e216f4be2c859ce395bdf78757a1eeccab00  svnserve.confd
ac8496caaf90628673b2e46f02e8f67ba7bd7ae7347758c5b91cd4f25f3f2f3f  svnserve.initd"
sha512sums="2197c5076e688ac09e63c345e45f2a5ee2999426edb76a91c6b92d229fa8c87772d76e99003a4438035771b4c11c502de399d44f4f42c0d759dcbd01b628a4cb  subversion-1.9.3.tar.bz2
fb219c45b80602d919176cc191394df09f90d0f5c7d24e6a36b166bd92777ecae67eeac1e49c0ffbb0e724396b3d2094dbb0bef17d01dc87d418b1cd554bd7c4  subversion-1.7.0-deplibs.patch
fd6e5f45cff4d3cf0d885a34c822b32141b13b199d99ad8e1b04d641c9c1ee27e73f5c556a4ad54a900b6d39cc14afad17b6738d8af44c76758f1a27b4d49f9a  subversion-perl-deplibs.patch
7fe993443d4d3ef5e1e75f60e85036ee0b2bb2636c2c830210e64f525f95ae4c10ca1dc4504fc36915ec9391815becbe7cbf5f589c28609386d8d079ed02c630  svnserve.confd
f6392193cc65aaceee9b6e5e66f80af4b095ba4007e8536e8b1c4e8b2c75610d7f5596b83e5edd504672f021c074887fc6464cf4fc1dfe9446741105f11cd855  svnserve.initd"