2011-01-14 16:27:50 +00:00
|
|
|
# Template file for 'subversion'
|
|
|
|
pkgname=subversion
|
2013-04-16 08:17:10 +00:00
|
|
|
version=1.7.9
|
|
|
|
revision=1
|
2011-01-14 16:27:50 +00:00
|
|
|
short_desc="Enterprise-class centralized version control for the masses"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-05 16:16:32 +00:00
|
|
|
license="Apache-2.0, BSD"
|
2012-12-21 15:57:25 +00:00
|
|
|
homepage="http://subversion.apache.org/"
|
2013-04-16 08:17:10 +00:00
|
|
|
distfiles="http://apache.rediris.es/subversion/subversion-${version}.tar.bz2"
|
|
|
|
checksum=f8454c585f99afed764232a5048d9b8bfd0a25a9ab8e339ea69fe1204c453ef4
|
2012-12-21 15:57:25 +00:00
|
|
|
|
|
|
|
# XXX enable kwallet when kdelibs is available.
|
|
|
|
makedepends="pkg-config perl>=5.16 python-devel swig apr-util-devel
|
|
|
|
libldap-devel db-devel gdbm-devel expat-devel apr-devel libuuid-devel
|
|
|
|
sqlite-devel libsasl-devel dbus-devel libgnome-keyring-devel glib-devel
|
2013-04-14 10:31:59 +00:00
|
|
|
neon-devel apache-devel ca-certificates"
|
2011-01-14 16:27:50 +00:00
|
|
|
|
2012-05-18 05:58:47 +00:00
|
|
|
do_configure() {
|
2012-12-21 15:57:25 +00:00
|
|
|
./configure ${CONFIGURE_SHARED_ARGS} \
|
|
|
|
--with-apxs --disable-javahl --disable-static \
|
2011-01-14 16:27:50 +00:00
|
|
|
--without-kwallet --with-gnome-keyring --with-editor=vim \
|
|
|
|
--disable-mod-activation
|
2012-05-18 05:58:47 +00:00
|
|
|
}
|
2011-01-14 16:27:50 +00:00
|
|
|
|
2012-05-18 05:58:47 +00:00
|
|
|
do_build() {
|
|
|
|
make ${makejobs} external-all
|
|
|
|
make ${makejobs} LT_LDFLAGS="-L$Fdestdir/usr/lib" local-all
|
2012-12-21 15:57:25 +00:00
|
|
|
make ${makejobs} swig_pydir=/usr/lib/python2.7/site-packages/libsvn \
|
2012-05-18 05:58:47 +00:00
|
|
|
swig_pydir_extra=/usr/lib/python2.7/site-packages/svn \
|
|
|
|
swig-py swig-pl
|
2011-01-14 16:27:50 +00:00
|
|
|
}
|
|
|
|
|
2012-05-18 05:58:47 +00:00
|
|
|
do_install() {
|
2011-01-14 16:27:50 +00:00
|
|
|
export LD_LIBRARY_PATH=${DESTDIR}/usr/lib:$LD_LIBRARY_PATH
|
|
|
|
|
2012-05-18 05:58:47 +00: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 16:27:50 +00:00
|
|
|
|
2012-12-21 15:57:25 +00:00
|
|
|
vinstall ${FILESDIR}/svnserve.service 644 usr/lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/svnserve.tmpfiles 644 usr/lib/tmpfiles.d svnserve.conf
|
|
|
|
|
2011-01-14 16:27:50 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/lib/perl5/core_perl
|
2012-12-21 15:57:25 +00:00
|
|
|
vmkdir usr/share/subversion
|
2011-01-14 16:27:50 +00:00
|
|
|
install -d -m755 tools/hook-scripts ${DESTDIR}/usr/share/subversion/
|
|
|
|
rm -f ${DESTDIR}/usr/share/subversion/hook-scripts/*.in
|
|
|
|
|
2012-12-21 15:57:25 +00: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 16:27:50 +00:00
|
|
|
}
|
2013-04-14 10:31:59 +00:00
|
|
|
|
2013-04-16 08:17:10 +00:00
|
|
|
libsvn_package() {
|
|
|
|
short_desc="${short_desc} - shared libraries"
|
2013-04-14 10:31:59 +00:00
|
|
|
pkg_install() {
|
2013-04-16 08:17:10 +00:00
|
|
|
vmove "usr/lib/libsvn_ra*"
|
|
|
|
vmove "usr/lib/libsvn_fs*"
|
|
|
|
vmove "usr/lib/libsvn_subr*"
|
|
|
|
vmove "usr/lib/libsvn_wc*"
|
|
|
|
vmove "usr/lib/libsvn_delta*"
|
|
|
|
vmove "usr/lib/libsvn_diff*"
|
|
|
|
vmove "usr/lib/libsvn_repos*"
|
|
|
|
vmove "usr/lib/libsvn_client*"
|
2013-04-14 10:31:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-16 08:17:10 +00:00
|
|
|
subversion-apache_package() {
|
|
|
|
short_desc="${short_desc} - apache httpd modules"
|
2013-04-14 10:31:59 +00:00
|
|
|
pkg_install() {
|
2013-04-16 08:17:10 +00:00
|
|
|
vmove usr/libexec
|
2013-04-14 10:31:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-16 08:17:10 +00:00
|
|
|
subversion-devel_package() {
|
|
|
|
depends="libsvn>=$version"
|
|
|
|
short_desc="${short_desc} - development files"
|
2013-04-14 10:31:59 +00:00
|
|
|
pkg_install() {
|
2013-04-16 08:17:10 +00:00
|
|
|
vmove usr/include
|
2013-04-14 10:31:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
subversion-gnome-keyring-auth_package() {
|
|
|
|
short_desc="subversion - gnome-keyring authentication support"
|
|
|
|
pkg_install() {
|
2013-04-16 08:17:10 +00:00
|
|
|
vmove "usr/lib/libsvn_auth_gnome_keyring*"
|
2013-04-14 10:31:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-16 08:17:10 +00:00
|
|
|
subversion-python_package() {
|
|
|
|
depends="python"
|
|
|
|
pycompile_module="libsvn svn"
|
|
|
|
short_desc="${short_desc} - python bindings"
|
2013-04-14 10:31:59 +00:00
|
|
|
pkg_install() {
|
2013-04-16 08:17:10 +00:00
|
|
|
vmove "usr/lib/libsvn_swig_py*"
|
|
|
|
vmove "usr/lib/python*"
|
2013-04-14 10:31:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-16 08:17:10 +00:00
|
|
|
subversion-perl_package() {
|
|
|
|
depends="perl>=5.16"
|
|
|
|
short_desc="${short_desc} - perl bindings"
|
2013-04-14 10:31:59 +00:00
|
|
|
pkg_install() {
|
2013-04-16 08:17:10 +00:00
|
|
|
vmove "usr/lib/libsvn_swig_perl*"
|
|
|
|
vmove usr/lib/perl5
|
|
|
|
vmove usr/share/man/man3
|
2013-04-14 10:31:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
subversion_package() {
|
|
|
|
depends="ca-certificates"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|