summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2017-05-25 17:12:55 +0200
committerAlexis Ballier <aballier@gentoo.org>2017-05-25 17:48:47 +0200
commit105de42f3748b0cb58cd6c5a3871f25f973d52ed (patch)
tree75f27454554d7bf547f3345edaf0b745a219e947 /sys-devel/bmake
parentsys-devel/bmake: remove old (diff)
downloadgentoo-105de42f3748b0cb58cd6c5a3871f25f973d52ed.tar.gz
gentoo-105de42f3748b0cb58cd6c5a3871f25f973d52ed.tar.bz2
gentoo-105de42f3748b0cb58cd6c5a3871f25f973d52ed.zip
sys-devel/bmake: bump to 20170510
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'sys-devel/bmake')
-rw-r--r--sys-devel/bmake/Manifest2
-rw-r--r--sys-devel/bmake/bmake-20170510.ebuild50
2 files changed, 52 insertions, 0 deletions
diff --git a/sys-devel/bmake/Manifest b/sys-devel/bmake/Manifest
index 32fb12fdda7..3f87508453a 100644
--- a/sys-devel/bmake/Manifest
+++ b/sys-devel/bmake/Manifest
@@ -1,2 +1,4 @@
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 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-20170510.ebuild b/sys-devel/bmake/bmake-20170510.ebuild
new file mode 100644
index 00000000000..03ffd36338d
--- /dev/null
+++ b/sys-devel/bmake/bmake-20170510.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"
+}