aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory M. Tuner <gmt@be-evil.net>2014-05-05 22:24:08 -0700
committerGregory M. Tuner <gmt@be-evil.net>2014-05-05 22:24:08 -0700
commitb5ff5e725e18987b60844080cc7f97d36495cb4f (patch)
tree09462dcc10e7667d4ef497350e1962be541e8332 /sys-libs
parentsys-libs/libcap-ng: drop as upstream latest revbump now works automagically. (diff)
downloadgmt-b5ff5e725e18987b60844080cc7f97d36495cb4f.tar.gz
gmt-b5ff5e725e18987b60844080cc7f97d36495cb4f.tar.bz2
gmt-b5ff5e725e18987b60844080cc7f97d36495cb4f.zip
sys-libs/libcap-ng: restore (& clone 0.7.4 upstream version)
Signed-off-by: Gregory M. Tuner <gmt@be-evil.net>
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/libcap-ng/ChangeLog246
-rw-r--r--sys-libs/libcap-ng/Manifest6
-rw-r--r--sys-libs/libcap-ng/libcap-ng-0.7.3-r1.ebuild117
-rw-r--r--sys-libs/libcap-ng/libcap-ng-0.7.4-r1.ebuild92
-rw-r--r--sys-libs/libcap-ng/metadata.xml10
5 files changed, 471 insertions, 0 deletions
diff --git a/sys-libs/libcap-ng/ChangeLog b/sys-libs/libcap-ng/ChangeLog
new file mode 100644
index 0000000..7ee3577
--- /dev/null
+++ b/sys-libs/libcap-ng/ChangeLog
@@ -0,0 +1,246 @@
+# ChangeLog for sys-libs/libcap-ng
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v 1.67 2014/04/30 18:40:31 radhermit Exp $
+
+*libcap-ng-0.7.4 (30 Apr 2014)
+
+ 30 Apr 2014; Tim Harder <radhermit@gentoo.org> +libcap-ng-0.7.4.ebuild:
+ Version bump, move to python-r1 (bug #460044, patch by mgorny).
+
+ 19 Jan 2014; Mike Frysinger <vapier@gentoo.org> libcap-ng-0.7.3.ebuild:
+ Add arm64 love.
+
+ 06 Sep 2013; Agostino Sarubbo <ago@gentoo.org> libcap-ng-0.7.3.ebuild:
+ Stable for sparc, wrt bug #479616
+
+ 05 Sep 2013; Agostino Sarubbo <ago@gentoo.org> libcap-ng-0.7.3.ebuild:
+ Stable for ppc64, wrt bug #479616
+
+ 04 Sep 2013; Agostino Sarubbo <ago@gentoo.org> libcap-ng-0.7.3.ebuild:
+ Stable for ppc, wrt bug #479616
+
+ 02 Sep 2013; Agostino Sarubbo <ago@gentoo.org> libcap-ng-0.7.3.ebuild:
+ Stable for alpha, wrt bug #479616
+
+ 02 Sep 2013; Jeff Horelick <jdhore@gentoo.org> libcap-ng-0.7.3.ebuild:
+ marked x86 per bug 479616
+
+ 31 Aug 2013; Agostino Sarubbo <ago@gentoo.org> libcap-ng-0.7.3.ebuild:
+ Stable for arm, wrt bug #479616
+
+ 31 Aug 2013; Agostino Sarubbo <ago@gentoo.org> libcap-ng-0.7.3.ebuild:
+ Stable for amd64, wrt bug #479616
+
+ 29 Aug 2013; Agostino Sarubbo <ago@gentoo.org> libcap-ng-0.7.3.ebuild:
+ Stable for ia64, wrt bug #479616
+
+ 29 Aug 2013; Jeroen Roovers <jer@gentoo.org> libcap-ng-0.7.3.ebuild:
+ Stable for HPPA (bug #479616).
+
+ 20 Feb 2013; Zac Medico <zmedico@gentoo.org> libcap-ng-0.7.3.ebuild:
+ Add ~arm-linux keyword.
+
+ 16 Feb 2013; Zac Medico <zmedico@gentoo.org> libcap-ng-0.7.3.ebuild:
+ Add ~x86-linux keyword.
+
+ 15 Jan 2013; Diego E. Pettenò <flameeyes@gentoo.org> libcap-ng-0.7.3.ebuild:
+ Fix bug #452118 (automake-1.13 failure).
+
+ 24 Nov 2012; Tim Harder <radhermit@gentoo.org> -libcap-ng-0.7.ebuild:
+ Remove old.
+
+*libcap-ng-0.7.3 (24 Nov 2012)
+
+ 24 Nov 2012; Tim Harder <radhermit@gentoo.org> +libcap-ng-0.7.3.ebuild:
+ Version bump.
+
+ 02 Nov 2012; Tim Harder <radhermit@gentoo.org> libcap-ng-0.7.1.ebuild:
+ Drop unused sys-apps/attr dep as noted by Arfrever.
+
+*libcap-ng-0.7.1 (02 Nov 2012)
+
+ 02 Nov 2012; Tim Harder <radhermit@gentoo.org> +libcap-ng-0.7.1.ebuild:
+ Version bump.
+
+ 26 Jul 2012; Tim Harder <radhermit@gentoo.org> libcap-ng-0.6.6.ebuild,
+ libcap-ng-0.7.ebuild:
+ Remove unused eutils inherit.
+
+*libcap-ng-0.7 (25 Jul 2012)
+
+ 25 Jul 2012; Tim Harder <radhermit@gentoo.org> +libcap-ng-0.7.ebuild:
+ Version bump.
+
+ 19 May 2012; Anthony G. Basile <blueness@gentoo.org> libcap-ng-0.6.6.ebuild:
+ Keyword mips
+
+ 06 Apr 2012; Pacho Ramos <pacho@gentoo.org> metadata.xml:
+ Drop maintainer due retirement, bug #63588
+
+ 03 Apr 2012; Samuli Suominen <ssuominen@gentoo.org> -libcap-ng-0.6.2.ebuild,
+ -libcap-ng-0.6.4.ebuild, -files/libcap-ng-0.6.4-fix_tests_building.patch,
+ -files/libcap-ng-0.6.4-python.patch, -libcap-ng-0.6.5.ebuild,
+ -files/libcap-ng-gentoo.patch:
+ old
+
+ 01 Apr 2012; Raúl Porcel <armin76@gentoo.org> libcap-ng-0.6.6.ebuild:
+ alpha/ia64/s390/sh/sparc stable wrt #407773
+
+ 25 Mar 2012; Markus Meier <maekke@gentoo.org> libcap-ng-0.6.6.ebuild:
+ arm stable, bug #407773
+
+ 16 Mar 2012; Thomas Kahle <tomka@gentoo.org> libcap-ng-0.6.6.ebuild:
+ marked x86 per bug 407773
+
+ 15 Mar 2012; Jeroen Roovers <jer@gentoo.org> libcap-ng-0.6.6.ebuild:
+ Stable for HPPA (bug #407773).
+
+ 13 Mar 2012; Brent Baude <ranger@gentoo.org> libcap-ng-0.6.6.ebuild:
+ Marking libcap-ng-0.6.6 ppc for bug 407773
+
+ 12 Mar 2012; Brent Baude <ranger@gentoo.org> libcap-ng-0.6.6.ebuild:
+ Marking libcap-ng-0.6.6 ppc64 for bug 407773
+
+ 11 Mar 2012; Agostino Sarubbo <ago@gentoo.org> libcap-ng-0.6.6.ebuild:
+ Stable for amd64, wrt bug #407773
+
+ 11 Mar 2012; Samuli Suominen <ssuominen@gentoo.org> libcap-ng-0.6.6.ebuild:
+ Raise dev-lang/swig dependency wrt #407693 by "godfath3rr"
+
+ 10 Mar 2012; Samuli Suominen <ssuominen@gentoo.org> libcap-ng-0.6.6.ebuild:
+ Restrict *-jython as per comment from Arfrever.
+
+ 10 Mar 2012; Samuli Suominen <ssuominen@gentoo.org> libcap-ng-0.6.6.ebuild:
+ USE="static-libs" and remove useless libtool archive.
+
+ 20 Feb 2012; Patrick Lauer <patrick@gentoo.org> libcap-ng-0.6.4.ebuild,
+ libcap-ng-0.6.5.ebuild, libcap-ng-0.6.6.ebuild:
+ Restricting pypy #403813
+
+ 08 Jan 2012; Raúl Porcel <armin76@gentoo.org> libcap-ng-0.6.5.ebuild:
+ alpha/ia64/s390/sh/sparc stable wrt #396137
+
+*libcap-ng-0.6.6 (10 Nov 2011)
+
+ 10 Nov 2011; Alin Năstac <mrness@gentoo.org> -libcap-ng-0.6.1.ebuild,
+ +libcap-ng-0.6.6.ebuild:
+ Version bump bug #389253 (also fixes test failure, see bug #370473).
+
+ 07 Aug 2011; Raúl Porcel <armin76@gentoo.org> libcap-ng-0.6.1.ebuild,
+ libcap-ng-0.6.2.ebuild, libcap-ng-0.6.4.ebuild, libcap-ng-0.6.5.ebuild:
+ Add ~s390/~sh
+
+ 19 Feb 2011; Markus Meier <maekke@gentoo.org> libcap-ng-0.6.5.ebuild:
+ arm stable, bug #353448
+
+ 19 Feb 2011; Kacper Kowalik <xarthisius@gentoo.org>
+ libcap-ng-0.6.5.ebuild:
+ ppc/ppc64 stable wrt #353448
+
+ 11 Feb 2011; Markos Chandras <hwoarang@gentoo.org> libcap-ng-0.6.5.ebuild:
+ Stable on amd64 wrt bug #353448
+
+ 05 Feb 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org>
+ libcap-ng-0.6.5.ebuild:
+ x86 stable wrt bug #353448
+
+ 02 Feb 2011; Jeroen Roovers <jer@gentoo.org> libcap-ng-0.6.5.ebuild:
+ Stable for HPPA (bug #353448).
+
+ 21 Jan 2011; Kacper Kowalik <xarthisius@gentoo.org>
+ libcap-ng-0.6.4.ebuild:
+ ppc64 stable wrt #341619
+
+ 06 Jan 2011; Brent Baude <ranger@gentoo.org> libcap-ng-0.6.4.ebuild:
+ Marking libcap-ng-0.6.4 ppc for bug 341619
+
+ 18 Dec 2010; Raúl Porcel <armin76@gentoo.org> libcap-ng-0.6.1.ebuild,
+ libcap-ng-0.6.2.ebuild, libcap-ng-0.6.4.ebuild, libcap-ng-0.6.5.ebuild:
+ Add ~alpha/~ia64 wrt #348951
+
+*libcap-ng-0.6.5 (25 Nov 2010)
+
+ 25 Nov 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ +libcap-ng-0.6.5.ebuild:
+ Version bump, thanks to Gary Macindoe in bug #346517. Fixes build with
+ linux-headers 2.6.36.1.
+
+ 01 Nov 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org>
+ libcap-ng-0.6.4.ebuild:
+ x86 stable wrt bug #341619
+
+ 29 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ libcap-ng-0.6.4.ebuild:
+ Skip tests with FEATURES="-userpriv" (bug #342301).
+
+ 29 Oct 2010; Jeroen Roovers <jer@gentoo.org> libcap-ng-0.6.4.ebuild:
+ Stable for HPPA (bug #341619).
+
+ 24 Oct 2010; Markus Meier <maekke@gentoo.org> libcap-ng-0.6.4.ebuild:
+ arm stable, bug #341619
+
+ 24 Oct 2010; Markos Chandras <hwoarang@gentoo.org> libcap-ng-0.6.4.ebuild:
+ Stable on amd64 wrt bug #341619
+
+ 01 Oct 2010; Brent Baude <ranger@gentoo.org> libcap-ng-0.6.2.ebuild:
+ stable ppc64, bug 314523
+
+*libcap-ng-0.6.4 (20 Sep 2010)
+
+ 20 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +libcap-ng-0.6.4.ebuild, +files/libcap-ng-0.6.4-fix_tests_building.patch,
+ +files/libcap-ng-0.6.4-python.patch:
+ Version bump (bug #311641). Support installation for multiple Python ABIs,
+ don't install .a, .la, .pyc and .pyo files into Python site-packages
+ directories, fix tests with Python 3, avoid breaking strict-aliasing rules
+ with Python 2 (bug #316953).
+
+ 19 Jul 2010; Jeroen Roovers <jer@gentoo.org> libcap-ng-0.6.2.ebuild:
+ Stable for HPPA (bug #314523).
+
+ 26 Jun 2010; <nixnut@gentoo.org> libcap-ng-0.6.2.ebuild:
+ ppc stable #314523
+
+ 24 May 2010; Raúl Porcel <armin76@gentoo.org> libcap-ng-0.6.2.ebuild:
+ arm/sparc stable wrt #314523
+
+ 09 May 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org>
+ libcap-ng-0.6.2.ebuild:
+ x86 stable wrt bug #314523
+
+ 08 May 2010; Pacho Ramos <pacho@gentoo.org> libcap-ng-0.6.2.ebuild:
+ amd64 stable, bug 314523
+
+ 21 Mar 2010; Brent Baude <ranger@gentoo.org> libcap-ng-0.6.1.ebuild,
+ libcap-ng-0.6.2.ebuild:
+ Marking .1 and .2 ~ppc64 for bug 284655
+
+ 06 Mar 2010; Markus Meier <maekke@gentoo.org> libcap-ng-0.6.2.ebuild:
+ add ~arm, bug #284655
+
+ 05 Feb 2010; Jeroen Roovers <jer@gentoo.org> libcap-ng-0.6.2.ebuild:
+ Marked ~hppa (bug #284655).
+
+ 04 Feb 2010; Jeroen Roovers <jer@gentoo.org> libcap-ng-0.6.2.ebuild:
+ Marked ~ppc (bug #284655).
+
+ 01 Feb 2010; Raúl Porcel <armin76@gentoo.org> libcap-ng-0.6.2.ebuild:
+ Add ~sparc wrt #284655
+
+ 22 Jan 2010; Brent Baude <ranger@gentoo.org> libcap-ng-0.6.1.ebuild:
+ keyworded ~arch for ppc, bug 284655
+
+*libcap-ng-0.6.2 (26 Oct 2009)
+
+ 26 Oct 2009; Mike Frysinger <vapier@gentoo.org> +libcap-ng-0.6.2.ebuild:
+ Version bump.
+
+ 30 Sep 2009; Christian Faulhammer <fauli@gentoo.org>
+ libcap-ng-0.6.1.ebuild:
+ add ~x86, bug 284655
+
+*libcap-ng-0.6.1 (12 Sep 2009)
+
+ 12 Sep 2009; Alin Năstac <mrness@gentoo.org>
+ +files/libcap-ng-gentoo.patch, +metadata.xml, +libcap-ng-0.6.1.ebuild:
+ Initial version.
diff --git a/sys-libs/libcap-ng/Manifest b/sys-libs/libcap-ng/Manifest
new file mode 100644
index 0000000..14cb8d1
--- /dev/null
+++ b/sys-libs/libcap-ng/Manifest
@@ -0,0 +1,6 @@
+DIST libcap-ng-0.7.3.tar.gz 392613 SHA256 5ca441c8d3a1e4cfe8a8151907977662679457311ccaa7eaac91447c33a35bb1 SHA512 f03a35c54b5998ef2e712540caa1f4ade37f9abe60992a1e727142b26815a4b8a7ce86ea94466fe692e4798c7297e5e1bbd338e5afe05689905ee9e0c0f16ef2 WHIRLPOOL 7752a70ea348dfc52537f67d5dccab03d598a112a7263a8811987453b53cda58643e938b4651c5cd8d0ea02f20fddc10bff2ac8bc23f68f97c9ab8c5791429ab
+DIST libcap-ng-0.7.4.tar.gz 407007 SHA256 48a2083276f9820cb92dcb05d001b30733bcbf48c14c230303cac3cd08b45b6b SHA512 443b92f44cffd4b436a2651eb3539c560382102d918faf63f993d3b6627c03e80f7b4a5105ddb040890ef82122a42ca6881795ab0639de337f693705f5506cf0 WHIRLPOOL 3d62f26fad8c9e7756374022982a4f2fcdde5af5532474dfa7eb6ba1bc7f97984691bdda8975ef32423b8e86af2462ef672ba3175a3121a484c46096cc8f10b2
+EBUILD libcap-ng-0.7.3-r1.ebuild 2709 SHA256 498ef84decf54e33a00a31ea1366680ca2afbe1be889262a9173316cd276d1f0 SHA512 465f7d405a1c35970a075ea68605c4aeb58b7bdad301cbdaad18dc59559a6986aa2ff3efca496a86a3a6aa368cd289792d566b96e533e79b9805cf8066f3a018 WHIRLPOOL 86a321ac2d3a5d5c0590b06c56a2a1e6267a79f56c761aadfcac77f1075416b0fce7820b219c6e5ac9c2f5c44c7c51febac27c1ed56b0f3f02d7626d809af717
+EBUILD libcap-ng-0.7.4-r1.ebuild 2014 SHA256 da58cc96743424dacc41028e9f4172d325d0f785d62699b1004462cf40b02706 SHA512 4579af716f626f8539c8eea77ffec62a3310bcf74f007ac2c85cb5b9223366642bdede45887ad8800e76f565a9c76e54bf8d5ea1b7239c1e93845f42fe3b78ac WHIRLPOOL 7e87dcde21d3ee238d10f850c9b9f02cc717cfb56e224c041f7d57c58ad7645c80e92c741db0566dcc9b0814f443eb636b52e1649f8d506e90352da0c90135f0
+MISC ChangeLog 8620 SHA256 cd5f353327e863f251560dc1f04fbd9cd13a02a0279df434d0cf580177e24a3c SHA512 00b0a157a597d2cff30574cb4c9b97ab04719c752f3c6c2bfdf94f858d41f717fb49c7d3bbc0d80c2353e545488f6d6ea9e51c54f49130f3ccf016756be0c25c WHIRLPOOL dc52bf8d0f9e9affe34b70f7d80070db8ca13b899b2d96e97ff3d2a45adc74895782f2f42463b522e092598f06f7a505e7d837193dd093c630de695087671735
+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
new file mode 100644
index 0000000..134e3e5
--- /dev/null
+++ b/sys-libs/libcap-ng/libcap-ng-0.7.3-r1.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
+
+inherit autotools flag-o-matic python eutils-multilib multilib-minimal
+
+DESCRIPTION="POSIX 1003.1e capabilities"
+HOMEPAGE="http://people.redhat.com/sgrubb/libcap-ng/"
+SRC_URI="http://people.redhat.com/sgrubb/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="python static-libs"
+
+RDEPEND="python? ( dev-lang/python )"
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers
+ python? ( >=dev-lang/swig-2 )"
+
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
+
+pkg_setup() {
+ use python && python_pkg_setup
+}
+
+src_prepare() {
+ # Disable byte-compilation of Python modules.
+ >py-compile
+
+ # Python bindings are built/tested/installed manually.
+ sed -i -e "/^SUBDIRS/s/ python//" bindings/Makefile.am || die
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
+
+ eautoreconf
+
+ use sparc && replace-flags -O? -O0
+}
+
+multilib_src_configure() {
+ local CFLAGS="${CFLAGS}"
+ export CFLAGS
+ ECONF_SOURCE="${S}" econf \
+ $(use_enable static-libs static) \
+ $(use_with_best_abi python)
+}
+
+multilib_src_compile() {
+ default
+
+ if multilib_is_best_abi && use python; then
+ S="${BUILD_DIR}" python_copy_sources bindings/python
+ building() {
+ emake \
+ CFLAGS="${CFLAGS} $(python-config --cflags)" \
+ PYTHON_VERSION="$(python_get_version)" \
+ pyexecdir="$(python_get_sitedir)" \
+ pythondir="$(python_get_sitedir)"
+ }
+ S="${BUILD_DIR}" python_execute_function -s --source-dir bindings/python building
+ fi
+}
+
+multilib_src_test() {
+ if [[ "${EUID}" -eq 0 ]]; then
+ ewarn "Skipping tests due to root permissions."
+ return
+ fi
+
+ default
+
+ 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
+ }
+ S="${BUILD_DIR}" python_execute_function -s --source-dir bindings/python testing
+ fi
+}
+
+multilib_src_install() {
+ default
+
+ if multilib_is_best_abi && use python; then
+ installation() {
+ emake \
+ DESTDIR="${D}" \
+ PYTHON_VERSION="$(python_get_version)" \
+ pyexecdir="$(python_get_sitedir)" \
+ pythondir="$(python_get_sitedir)" \
+ install
+ }
+ S="${BUILD_DIR}" python_execute_function -s --source-dir bindings/python installation
+
+ python_clean_installation_image
+ fi
+
+ rm -f "${ED}"/usr/lib*/${PN}.la
+}
+
+pkg_postinst() {
+ use python && python_mod_optimize capng.py
+}
+
+pkg_postrm() {
+ use python && python_mod_cleanup capng.py
+}
diff --git a/sys-libs/libcap-ng/libcap-ng-0.7.4-r1.ebuild b/sys-libs/libcap-ng/libcap-ng-0.7.4-r1.ebuild
new file mode 100644
index 0000000..96846a5
--- /dev/null
+++ b/sys-libs/libcap-ng/libcap-ng-0.7.4-r1.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} )
+
+inherit autotools-utils flag-o-matic python-r1
+
+DESCRIPTION="POSIX 1003.1e capabilities"
+HOMEPAGE="http://people.redhat.com/sgrubb/libcap-ng/"
+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"
+IUSE="python static-libs"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers
+ python? ( >=dev-lang/swig-2 )"
+
+src_prepare() {
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
+
+ autotools-utils_src_prepare
+
+ use sparc && replace-flags -O? -O0
+}
+
+src_configure() {
+ local myeconfargs=(
+ --without-python
+ )
+
+ # set up the library build
+ autotools-utils_src_configure
+
+ if use python; then
+ python_parallel_foreach_impl \
+ autotools-utils_src_configure --with-python
+ fi
+}
+
+src_compile() {
+ autotools-utils_src_compile
+
+ if use python; then
+ python_compile() {
+ local CFLAGS=${CFLAGS}
+
+ python_is_python3 || CFLAGS+=" -fno-strict-aliasing"
+
+ emake "${@}" \
+ -C "${BUILD_DIR}"/bindings/python
+ }
+
+ # help build system find the right objects
+ python_foreach_impl python_compile \
+ VPATH="${BUILD_DIR}"/bindings/python \
+ LIBS="${BUILD_DIR}"/src/libcap-ng.la
+ fi
+}
+
+src_test() {
+ if [[ "${EUID}" -eq 0 ]]; then
+ ewarn "Skipping tests due to root permissions."
+ return
+ fi
+
+ autotools-utils_src_test
+
+ if use python; then
+ python_foreach_impl \
+ autotools-utils_src_compile -C bindings/python check \
+ VPATH="${BUILD_DIR}"/bindings/python:"${S}"/bindings/python/test
+ fi
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ if use python; then
+ python_foreach_impl \
+ autotools-utils_src_install -C bindings/python \
+ VPATH="${BUILD_DIR}"/bindings/python
+ fi
+}
diff --git a/sys-libs/libcap-ng/metadata.xml b/sys-libs/libcap-ng/metadata.xml
new file mode 100644
index 0000000..703c252
--- /dev/null
+++ b/sys-libs/libcap-ng/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>base-system</herd>
+ <longdescription>The libcap-ng library is intended to make programming with
+ POSIX capabilities much easier than the traditional libcap library. It
+ includes utilities that can analyse all currently running applications and
+ print out any capabilities and whether or not it has an open ended bounding
+ set.</longdescription>
+</pkgmetadata>