summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/bmake/Manifest1
-rw-r--r--sys-devel/bmake/bmake-20170812.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/sys-devel/bmake/Manifest b/sys-devel/bmake/Manifest
index 3f87508453aa..7830b2af2880 100644
--- a/sys-devel/bmake/Manifest
+++ b/sys-devel/bmake/Manifest
@@ -1,4 +1,5 @@
DIST bmake-20170421.tar.gz 550626 SHA256 763104954b566ae9f575ea682dc38ed5c73057336f5f6090fb7489a5399511c5 SHA512 f984dd7697ff74455690d9f0b6a355e3bd3de7545eb93def82aeaaf1899b5316a83e36502ffdd64ef53ad2b28fbfad61cfaee17b8ec29a1f0dd6640c13b4f04f WHIRLPOOL c4e8701ca7ff8c30a09aca12d1c6e0ca141ab99498c3bc88bfedf7543629adfe0dbf1064be2f91246b1aada2ab42048629adf2d87c2de8fa832b174815ef897b
DIST bmake-20170510.tar.gz 552370 SHA256 ce5d73a8b5267495132bd00392a411178155dafecd66b50860419e9cf8683e3c SHA512 55300e3e375047a400912e62821a179b2a3dfdf61e39c3991fe236c5b63816f854ebb50f759a0a8a938af4b84f00eaa9cc2e172288287c019ecadfc0b359a1f6 WHIRLPOOL 479e1cbe1d854c34b8e26afda1b962609220b128bea518babdf1409218f42e2bb5c481f870597d5a1944a8f37c17642ae6f4af03b1917a2088396a2380409157
+DIST bmake-20170812.tar.gz 554613 SHA256 cdd9ea1aa5b84b7b892ddf2dccb1c21028de6ce0edf5684432e1f4bf861179c6 SHA512 2345d24967796950ba9c661e65228223da51c6f22da34ad2dbc5069e0ca56445902685f9da5cfd0f2594f6261ae778d3621670bd80fc8f840d970b6fd8f185f4 WHIRLPOOL dd69efeaa18591ed3674fa06a64392f45de3f477fa2e1709ffd8a94a96df8c8d05ee1bffa6d4fe1d05969b2a687390cd42f0bf60d3d8d6c96f5ae1714dbb1f7f
DIST mk-20170301.tar.gz 93049 SHA256 0bafe6b64b891fb2cdbe2cdd3fb11ade5fe41055d6bbd3da69a68854a3f7215c SHA512 9727cb284339ec00caeccadd88b55d93027991d453e507c77575135efd789d77307c84137e83616df6643039f9f2449751d4796a87828224e5a8bf48bc0925a3 WHIRLPOOL f7ee160ffd51d7c1f059f5c3c32a3a448fa6d37ca83ba9044647a836e91165603ac8780e486ebef86fe62803a29b6e096e7c4fd95bdf7b7a861e581943b91f40
DIST mk-20170505.tar.gz 94846 SHA256 d0b83b19d87ff3228704ed32825cda5ae0091bdf7bda0121ee64fb831c592a24 SHA512 8a9303612a80afdc3c74be8176cab2c04c10c91b1dd30245645cd5441928f388e291de8fe65efd4341c1bf787d8bafaae8f02018c5353ab2916a69cb2db7334c WHIRLPOOL 23be542319be4c4c68288d783a1c7ba713ce76ffc23a87b5843d12b151ddcb7b1248c2b3f54859b2d0b318b5dc381fa01a0aa2896aa2e52867a09d3404fc6b1e
diff --git a/sys-devel/bmake/bmake-20170812.ebuild b/sys-devel/bmake/bmake-20170812.ebuild
new file mode 100644
index 000000000000..03ffd36338d0
--- /dev/null
+++ b/sys-devel/bmake/bmake-20170812.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+MK_VER=20170505
+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"
+
+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 || die
+ 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}"
+ doman "${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"
+}