summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2015-08-29 13:58:48 -0700
committerPatrice Clement <monsieurp@gentoo.org>2015-08-29 14:04:47 -0700
commit1056e1f33b20b8ddcc47b6a16a61f2ddc22492d4 (patch)
treefdac40d8fdd4fd34070ad7c2e89bd9403f74f4b5 /app-shells
parentapp-emulation/docker-compose: add version 1.4.0 (diff)
downloadgentoo-1056e1f33b20b8ddcc47b6a16a61f2ddc22492d4.tar.gz
gentoo-1056e1f33b20b8ddcc47b6a16a61f2ddc22492d4.tar.bz2
gentoo-1056e1f33b20b8ddcc47b6a16a61f2ddc22492d4.zip
app-shells/soapbox: EAPI 5 bump.
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/soapbox/soapbox-0.3.1-r1.ebuild2
-rw-r--r--app-shells/soapbox/soapbox-0.3.1-r2.ebuild41
2 files changed, 42 insertions, 1 deletions
diff --git a/app-shells/soapbox/soapbox-0.3.1-r1.ebuild b/app-shells/soapbox/soapbox-0.3.1-r1.ebuild
index e136766df09a..d120264e3134 100644
--- a/app-shells/soapbox/soapbox-0.3.1-r1.ebuild
+++ b/app-shells/soapbox/soapbox-0.3.1-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="http://dag.wieers.com/home-made/soapbox/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~x86 ~ppc ~ppc64"
IUSE=""
src_prepare() {
diff --git a/app-shells/soapbox/soapbox-0.3.1-r2.ebuild b/app-shells/soapbox/soapbox-0.3.1-r2.ebuild
new file mode 100644
index 000000000000..a53e70851cdf
--- /dev/null
+++ b/app-shells/soapbox/soapbox-0.3.1-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit multilib toolchain-funcs
+
+DESCRIPTION="A preload (sandbox) library to restrict filesystem writes"
+HOMEPAGE="http://dag.wieers.com/home-made/soapbox/"
+SRC_URI="http://dag.wieers.com/home-made/soapbox/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_prepare() {
+ sed -i soapbox.sh \
+ -e "s|0.3.0|${PV}|g" \
+ -e "s:/lib:/usr/$(get_libdir):" \
+ || die "sed soapbox.sh"
+ sed -i Makefile \
+ -e 's|$(CFLAGS)|& $(LDFLAGS)|g' \
+ || die "sed Makefile"
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} -fPIC" \
+ LDFLAGS="${LDFLAGS}" \
+ || die "emake failed"
+}
+
+src_install() {
+ dolib.so libsoapbox.so || die "soapsox.so"
+ newbin soapbox.sh soapbox || die "soapbox"
+ dodoc AUTHORS BUGS ChangeLog README THANKS TODO
+}