summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-06-19 14:41:26 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-06-19 14:41:26 +0000
commit792e4decfe65c4735ad7a231e93de1acbb6bb622 (patch)
tree061d58f39ab4de24641783dcd17ecf599bdac498 /sys-apps/9base/9base-6-r1.ebuild
parentFix trivial dep error in 5 minute ago commit (diff)
downloadhistorical-792e4decfe65c4735ad7a231e93de1acbb6bb622.tar.gz
historical-792e4decfe65c4735ad7a231e93de1acbb6bb622.tar.bz2
historical-792e4decfe65c4735ad7a231e93de1acbb6bb622.zip
Avoid static linking per http://lists.suckless.org/dev/1006/4639.html.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/9base/9base-6-r1.ebuild')
-rw-r--r--sys-apps/9base/9base-6-r1.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/sys-apps/9base/9base-6-r1.ebuild b/sys-apps/9base/9base-6-r1.ebuild
new file mode 100644
index 000000000000..4054a2a3100a
--- /dev/null
+++ b/sys-apps/9base/9base-6-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/9base/9base-6-r1.ebuild,v 1.1 2010/06/19 14:41:26 ssuominen Exp $
+
+EAPI=2
+inherit toolchain-funcs
+
+DESCRIPTION="A port of various original Plan 9 tools for Unix, based on plan9port"
+HOMEPAGE="http://tools.suckless.org/9base"
+SRC_URI="http://dl.suckless.org/tools/${P}.tar.gz"
+
+LICENSE="9base"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+MAKEOPTS="${MAKEOPTS} -j1"
+
+pkg_setup() {
+ export PORTAGE_COMPRESS=
+
+ local _objtype=386
+ [[ $(tc-arch) == "amd64" ]] && _objtype=x86_64
+
+ my9baseopts=(
+ "PREFIX=/usr/plan9"
+ "OBJTYPE=${_objtype}"
+ "AR=$(tc-getAR) rc"
+ "CC=$(tc-getCC)"
+ "DESTDIR=${D}"
+ )
+}
+
+src_prepare() {
+ sed -i -e '/strip/d' std.mk {diff,sam}/Makefile || die
+
+ # http://lists.suckless.org/dev/1006/4639.html
+ sed -i -e '/-static/d' config.mk || die
+}
+
+src_compile() {
+ emake "${my9baseopts[@]}" || die
+}
+
+src_install() {
+ emake "${my9baseopts[@]}" install || die
+ dodoc README
+}