summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2015-05-11 10:00:25 +0000
committerLars Wendler <polynomial-c@gentoo.org>2015-05-11 10:00:25 +0000
commit314bd82716661a95250a8976e80d27e4fbc223bb (patch)
tree9d945bf0ed4d4d78b919278b2dc18fd27e764836 /sys-libs/libcap-ng
parentVersion bump. Removed old (diff)
downloadgentoo-2-314bd82716661a95250a8976e80d27e4fbc223bb.tar.gz
gentoo-2-314bd82716661a95250a8976e80d27e4fbc223bb.tar.bz2
gentoo-2-314bd82716661a95250a8976e80d27e4fbc223bb.zip
Version bump. Removed old
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
Diffstat (limited to 'sys-libs/libcap-ng')
-rw-r--r--sys-libs/libcap-ng/ChangeLog10
-rw-r--r--sys-libs/libcap-ng/libcap-ng-0.7.1.ebuild114
-rw-r--r--sys-libs/libcap-ng/libcap-ng-0.7.5.ebuild92
3 files changed, 100 insertions, 116 deletions
diff --git a/sys-libs/libcap-ng/ChangeLog b/sys-libs/libcap-ng/ChangeLog
index 9e96f0bf904e..660c801f28c3 100644
--- a/sys-libs/libcap-ng/ChangeLog
+++ b/sys-libs/libcap-ng/ChangeLog
@@ -1,6 +1,12 @@
# 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.76 2014/12/06 16:40:48 ago Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v 1.77 2015/05/11 10:00:25 polynomial-c Exp $
+
+*libcap-ng-0.7.5 (11 May 2015)
+
+ 11 May 2015; Lars Wendler <polynomial-c@gentoo.org> -libcap-ng-0.7.1.ebuild,
+ +libcap-ng-0.7.5.ebuild:
+ Version bump. Removed old.
06 Dec 2014; Agostino Sarubbo <ago@gentoo.org> libcap-ng-0.7.4.ebuild:
Stable for ia64, wrt bug #529542
diff --git a/sys-libs/libcap-ng/libcap-ng-0.7.1.ebuild b/sys-libs/libcap-ng/libcap-ng-0.7.1.ebuild
deleted file mode 100644
index a01671ce7b98..000000000000
--- a/sys-libs/libcap-ng/libcap-ng-0.7.1.ebuild
+++ /dev/null
@@ -1,114 +0,0 @@
-# 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
-}
diff --git a/sys-libs/libcap-ng/libcap-ng-0.7.5.ebuild b/sys-libs/libcap-ng/libcap-ng-0.7.5.ebuild
new file mode 100644
index 000000000000..6a5abf778854
--- /dev/null
+++ b/sys-libs/libcap-ng/libcap-ng-0.7.5.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2015 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.5.ebuild,v 1.1 2015/05/11 10:00:25 polynomial-c Exp $
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
+PYTHON_COMPAT=( python{2_7,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
+}