chore(sys-libs/libcap-ng): import from portage

Change-Id: I1560902ce98ff1d5082655241128eaea29acce4d
This commit is contained in:
Brandon Philips 2013-02-15 16:34:14 -08:00
parent a57a660b27
commit 9d01722ac3
6 changed files with 583 additions and 0 deletions

View File

@ -0,0 +1,205 @@
# ChangeLog for sys-libs/libcap-ng
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v 1.54 2013/01/15 14:32:56 flameeyes Exp $
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.

View File

@ -0,0 +1,22 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
DIST libcap-ng-0.6.6.tar.gz 367231 SHA256 89589a29a6b19068edd650dd4f626c10e84bfe63eacae7b1fd1f98f3ac8ea00d SHA512 383aaa9e315e2498c779a17bef35df6aee072c42598d07d92bdd7a2328a3bcd22d5ec46d600babc467aa4d1b01e9dd660493dafba3b06c7ac81f35df9d4d6e3e WHIRLPOOL c1a72480d545b45ae385065449098f0878f8c8d138f1d9bd9b3445d1146fd6a227bb9b0ac0148542995c5b6683c7c5998d0cd61a369b9f5c84fb39a9dc5cf8a3
DIST libcap-ng-0.7.1.tar.gz 390354 SHA256 bf74455c9540667a924d2983090c4eb7285f0a4a82a25becd0a496e8bbf3d8ff SHA512 d7252a34bc1edc30224f46c8a99f125189c8fcd874d721d0cb4b52509dbd980b55f114e71625980615f379bdd7783e98ab123ebc89ae1b6dc274da2d3061e7d4 WHIRLPOOL 04f2ce162f0668b00b79ab0cdd0d5022dff4beb725b52af33e9276744bbf0273e7a15457740dc46f911ad9fdf2393f5ffe34e75054ec453a47afad87bf49ecdb
DIST libcap-ng-0.7.3.tar.gz 392613 SHA256 5ca441c8d3a1e4cfe8a8151907977662679457311ccaa7eaac91447c33a35bb1 SHA512 f03a35c54b5998ef2e712540caa1f4ade37f9abe60992a1e727142b26815a4b8a7ce86ea94466fe692e4798c7297e5e1bbd338e5afe05689905ee9e0c0f16ef2 WHIRLPOOL 7752a70ea348dfc52537f67d5dccab03d598a112a7263a8811987453b53cda58643e938b4651c5cd8d0ea02f20fddc10bff2ac8bc23f68f97c9ab8c5791429ab
EBUILD libcap-ng-0.6.6.ebuild 2515 SHA256 34967b49aaab191ccd019a7d057b533665f227cb4e9657b91cd3c9e63ec9c2b2 SHA512 af0d89bb0a7a5b422668cd2cba3ad87deca3b559be2b0d552c82d37b99c289eee2d1270a7813fb6f0f00f8fd52395f3f4704e482cc93d462238e063706efab8b WHIRLPOOL 2614cb420195b3a1924722b95230e8bcfc0bac379ebfc544d90a0dda3a4e899ddab0598b556afddfeb06eaf8729631f1a02112adc3497aebe381332ec3c760a0
EBUILD libcap-ng-0.7.1.ebuild 2456 SHA256 7a8e2161e89bc0472c21cfc95613b96231dac52af1ceb5b0aa2d8abf9aee5781 SHA512 1e4a7fd37d5790ee2a3ae7093075871ca873795c4ed0ae5764010fc1e11b04d48c84bfb8821ab082dd66d00240dc9ec99f8b84c12093541638d065b9d1115ce5 WHIRLPOOL 7b34d6a19daee4b13de39c820ba2b92129fe9b1c5e000032eee8a034dca8a8bad0c4ec64cf2901fca33c6cfacf1c6858d4ef56848f579d9518d71fa470895a44
EBUILD libcap-ng-0.7.3.ebuild 2527 SHA256 eeefeb3b51f67c438e25815f6f8b3cd8fdfb6a5dc5529a4010ae15dbb231b39d SHA512 d53a4c04853de9ecf60e52d903db20c8e5dad9755822eae965f605c4ed050e3b3308338b51025880218c85d40c98f3ad18591ffad9740426e1aec7d56ea31d6a WHIRLPOOL 8892068b7d46fb89c727b4a3d718e6c9134540d01eb67b10bc55b1e718834e8746f5b4ddbb20559910655a85a26a29c2186b7c27f98229aacc6bcd0b01533880
MISC ChangeLog 7186 SHA256 5edc7691c0dade110efd396e6209437ba352d6696ad1365b49f0084c91740a15 SHA512 91a3d89ab64e3bdb45416ab9eeb006550aeebe44f02bd6dc1e0208b5d1f09df4170e13e1a13fc83433d6b74171575c9083ae4427a547a2cdfd9db2bd2c78d18a WHIRLPOOL 4b34ba02a72acda3c81f711561d9b3dda0fa6a5523ea5d00712cd0514e39e8737b5d1554cc358634c464db02dd261cce5f19448c71f7221475c2fd8621f8b1f8
MISC metadata.xml 501 SHA256 2ba6118979e987255eff0de2453eff6e9a76d4e2ffa04e3acbe1bc92fda0a171 SHA512 f974d0009e90640257cab704897db67cc736663313d026ba2092a6aaae004973416e1f649c9d7a0373b1f58d49db8103217e85803faa8c37a7830c9057f2c5e8 WHIRLPOOL 38c2e18fffda49e0b81e47bce317af92b0e992d1371c79e2e8bed04ea69e704902e005af8693735f7bf1fbf8d1cda5bea6ec9e0c20886018103914d11a95ec30
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQEcBAEBCAAGBQJQ9WkBAAoJEBzRPIrUMBNCLjIH/jO4tOrAkrgAha5v9P4n6ce+
/z0gZYnBHYRCcBhLYD+ei+8cNa5PPO4Vwv48I+Ba8XikMbRjKCs1PbSJ3c56CAva
dVBb5Zxr0dbdOXJ2Wmpf/b4hvBnSZGRVLFuA2ST8q5Cy92HYyZVUr5nGUnewHzM4
VecRsokMWCJWkTL+G9F4XmM+Yr3GEXWU7qhLQf+TibRCyYJBq90ivteXn4rWT8kh
EUpZjrmsHVrevgg5Ra+hkaSNQZ25yvtdjAwK/5T5TrfP2VfsBcMm/JNRkl1bGv0A
bw2f6Rgj0yRu6zaz8FydYNEl4IIU6qnWHnVrF+RWXeCZwZ5EvAmB74q6IhEXgts=
=G028
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,117 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/libcap-ng-0.6.6.ebuild,v 1.14 2012/07/26 02:39:08 radhermit Exp $
EAPI=4
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
inherit autotools flag-o-matic python
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 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="python static-libs"
RDEPEND="sys-apps/attr
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
eautoreconf
use sparc && replace-flags -O? -O0
}
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_with python)
}
src_compile() {
default
if use python; then
python_copy_sources bindings/python
building() {
emake \
CFLAGS="${CFLAGS}" \
PYTHON_VERSION="$(python_get_version)" \
pyexecdir="$(python_get_sitedir)" \
pythondir="$(python_get_sitedir)"
}
python_execute_function -s --source-dir bindings/python building
fi
}
src_test() {
if [[ "${EUID}" -eq 0 ]]; then
ewarn "Skipping tests due to root permissions."
return
fi
default
if use python; then
testing() {
emake \
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
fi
}
src_install() {
emake DESTDIR="${D}" install
if use python; then
installation() {
emake \
DESTDIR="${D}" \
PYTHON_VERSION="$(python_get_version)" \
pyexecdir="$(python_get_sitedir)" \
pythondir="$(python_get_sitedir)" \
install
}
python_execute_function -s --source-dir bindings/python installation
python_clean_installation_image
fi
dodoc AUTHORS ChangeLog README
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
}

View File

@ -0,0 +1,114 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/libcap-ng-0.7.1.ebuild,v 1.2 2012/11/02 22:25:37 radhermit Exp $
EAPI=4
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
inherit autotools flag-o-matic python
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 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
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
eautoreconf
use sparc && replace-flags -O? -O0
}
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_with python)
}
src_compile() {
default
if use python; then
python_copy_sources bindings/python
building() {
emake \
CFLAGS="${CFLAGS}" \
PYTHON_VERSION="$(python_get_version)" \
pyexecdir="$(python_get_sitedir)" \
pythondir="$(python_get_sitedir)"
}
python_execute_function -s --source-dir bindings/python building
fi
}
src_test() {
if [[ "${EUID}" -eq 0 ]]; then
ewarn "Skipping tests due to root permissions."
return
fi
default
if use python; then
testing() {
emake \
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
fi
}
src_install() {
default
if use python; then
installation() {
emake \
DESTDIR="${D}" \
PYTHON_VERSION="$(python_get_version)" \
pyexecdir="$(python_get_sitedir)" \
pythondir="$(python_get_sitedir)" \
install
}
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
}

View File

@ -0,0 +1,115 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/libcap-ng-0.7.3.ebuild,v 1.2 2013/01/15 14:32:56 flameeyes Exp $
EAPI=5
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
inherit autotools flag-o-matic python
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 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
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
}
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_with python)
}
src_compile() {
default
if use python; then
python_copy_sources bindings/python
building() {
emake \
CFLAGS="${CFLAGS}" \
PYTHON_VERSION="$(python_get_version)" \
pyexecdir="$(python_get_sitedir)" \
pythondir="$(python_get_sitedir)"
}
python_execute_function -s --source-dir bindings/python building
fi
}
src_test() {
if [[ "${EUID}" -eq 0 ]]; then
ewarn "Skipping tests due to root permissions."
return
fi
default
if use python; then
testing() {
emake \
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
fi
}
src_install() {
default
if use python; then
installation() {
emake \
DESTDIR="${D}" \
PYTHON_VERSION="$(python_get_version)" \
pyexecdir="$(python_get_sitedir)" \
pythondir="$(python_get_sitedir)" \
install
}
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
}

View File

@ -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>