libcap-ng: switch to python3 only.

Make python2 a dummy meta-pkg.
This commit is contained in:
Juan RP 2019-12-29 09:18:46 +01:00
parent f88509da76
commit 63d2a13e13
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368
1 changed files with 7 additions and 10 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'libcap-ng'
pkgname=libcap-ng
version=0.7.10
revision=2
revision=3
build_style=gnu-configure
configure_args="--without-python --without-python3"
short_desc="Alternate POSIX capabilities library"
@ -15,8 +15,8 @@ subpackages="libcap-ng-devel libcap-ng-progs"
if [ -z "$CROSS_BUILD" ]; then
subpackages+=" libcap-ng-python libcap-ng-python3"
hostmakedepends="python-devel python3-devel swig"
configure_args+=" --with-python --with-python3"
hostmakedepends="python3-devel swig"
configure_args+=" --without-python --with-python3"
fi
libcap-ng-devel_package() {
@ -48,11 +48,8 @@ libcap-ng-python3_package() {
}
}
libcap-ng-python_package() {
lib32disabled=yes
short_desc+=" - Python2 bindings"
depends="python"
pycompile_module="capng.py"
pkg_install() {
vmove ${py2_sitelib}
}
build_style=meta
archs=noarch
short_desc+=" - transitional dummy pkg"
depends="libcap-ng-python3-${version}_${revision}"
}