summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2018-03-19 14:09:05 +0100
committerGuilherme Amadio <amadio@gentoo.org>2018-03-19 19:05:09 +0100
commitffe9a35a54fb083cedd42df283d78d995e8314bf (patch)
treec0621bd23f9236555b8c9fe0edfd8d55603c4f67 /sys-libs/libcap-ng
parentapp-crypt/argon2: prefix support (diff)
downloadgentoo-ffe9a35a54fb083cedd42df283d78d995e8314bf.tar.gz
gentoo-ffe9a35a54fb083cedd42df283d78d995e8314bf.tar.bz2
gentoo-ffe9a35a54fb083cedd42df283d78d995e8314bf.zip
sys-libs/libcap-ng: prefix support
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'sys-libs/libcap-ng')
-rw-r--r--sys-libs/libcap-ng/libcap-ng-0.7.9.ebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys-libs/libcap-ng/libcap-ng-0.7.9.ebuild b/sys-libs/libcap-ng/libcap-ng-0.7.9.ebuild
index 850239d9c23..e0f8423c7f6 100644
--- a/sys-libs/libcap-ng/libcap-ng-0.7.9.ebuild
+++ b/sys-libs/libcap-ng/libcap-ng-0.7.9.ebuild
@@ -22,6 +22,13 @@ DEPEND="${RDEPEND}
sys-kernel/linux-headers
python? ( >=dev-lang/swig-2 )"
+src_prepare() {
+ default
+ if use prefix ; then
+ sed -i "s@cat /usr@cat ${EPREFIX}/usr@" bindings/python*/Makefile.am || die
+ fi
+}
+
src_configure() {
use sparc && replace-flags -O? -O0