diff --git a/packages/bmake/patches/0001-musl-tests.patch b/packages/bmake/patches/0001-musl-tests.patch new file mode 100644 index 0000000..f010327 --- /dev/null +++ b/packages/bmake/patches/0001-musl-tests.patch @@ -0,0 +1,44 @@ +--- a/unit-tests/Makefile ++++ b/unit-tests/Makefile +@@ -62,7 +62,6 @@ + TESTS+= cmd-errors + TESTS+= cmd-errors-jobs + TESTS+= cmd-errors-lint +-TESTS+= cmd-interrupt + TESTS+= cmdline + TESTS+= cmdline-redirect-stdin + TESTS+= cmdline-undefined +@@ -139,7 +138,6 @@ + TESTS+= deptgt-begin-fail + TESTS+= deptgt-begin-fail-indirect + TESTS+= deptgt-default +-TESTS+= deptgt-delete_on_error + TESTS+= deptgt-end + TESTS+= deptgt-end-fail + TESTS+= deptgt-end-fail-all +@@ -147,7 +145,6 @@ + TESTS+= deptgt-end-jobs + TESTS+= deptgt-error + TESTS+= deptgt-ignore +-TESTS+= deptgt-interrupt + TESTS+= deptgt-main + TESTS+= deptgt-makeflags + TESTS+= deptgt-no_parallel +@@ -511,8 +508,6 @@ + + .if ${.MAKE.OS:NIRIX*} == "" + BROKEN_TESTS+= \ +- cmd-interrupt \ +- deptgt-interrupt \ + job-output-null \ + opt-chdir \ + opt-debug-x-trace \ +@@ -538,7 +533,6 @@ + BROKEN_TESTS+= job-output-null + .else + BROKEN_TESTS+= \ +- cmd-interrupt \ + job-flags \ + + .endif + diff --git a/packages/bmake/pkgbuild.py b/packages/bmake/pkgbuild.py new file mode 100644 index 0000000..b4373f9 --- /dev/null +++ b/packages/bmake/pkgbuild.py @@ -0,0 +1,36 @@ +import os + +from lib import cpp +from lib.make import * + +VERSION = "2026.6.19" + +version(VERSION) +source_url("https://www.crufty.net/ftp/pub/sjg/bmake-20260619.tar.gz") + + +def build(): + cpp.configure( + [ + "--prefix=/", + f"--with-default-sys-path=/pkg/bmake={VERSION}@{arch.get_target()}/share/mk", + ] + ) + cpp.make() + cpp.make_install() + os.chmod("bin/bmake", 0o655) + + +on_build(build) + + +def pack_bmake(composer): + composer.makedir("bin") + composer.addfile("bin/bmake", "bin/bmake") + composer.makedir("share") + composer.add_dir("share/mk", "share/mk") + + +package("bmake") +dep("semi-libc @same-arch") +on_pack(pack_bmake)