borg: rebuild for Python 3.5

Switch to python3-module.
Switch to python3-* pkgs.
This commit is contained in:
Alessio Sergi 2016-10-16 17:44:10 +02:00
parent 10ac492243
commit 71420c04c6
3 changed files with 25 additions and 20 deletions

View File

@ -1,15 +1,13 @@
# Template file for 'borg' # Template file for 'borg'
pkgname=borg pkgname=borg
version=1.0.7 version=1.0.7
revision=2 revision=3
wrksrc="borgbackup-${version}" wrksrc="borgbackup-${version}"
build_style=python-module build_style=python3-module
hostmakedepends="python3.4-setuptools python3.4-devel libressl-devel hostmakedepends="python3-setuptools python3-devel libressl-devel
python3.4-Sphinx python3.4-sphinx_rtd_theme" python3-Sphinx python3-sphinx_rtd_theme"
makedepends="${hostmakedepends/python3.4-setuptools/} acl-devel lz4-devel" makedepends="${hostmakedepends/python3-setuptools/} acl-devel lz4-devel"
depends="python3.4-llfuse python3.4-msgpack python3.4-setuptools" depends="python3-llfuse python3-msgpack python3-setuptools"
python_versions="3.4"
pycompile_version="3.4"
pycompile_module="borg" pycompile_module="borg"
short_desc="Deduplicating backup program with compression and encryption" short_desc="Deduplicating backup program with compression and encryption"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>" maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
@ -25,7 +23,7 @@ pre_build() {
fi fi
} }
post_build() { post_build() {
PYTHONPATH=.. make -C docs man SPHINXBUILD=sphinx-build3.4 PYTHONPATH=.. make -C docs man SPHINXBUILD=sphinx-build3
} }
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE

1
srcpkgs/libcap-ng-python3 Symbolic link
View File

@ -0,0 +1 @@
libcap-ng

View File

@ -1,7 +1,7 @@
# Template file for 'libcap-ng' # Template file for 'libcap-ng'
pkgname=libcap-ng pkgname=libcap-ng
version=0.7.8 version=0.7.8
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
configure_args="--without-python" configure_args="--without-python"
short_desc="An alternate POSIX capabilities library" short_desc="An alternate POSIX capabilities library"
@ -14,8 +14,8 @@ checksum=c21af997445cd4107a55d386f955c5ea6f6e96ead693e9151277c0ab5f97d05f
subpackages="libcap-ng-devel libcap-ng-progs" subpackages="libcap-ng-devel libcap-ng-progs"
if [ -z "$CROSS_BUILD" ]; then if [ -z "$CROSS_BUILD" ]; then
subpackages+=" libcap-ng-python libcap-ng-python3.4" subpackages+=" libcap-ng-python libcap-ng-python3.4 libcap-ng-python3"
hostmakedepends="python-devel python3.4-devel swig" hostmakedepends="python-devel python3-devel swig"
configure_args+=" --with-python" configure_args+=" --with-python"
fi fi
@ -38,22 +38,28 @@ libcap-ng-progs_package() {
vmove usr/share vmove usr/share
} }
} }
libcap-ng-python3.4_package() { libcap-ng-python3_package() {
lib32disabled=yes lib32disabled=yes
short_desc+=" - python3.4 bindings" replaces="libcap-ng-python3.4>=0"
depends="python3.4" short_desc+=" - python3 bindings"
pycompile_module="capng" depends="python3"
pycompile_version="3.4" pycompile_module="capng.py"
pkg_install() { pkg_install() {
vmove "usr/lib/python3.4" vmove ${py3_sitelib}
} }
} }
libcap-ng-python_package() { libcap-ng-python_package() {
lib32disabled=yes lib32disabled=yes
short_desc+=" - python bindings" short_desc+=" - python bindings"
depends="python" depends="python"
pycompile_module="capng" pycompile_module="capng.py"
pkg_install() { pkg_install() {
vmove "usr/lib/python2*" vmove ${py2_sitelib}
} }
} }
libcap-ng-python3.4_package() {
lib32disabled=yes
build_style=meta
short_desc+=" - python3.4 bindings (transitional dummy package)"
depends="libcap-ng-python3>=${version}_${revision}"
}