2011-01-14 17:27:50 +01:00
|
|
|
# Template file for 'subversion'
|
|
|
|
pkgname=subversion
|
2014-03-01 09:10:33 +01:00
|
|
|
version=1.8.8
|
2014-04-02 10:18:26 +02:00
|
|
|
revision=2
|
2011-01-14 17:27:50 +01:00
|
|
|
short_desc="Enterprise-class centralized version control for the masses"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-05 18:16:32 +02:00
|
|
|
license="Apache-2.0, BSD"
|
2012-12-21 16:57:25 +01:00
|
|
|
homepage="http://subversion.apache.org/"
|
2013-04-16 10:17:10 +02:00
|
|
|
distfiles="http://apache.rediris.es/subversion/subversion-${version}.tar.bz2"
|
2014-03-01 09:10:33 +01:00
|
|
|
checksum=1569931cd85ae27052895554bc14125e0795d7a17d3e4a7c2aceb7289be71db3
|
2012-12-21 16:57:25 +01:00
|
|
|
|
2013-05-26 10:41:55 +02:00
|
|
|
hostmakedepends="pkg-config"
|
2013-11-25 20:43:00 +01:00
|
|
|
makedepends="db-devel>=5.3 perl>=5.18 python-devel swig apr-util-devel
|
2013-08-17 11:04:47 +02:00
|
|
|
libldap-devel serf-devel gdbm-devel expat-devel apr-devel libuuid-devel
|
2012-12-21 16:57:25 +01:00
|
|
|
sqlite-devel libsasl-devel dbus-devel libgnome-keyring-devel glib-devel
|
2013-08-17 11:04:47 +02:00
|
|
|
qt-devel kdelibs-devel apache-devel ca-certificates"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="ca-certificates"
|
2011-01-14 17:27:50 +01:00
|
|
|
|
2012-05-18 07:58:47 +02:00
|
|
|
do_configure() {
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} \
|
2012-12-21 16:57:25 +01:00
|
|
|
--with-apxs --disable-javahl --disable-static \
|
2013-08-17 11:04:47 +02:00
|
|
|
--with-kwallet --with-gnome-keyring --with-editor=vi \
|
2011-01-14 17:27:50 +01:00
|
|
|
--disable-mod-activation
|
2012-05-18 07:58:47 +02:00
|
|
|
}
|
2011-01-14 17:27:50 +01:00
|
|
|
|
2012-05-18 07:58:47 +02:00
|
|
|
do_build() {
|
2013-08-17 11:04:47 +02:00
|
|
|
make ${makejobs} LT_LDFLAGS="-L$Fdestdir/usr/lib"
|
2012-12-21 16:57:25 +01:00
|
|
|
make ${makejobs} swig_pydir=/usr/lib/python2.7/site-packages/libsvn \
|
2012-05-18 07:58:47 +02:00
|
|
|
swig_pydir_extra=/usr/lib/python2.7/site-packages/svn \
|
|
|
|
swig-py swig-pl
|
2011-01-14 17:27:50 +01:00
|
|
|
}
|
|
|
|
|
2012-05-18 07:58:47 +02:00
|
|
|
do_install() {
|
2011-01-14 17:27:50 +01:00
|
|
|
export LD_LIBRARY_PATH=${DESTDIR}/usr/lib:$LD_LIBRARY_PATH
|
|
|
|
|
2012-05-18 07:58:47 +02:00
|
|
|
make DESTDIR=${DESTDIR} INSTALLDIRS=vendor \
|
|
|
|
swig_pydir=/usr/lib/python2.7/site-packages/libsvn \
|
|
|
|
swig_pydir_extra=/usr/lib/python2.7/site-packages/svn \
|
|
|
|
install install-swig-py install-swig-pl
|
2011-01-14 17:27:50 +01:00
|
|
|
|
2012-12-21 16:57:25 +01:00
|
|
|
vinstall ${FILESDIR}/svnserve.service 644 usr/lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/svnserve.tmpfiles 644 usr/lib/tmpfiles.d svnserve.conf
|
|
|
|
|
2011-01-14 17:27:50 +01:00
|
|
|
rm -rf ${DESTDIR}/usr/lib/perl5/core_perl
|
2012-12-21 16:57:25 +01:00
|
|
|
vmkdir usr/share/subversion
|
2011-01-14 17:27:50 +01:00
|
|
|
install -d -m755 tools/hook-scripts ${DESTDIR}/usr/share/subversion/
|
|
|
|
rm -f ${DESTDIR}/usr/share/subversion/hook-scripts/*.in
|
|
|
|
|
2012-12-21 16:57:25 +01:00
|
|
|
install -Dm644 tools/client-side/bash_completion \
|
|
|
|
${DESTDIR}/usr/share/bash-completion/completions/subversion
|
|
|
|
|
|
|
|
for i in svn svnadmin svndumpfilter svnlook svnsync svnversion; do
|
|
|
|
ln -sf subversion ${DESTDIR}/usr/share/bash-completion/completions/${i}
|
|
|
|
done
|
2011-01-14 17:27:50 +01:00
|
|
|
}
|
2013-04-14 12:31:59 +02:00
|
|
|
|
2013-04-16 10:17:10 +02:00
|
|
|
libsvn_package() {
|
2013-05-09 16:26:34 +02:00
|
|
|
short_desc+=" - shared libraries"
|
2013-04-14 12:31:59 +02:00
|
|
|
pkg_install() {
|
2014-04-02 10:18:26 +02:00
|
|
|
vmove "usr/lib/libsvn_ra*.so.*"
|
|
|
|
vmove "usr/lib/libsvn_fs*.so.*"
|
|
|
|
vmove "usr/lib/libsvn_subr*.so.*"
|
|
|
|
vmove "usr/lib/libsvn_wc*.so.*"
|
|
|
|
vmove "usr/lib/libsvn_delta*.so.*"
|
|
|
|
vmove "usr/lib/libsvn_diff*.so.*"
|
|
|
|
vmove "usr/lib/libsvn_repos*.so.*"
|
|
|
|
vmove "usr/lib/libsvn_client*.so.*"
|
2013-04-14 12:31:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-16 10:17:10 +02:00
|
|
|
subversion-apache_package() {
|
2013-05-09 16:26:34 +02:00
|
|
|
short_desc+=" - apache httpd modules"
|
2013-04-14 12:31:59 +02:00
|
|
|
pkg_install() {
|
2013-04-16 10:17:10 +02:00
|
|
|
vmove usr/libexec
|
2013-04-14 12:31:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-16 10:17:10 +02:00
|
|
|
subversion-devel_package() {
|
2014-04-02 10:18:26 +02:00
|
|
|
depends="libsvn>=${version}_${revision}"
|
2013-05-09 16:26:34 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 12:31:59 +02:00
|
|
|
pkg_install() {
|
2013-04-16 10:17:10 +02:00
|
|
|
vmove usr/include
|
2014-04-02 10:18:26 +02:00
|
|
|
vmove usr/lib/*.so
|
2013-04-14 12:31:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
subversion-gnome-keyring-auth_package() {
|
2014-04-02 10:18:26 +02:00
|
|
|
lib32disabled=yes
|
2013-06-01 05:54:54 +02:00
|
|
|
short_desc+=" - gnome-keyring authentication support"
|
2013-04-14 12:31:59 +02:00
|
|
|
pkg_install() {
|
2013-04-16 10:17:10 +02:00
|
|
|
vmove "usr/lib/libsvn_auth_gnome_keyring*"
|
2013-04-14 12:31:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-17 11:04:47 +02:00
|
|
|
subversion-kwallet-auth_package() {
|
2014-04-02 10:18:26 +02:00
|
|
|
lib32disabled=yes
|
2013-08-17 11:04:47 +02:00
|
|
|
short_desc+=" - KDE kwallet authentication support"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libsvn_auth_k*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-16 10:17:10 +02:00
|
|
|
subversion-python_package() {
|
2014-04-02 10:18:26 +02:00
|
|
|
lib32disabled=yes
|
2013-04-16 10:17:10 +02:00
|
|
|
depends="python"
|
|
|
|
pycompile_module="libsvn svn"
|
2013-05-09 16:26:34 +02:00
|
|
|
short_desc+=" - python bindings"
|
2013-04-14 12:31:59 +02:00
|
|
|
pkg_install() {
|
2013-04-16 10:17:10 +02:00
|
|
|
vmove "usr/lib/libsvn_swig_py*"
|
|
|
|
vmove "usr/lib/python*"
|
2013-04-14 12:31:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-16 10:17:10 +02:00
|
|
|
subversion-perl_package() {
|
2014-04-02 10:18:26 +02:00
|
|
|
lib32disabled=yes
|
2013-04-16 10:17:10 +02:00
|
|
|
depends="perl>=5.16"
|
2013-05-09 16:26:34 +02:00
|
|
|
short_desc+=" - perl bindings"
|
2013-04-14 12:31:59 +02:00
|
|
|
pkg_install() {
|
2013-04-16 10:17:10 +02:00
|
|
|
vmove "usr/lib/libsvn_swig_perl*"
|
|
|
|
vmove usr/lib/perl5
|
|
|
|
vmove usr/share/man/man3
|
2013-04-14 12:31:59 +02:00
|
|
|
}
|
|
|
|
}
|