libcap-ng: switch to python3 only.
Make python2 a dummy meta-pkg.
This commit is contained in:
parent
f88509da76
commit
63d2a13e13
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libcap-ng'
|
# Template file for 'libcap-ng'
|
||||||
pkgname=libcap-ng
|
pkgname=libcap-ng
|
||||||
version=0.7.10
|
version=0.7.10
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--without-python --without-python3"
|
configure_args="--without-python --without-python3"
|
||||||
short_desc="Alternate POSIX capabilities library"
|
short_desc="Alternate POSIX capabilities library"
|
||||||
|
@ -15,8 +15,8 @@ subpackages="libcap-ng-devel libcap-ng-progs"
|
||||||
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
subpackages+=" libcap-ng-python libcap-ng-python3"
|
subpackages+=" libcap-ng-python libcap-ng-python3"
|
||||||
hostmakedepends="python-devel python3-devel swig"
|
hostmakedepends="python3-devel swig"
|
||||||
configure_args+=" --with-python --with-python3"
|
configure_args+=" --without-python --with-python3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
libcap-ng-devel_package() {
|
libcap-ng-devel_package() {
|
||||||
|
@ -48,11 +48,8 @@ libcap-ng-python3_package() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
libcap-ng-python_package() {
|
libcap-ng-python_package() {
|
||||||
lib32disabled=yes
|
build_style=meta
|
||||||
short_desc+=" - Python2 bindings"
|
archs=noarch
|
||||||
depends="python"
|
short_desc+=" - transitional dummy pkg"
|
||||||
pycompile_module="capng.py"
|
depends="libcap-ng-python3-${version}_${revision}"
|
||||||
pkg_install() {
|
|
||||||
vmove ${py2_sitelib}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user