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/soapbox/soapbox-0.3.1-r2.ebuild
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/soapbox/soapbox-0.3.1-r2.ebuild')
-rw-r--r--app-shells/soapbox/soapbox-0.3.1-r2.ebuild41
1 files changed, 41 insertions, 0 deletions
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
+}