void-packages/srcpkgs/subversion/template

111 lines
3 KiB
Text

# Template file for 'subversion'
pkgname=subversion
version=1.7.8
revision=3
short_desc="Enterprise-class centralized version control for the masses"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Apache-2.0, BSD"
distfiles="http://apache.mirror.rafal.ca/subversion/${pkgname}-${version}.tar.bz2"
homepage="http://subversion.apache.org/"
checksum=fc83d4d98ccea8b7bfa8f5c20fff545c8baa7d035db930977550c51c6ca23686
# 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
neon-devel apache-devel ca-certificates"
do_configure() {
./configure ${CONFIGURE_SHARED_ARGS} \
--with-apxs --disable-javahl --disable-static \
--without-kwallet --with-gnome-keyring --with-editor=vim \
--disable-mod-activation
}
do_build() {
make ${makejobs} external-all
make ${makejobs} LT_LDFLAGS="-L$Fdestdir/usr/lib" local-all
make ${makejobs} swig_pydir=/usr/lib/python2.7/site-packages/libsvn \
swig_pydir_extra=/usr/lib/python2.7/site-packages/svn \
swig-py swig-pl
}
do_install() {
export LD_LIBRARY_PATH=${DESTDIR}/usr/lib:$LD_LIBRARY_PATH
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
vinstall ${FILESDIR}/svnserve.service 644 usr/lib/systemd/system
vinstall ${FILESDIR}/svnserve.tmpfiles 644 usr/lib/tmpfiles.d svnserve.conf
rm -rf ${DESTDIR}/usr/lib/perl5/core_perl
vmkdir usr/share/subversion
install -d -m755 tools/hook-scripts ${DESTDIR}/usr/share/subversion/
rm -f ${DESTDIR}/usr/share/subversion/hook-scripts/*.in
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
}
subversion-python_package() {
depends="python"
pycompile_module="libsvn svn"
short_desc="${short_desc} - python bindings"
pkg_install() {
vmove "usr/lib/libsvn_swig_py-1.so*"
vmove "usr/lib/python*"
}
}
subversion-perl_package() {
depends="perl>=5.16"
short_desc="${short_desc} - perl bindings"
pkg_install() {
vmove "usr/lib/libsvn_swig_perl-1.so*"
vmove usr/lib/perl5
vmove usr/share/man/man3
}
}
subversion-apache_package() {
short_desc="${short_desc} - apache httpd modules"
pkg_install() {
vmove usr/libexec
}
}
subversion-gnome-keyring-auth_package() {
short_desc="subversion - gnome-keyring authentication support"
pkg_install() {
vmove "usr/lib/lib*gnome_keyring*.so*"
}
}
subversion-devel_package() {
depends="libsvn>=$version"
short_desc="${short_desc} - development files"
pkg_install() {
vmove usr/include
}
}
libsvn_package() {
short_desc="${short_desc} - shared libraries"
pkg_install() {
vmove usr/lib
}
}
subversion_package() {
depends="ca-certificates"
pkg_install() {
vmove usr
}
}