aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory M. Tuner <gmt@be-evil.net>2014-01-22 06:36:30 -0800
committerGregory M. Tuner <gmt@be-evil.net>2014-01-22 06:36:30 -0800
commitd6c56b0a4735ffe8773d6e4cc6e8d2b2099ae2c7 (patch)
tree50e6b2a6fdcf330980f3cad312ebd6de36a63355 /sys-libs
parentsys-libs/libcap-ng: clone upstream (diff)
downloadgmt-d6c56b0a4735ffe8773d6e4cc6e8d2b2099ae2c7.tar.gz
gmt-d6c56b0a4735ffe8773d6e4cc6e8d2b2099ae2c7.tar.bz2
gmt-d6c56b0a4735ffe8773d6e4cc6e8d2b2099ae2c7.zip
sys-libs/libcap-ng: multilib-utize
Signed-off-by: Gregory M. Tuner <gmt@be-evil.net>
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/libcap-ng/Manifest2
-rw-r--r--sys-libs/libcap-ng/libcap-ng-0.7.3-r1.ebuild36
2 files changed, 20 insertions, 18 deletions
diff --git a/sys-libs/libcap-ng/Manifest b/sys-libs/libcap-ng/Manifest
index 6ad4c19..fe8cdcd 100644
--- a/sys-libs/libcap-ng/Manifest
+++ b/sys-libs/libcap-ng/Manifest
@@ -1,4 +1,4 @@
DIST libcap-ng-0.7.3.tar.gz 392613 SHA256 5ca441c8d3a1e4cfe8a8151907977662679457311ccaa7eaac91447c33a35bb1 SHA512 f03a35c54b5998ef2e712540caa1f4ade37f9abe60992a1e727142b26815a4b8a7ce86ea94466fe692e4798c7297e5e1bbd338e5afe05689905ee9e0c0f16ef2 WHIRLPOOL 7752a70ea348dfc52537f67d5dccab03d598a112a7263a8811987453b53cda58643e938b4651c5cd8d0ea02f20fddc10bff2ac8bc23f68f97c9ab8c5791429ab
-EBUILD libcap-ng-0.7.3-r1.ebuild 2440 SHA256 763fe18901b3aa2aa84cb967e469543fd2f9e233baa7d50694d12779d98515fd SHA512 a14da29c4fa2636d720a09b985a7a1ad06133da68bab3ab69e9a05d4a368d8e77133c6272691b8281191fd475120affaa0852e555d0b5aab955cf0db759fa171 WHIRLPOOL c940328f13d22971163bce0660c109209992d69b791d79ba8a4de116f1e6599b4b9d7a72ea85c90237151248d2832f2b01e42e5c6e2e1ad1910b69ead3e4cbc5
+EBUILD libcap-ng-0.7.3-r1.ebuild 2709 SHA256 498ef84decf54e33a00a31ea1366680ca2afbe1be889262a9173316cd276d1f0 SHA512 465f7d405a1c35970a075ea68605c4aeb58b7bdad301cbdaad18dc59559a6986aa2ff3efca496a86a3a6aa368cd289792d566b96e533e79b9805cf8066f3a018 WHIRLPOOL 86a321ac2d3a5d5c0590b06c56a2a1e6267a79f56c761aadfcac77f1075416b0fce7820b219c6e5ac9c2f5c44c7c51febac27c1ed56b0f3f02d7626d809af717
MISC ChangeLog 8444 SHA256 c5e16aedda472a222c3228d11fd02f71bafefc9427ef1f028f11e57932f57744 SHA512 7338869cda1ff90a8fc53e24c56dd26284124f0d2a9b1efebe607fbc124b23e3a4dd3967eb7a966bf7d6600fb67f206526c19a0633e5883793ecb9abd3ab34d4 WHIRLPOOL df1bf5cc63713bd259f8101a7ea54bfc2865d860dc2a7b9b246d5e414772a025f5966c14998de80931f693f7feccff56002f5a8d0e6282a5d167b543a1dc7420
MISC metadata.xml 501 SHA256 2ba6118979e987255eff0de2453eff6e9a76d4e2ffa04e3acbe1bc92fda0a171 SHA512 f974d0009e90640257cab704897db67cc736663313d026ba2092a6aaae004973416e1f649c9d7a0373b1f58d49db8103217e85803faa8c37a7830c9057f2c5e8 WHIRLPOOL 38c2e18fffda49e0b81e47bce317af92b0e992d1371c79e2e8bed04ea69e704902e005af8693735f7bf1fbf8d1cda5bea6ec9e0c20886018103914d11a95ec30
diff --git a/sys-libs/libcap-ng/libcap-ng-0.7.3-r1.ebuild b/sys-libs/libcap-ng/libcap-ng-0.7.3-r1.ebuild
index 07f3e79..134e3e5 100644
--- a/sys-libs/libcap-ng/libcap-ng-0.7.3-r1.ebuild
+++ b/sys-libs/libcap-ng/libcap-ng-0.7.3-r1.ebuild
@@ -7,7 +7,7 @@ EAPI=5
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
-inherit autotools flag-o-matic python
+inherit autotools flag-o-matic python eutils-multilib multilib-minimal
DESCRIPTION="POSIX 1003.1e capabilities"
HOMEPAGE="http://people.redhat.com/sgrubb/libcap-ng/"
@@ -15,7 +15,7 @@ SRC_URI="http://people.redhat.com/sgrubb/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~arm-linux ~x86-linux"
+KEYWORDS="~amd64"
IUSE="python static-libs"
RDEPEND="python? ( dev-lang/python )"
@@ -42,30 +42,31 @@ src_prepare() {
use sparc && replace-flags -O? -O0
}
-src_configure() {
- econf \
+multilib_src_configure() {
+ local CFLAGS="${CFLAGS}"
+ export CFLAGS
+ ECONF_SOURCE="${S}" econf \
$(use_enable static-libs static) \
- $(use_with python)
+ $(use_with_best_abi python)
}
-src_compile() {
+multilib_src_compile() {
default
- if use python; then
- python_copy_sources bindings/python
-
+ if multilib_is_best_abi && use python; then
+ S="${BUILD_DIR}" python_copy_sources bindings/python
building() {
emake \
- CFLAGS="${CFLAGS}" \
+ CFLAGS="${CFLAGS} $(python-config --cflags)" \
PYTHON_VERSION="$(python_get_version)" \
pyexecdir="$(python_get_sitedir)" \
pythondir="$(python_get_sitedir)"
}
- python_execute_function -s --source-dir bindings/python building
+ S="${BUILD_DIR}" python_execute_function -s --source-dir bindings/python building
fi
}
-src_test() {
+multilib_src_test() {
if [[ "${EUID}" -eq 0 ]]; then
ewarn "Skipping tests due to root permissions."
return
@@ -73,23 +74,24 @@ src_test() {
default
- if use python; then
+ if multilib_is_best_abi use python; then
testing() {
emake \
+ CFLAGS="${CFLAGS} $(python-config --cflags)" \
PYTHON_VERSION="$(python_get_version)" \
pyexecdir="$(python_get_sitedir)" \
pythondir="$(python_get_sitedir)" \
TESTS_ENVIRONMENT="PYTHONPATH=..:../.libs" \
check
}
- python_execute_function -s --source-dir bindings/python testing
+ S="${BUILD_DIR}" python_execute_function -s --source-dir bindings/python testing
fi
}
-src_install() {
+multilib_src_install() {
default
- if use python; then
+ if multilib_is_best_abi && use python; then
installation() {
emake \
DESTDIR="${D}" \
@@ -98,7 +100,7 @@ src_install() {
pythondir="$(python_get_sitedir)" \
install
}
- python_execute_function -s --source-dir bindings/python installation
+ S="${BUILD_DIR}" python_execute_function -s --source-dir bindings/python installation
python_clean_installation_image
fi