From: qblade via Guix-patches via <guix-patches@gnu.org>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: 46703@debbugs.gnu.org
Subject: [bug#46703] 回复: Re: [bug#46703] [PATCH] gnu: add bmake
Date: Sun, 28 Feb 2021 04:27:43 +0000 [thread overview]
Message-ID: <QZ-GMnnNuclj89vhmSiC7J0PvEmsjRBaDyU4aiyRmG7072MjVci29V8P2dvYIrony2cyW-qrAsjpz25cTzJnSCJrjcI5ysnwOrhK1pL9P3Y=@protonmail.com> (raw)
In-Reply-To: <87k0qt1ts2.fsf@nicolasgoaziou.fr>
[-- Attachment #1: Type: text/plain, Size: 2 bytes --]
OK
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-bmake.patch --]
[-- Type: text/x-patch; name=0001-gnu-Add-bmake.patch, Size: 3153 bytes --]
From 3f04fd4d572ba8bf141324d60f3b0d3cc6fb2e4f Mon Sep 17 00:00:00 2001
From: qblade <qblade@protonmail.com>
Date: Sun, 28 Feb 2021 02:48:39 +0000
Subject: [PATCH] gnu: Add bmake
* gnu/packages/build-tools.scm (bmake): New variable.
---
gnu/packages/build-tools.scm | 52 ++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm
index 63417e5b81..5cb2e5de5d 100644
--- a/gnu/packages/build-tools.scm
+++ b/gnu/packages/build-tools.scm
@@ -12,6 +12,7 @@
;;; Copyright © 2020 Yuval Kogman <nothingmuch@woobling.org>
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2021 qblade <qblade@protonmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -37,6 +38,8 @@
#:use-module (guix build-system cmake)
#:use-module (gnu packages)
#:use-module (gnu packages adns)
+ #:use-module (gnu packages base)
+ #:use-module (gnu packages bash)
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages cpp)
@@ -481,3 +484,52 @@ besides executing the make build command, updates the JSON compilation
database file corresponding to that build, resulting in a command-line
interface similar to Bear.")
(license license:gpl3)))
+
+(define-public bmake
+ (package
+ (name "bmake")
+ (version "20210206")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://www.crufty.net/ftp/pub/sjg/bmake-" version ".tar.gz"))
+ (sha256
+ (base32
+ "07n9avzdg6gifrzyddnyzada5s5rzklvbqfpv5drljpxcgpqpvwg"))))
+ (build-system gnu-build-system)
+ (inputs
+ `(("bash" ,bash-minimal)))
+ (native-inputs
+ `(("coreutils" ,coreutils)))
+ (arguments
+ `(#:tests? #f ; test during build
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'configure 'fix-test ; fix from nixpkgs
+ (lambda _
+ (substitute* "unit-tests/unexport-env.mk"
+ (("PATH=\t/bin:/usr/bin:/sbin:/usr/sbin")
+ "PATH := ${PATH}"))))
+ (add-after 'configure 'remove-fail-tests ;; need fix
+ (lambda _
+ (substitute* "unit-tests/Makefile"
+ (("cmd-interrupt")
+ ""))
+ (substitute* "unit-tests/Makefile"
+ (("varmod-localtime")
+ "")))))
+ #:configure-flags
+ (list
+ (string-append
+ "--with-defshell=" (assoc-ref %build-inputs "bash") "/bin/bash")
+ (string-append
+ "--with-default-sys-path=" (assoc-ref %outputs "out") "/share/mk"))
+ #:make-flags
+ (list "INSTALL=install"))) ;; use coreutils install
+ (home-page "http://www.crufty.net/help/sjg/bmake.htm")
+ (synopsis "BSD's make")
+ (description "bmake is a program designed to simplify the maintenance of
+ other programs. Its input is a list of specifications as to the files upon
+ which programs and other files depend.")
+ (license license:bsd-3)))
--
2.29.2
next prev parent reply other threads:[~2021-02-28 4:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-22 6:33 [bug#46703] [PATCH] gnu: add bmake qblade via Guix-patches via
2021-02-27 14:15 ` Nicolas Goaziou
2021-02-28 4:27 ` qblade via Guix-patches via [this message]
2021-03-02 10:58 ` [bug#46703] 回复: " Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='QZ-GMnnNuclj89vhmSiC7J0PvEmsjRBaDyU4aiyRmG7072MjVci29V8P2dvYIrony2cyW-qrAsjpz25cTzJnSCJrjcI5ysnwOrhK1pL9P3Y=@protonmail.com' \
--to=guix-patches@gnu.org \
--cc=46703@debbugs.gnu.org \
--cc=mail@nicolasgoaziou.fr \
--cc=qblade@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).