From cb29bf2d2ad833b5c6305a080979f5cb092f560f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 26 Apr 2013 05:32:43 +0200 Subject: [PATCH] libcap-ng: disable python pkg in cross builds for now. --- srcpkgs/libcap-ng/template | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/srcpkgs/libcap-ng/template b/srcpkgs/libcap-ng/template index 67ab9923d4b..7b6f476dfd2 100644 --- a/srcpkgs/libcap-ng/template +++ b/srcpkgs/libcap-ng/template @@ -3,7 +3,7 @@ pkgname=libcap-ng version=0.7.1 revision=2 build_style=gnu-configure -makedepends="python-devel swig" +hostmakedepends="python-devel swig" short_desc="An alternate POSIX capabilities library" maintainer="Juan RP " homepage="http://people.redhat.com/sgrubb/libcap-ng/" @@ -19,6 +19,11 @@ long_desc=" The libcap-ng library is intended to make programming with posix capabilities much easier than the traditional libcap library." +if [ "$CROSS_BUILD" ]; then + unset hostmakedepends + configure_args+=" --without-python" +fi + libcap-ng-devel_package() { depends="libcap-ng>=${version}" short_desc+=" -- development files" @@ -39,6 +44,14 @@ libcap-ng-progs_package() { } } +libcap-ng_package() { + pkg_install() { + vmove usr + } +} + +if [ -z "$CROSS_BUILD" ]; then + libcap-ng-python_package() { short_desc+=" -- python bindings" depends="python" @@ -48,8 +61,5 @@ libcap-ng-python_package() { } } -libcap-ng_package() { - pkg_install() { - vmove usr - } -} +fi +