Subversion: enable perl swig bindings.

Fixes #111.
This commit is contained in:
Adrien Destugues
2017-09-24 09:12:23 +02:00
parent 6040ade632
commit f09b784b45

View File

@@ -7,7 +7,7 @@ and projects, from individuals to large-scale enterprise operations."
HOMEPAGE="https://subversion.apache.org/"
COPYRIGHT="2010-2017 The Apache Software Foundation"
LICENSE="Apache-Subversion"
REVISION="1"
REVISION="2"
SOURCE_URI="http://archive.apache.org/dist/subversion/subversion-$portVersion.tar.bz2"
CHECKSUM_SHA256="c3b118333ce12e501d509e66bb0a47bcc34d053990acab45559431ac3e491623"
PATCHES="subversion-$portVersion.patchset"
@@ -40,6 +40,7 @@ PROVIDES="
lib:libsvn_ra_svn_1 = 0.0.0 compat >= 0
lib:libsvn_repos_1 = 0.0.0 compat >= 0
lib:libsvn_subr_1 = 0.0.0 compat >= 0
lib:libsvn_swig_perl_1 = 0.0.0 compat >= 0
lib:libsvn_wc_1 = 0.0.0 compat >= 0
"
REQUIRES="
@@ -71,6 +72,7 @@ PROVIDES_devel="
devel:libsvn_ra_svn_1 = 0.0.0 compat >= 0
devel:libsvn_repos_1 = 0.0.0 compat >= 0
devel:libsvn_subr_1 = 0.0.0 compat >= 0
devel:libsvn_swig_perl_1 = 0.0.0 compat >= 0
devel:libsvn_wc_1 = 0.0.0 compat >= 0
"
REQUIRES_devel="
@@ -91,6 +93,7 @@ BUILD_REQUIRES="
devel:libserf_1
"
BUILD_PREREQUIRES="
cmd:perl
cmd:pkg_config
cmd:python
cmd:aclocal
@@ -100,6 +103,7 @@ BUILD_PREREQUIRES="
cmd:libtoolize
cmd:make
cmd:sed
cmd:swig
"
USER_SETTINGS_FILES="
@@ -122,18 +126,15 @@ INSTALL()
{
make install
rm $libDir/libsvn*.la
if type -p swig > /dev/null;then
if type -p python > /dev/null;then
PYTHON_PKGDIR=$(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
make install-swig-py swig_pydir=${PYTHON_PKGDIR}/libsvn swig_pydir_extra=${PYTHON_PKGDIR}/svn
fi
#if type -p perl > /dev/null;then
# make install-swig-pl
#fi
#if type -p ruby > /dev/null;then
# make install-swig-rb
#fi
#if type -p python > /dev/null;then
# make install-swig-py swig_pydir=${libDir}/python2.7/site-packages/libsvn swig_pydir_extra=${libDir}/python2.7/site-packages/svn
#fi
if type -p perl > /dev/null;then
make install-swig-pl
fi
#if type -p ruby > /dev/null;then
# make install-swig-rb
#fi
mv $prefix/data/pkgconfig $libDir/
prepareInstalledDevelLibs \
@@ -149,9 +150,11 @@ INSTALL()
libsvn_ra_svn-1 \
libsvn_repos-1 \
libsvn_subr-1 \
libsvn_swig_perl-1 \
libsvn_wc-1 \
libsvn_ra_serf-1
fixPkgconfig
rm $developLibDir/*.la
# devel package
packageEntries devel \