summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-08-03 12:30:14 +0200
committerAlexis Ballier <aballier@gentoo.org>2016-08-03 12:30:14 +0200
commit2b5f56f9f45e495347a6a8336b1656adf31c8400 (patch)
tree94c3b1ca06faf44c67d6916f427bfc801c097a52 /sys-devel
parentsys-devel/bmake: remove old (diff)
downloadgentoo-2b5f56f9f45e495347a6a8336b1656adf31c8400.tar.gz
gentoo-2b5f56f9f45e495347a6a8336b1656adf31c8400.tar.bz2
gentoo-2b5f56f9f45e495347a6a8336b1656adf31c8400.zip
sys-devel/bmake: bump to 20160606
Package-Manager: portage-2.3.0
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/bmake/Manifest1
-rw-r--r--sys-devel/bmake/bmake-20160606.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/sys-devel/bmake/Manifest b/sys-devel/bmake/Manifest
index 8afe4ac69311..228539e5668a 100644
--- a/sys-devel/bmake/Manifest
+++ b/sys-devel/bmake/Manifest
@@ -1,2 +1,3 @@
DIST bmake-20160315.tar.gz 538673 SHA256 372475f0ab78da5341a1a61af505aaba76356107a1914b3345d79344275cbbe9 SHA512 5addb2b128be6bdeaf93c740bafa102d26224ee8b91e90dbb92333b3f660fdb3837418a081d29718c21519c5cdf994473f1ee75affe4d9e18e5753607ec55ba0 WHIRLPOOL 688c478428b52153384b6fb214807ab57fa133bfe669d8e8c4133c390efad9e5dc11dcf77cf977da5f3eb5581f7ed7e5a5044a3ece615cc8627112069bae52f8
+DIST bmake-20160606.tar.gz 541786 SHA256 4420509062d5b3a8ce970245f14520261f5bd770ddf056dc75d9ba13831fd317 SHA512 ecf8e2e3127c603edc0a29e2cd88d1e5847a0bfd01db08d16fade9a32e0691edb356a1b50f72cdca6d03ce2eeb9daa6e4b1d520b1c6acfe56e4a30f7b03de311 WHIRLPOOL 2e5bb40110fe28e7ef0f5c2a3d670874465db8316977b8cd62f762ba9561176d6fa8cd01db41dd1ecceb1a2646ec2f507373ae0de8cf202c16c25034b3e4f26e
DIST mk-20151111.tar.gz 88106 SHA256 beebba89da0ba068c904599d3358e6f08c35418b13300fac787c11774a525bc1 SHA512 48fc6c845f2aef3b9be6fdb1db8a62448857ba7cbffc5417f45a7a2d5e59940356a245b9f484aa05e4c585e0a4c2e2eb7577c7d9e942cc673eb561f6c6e257d4 WHIRLPOOL 68838257558b43bc503841cf23f09cfc926e1152f847fcecc803574070eb9c0ceb5fc75c0f78f52559d1dfd7283a4b001c76b62e44158850c0c019a67d69b3aa
diff --git a/sys-devel/bmake/bmake-20160606.ebuild b/sys-devel/bmake/bmake-20160606.ebuild
new file mode 100644
index 000000000000..cce8dfffd9a7
--- /dev/null
+++ b/sys-devel/bmake/bmake-20160606.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+MK_VER=20151111
+DESCRIPTION="NetBSD's portable make"
+HOMEPAGE="http://www.crufty.net/help/sjg/bmake.html"
+SRC_URI="http://void.crufty.net/ftp/pub/sjg/${P}.tar.gz
+ http://void.crufty.net/ftp/pub/sjg/mk-${MK_VER}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x64-freebsd"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${PN}"
+
+src_configure() {
+ econf \
+ --with-mksrc=../mk \
+ --with-default-sys-path="${EPREFIX}"/usr/share/mk/${PN} \
+ --with-machine_arch=${ARCH}
+}
+
+src_compile() {
+ sh make-bootstrap.sh || die "bootstrap failed"
+}
+
+src_test() {
+ cd unit-tests
+ LC_ALL=C env -u A ${S}/bmake -r -m . > test.out 2>&1 \
+ || die "tests compilation failed"
+ sed -i \
+ -e "s:${S}/::g" \
+ -e "s:bmake\\[.\\]:make:g" \
+ -e "s:unit-tests/::g" \
+ test.out || die "Fixing values failed"
+ diff -u test.exp test.out
+ [[ $(diff -u test.exp test.out |wc -l) -gt 0 ]] && die "tests differ"
+}
+
+src_install() {
+ dobin ${PN}
+ newman ${PN}.cat1 ${PN}.1
+ FORCE_BSD_MK=1 SYS_MK_DIR=. \
+ sh ../mk/install-mk -v -m 644 "${ED}"/usr/share/mk/${PN} \
+ || die "failed to install mk files"
+}