From: Antero Mejr via Guix-patches via <guix-patches@gnu.org>
To: 61745@debbugs.gnu.org
Cc: Antero Mejr <antero@mailbox.org>
Subject: [bug#61745] [PATCH] gnu: Add 9base.
Date: Fri, 24 Feb 2023 03:18:03 +0000 [thread overview]
Message-ID: <20230224031803.14689-1-antero@mailbox.org> (raw)
* gnu/packages/suckless.scm (9base): New variable.
---
gnu/packages/suckless.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index cfd70df027..400832045f 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -48,6 +48,7 @@ (define-module (gnu packages suckless)
#:use-module (gnu packages mpd)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages shells)
#:use-module (gnu packages webkit)
#:use-module (gnu packages xorg)
#:use-module (guix build-system cargo)
@@ -1355,3 +1356,39 @@ (define-public 9yacc
(description
"This package provides a ported version of the Plan 9 yacc parser
generator.")))
+
+(define-public 9base
+ (package
+ (inherit 9yacc)
+ (name "9base")
+ (arguments
+ (substitute-keyword-arguments (package-arguments 9yacc)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (add-after 'patch-for-9yacc 'patch-for-9base
+ (lambda _
+ (substitute* "Makefile"
+ (("SUBDIRS = lib9\\\\")
+ "SUBDIRS = \\")
+ (("@chmod 755 yacc/9yacc")
+ ""))
+ (for-each (lambda (x)
+ (substitute* "Makefile"
+ (((string-append x "\\\\")) "\\")))
+ '("yacc" "diff" "hoc" "rc"))
+ (substitute* "sam/Makefile"
+ (("\\$\\{CFLAGS\\}")
+ "${CFLAGS} -I."))
+ (substitute* "config.mk"
+ (("^YACC.*=.*$")
+ (string-append "YACC=" #$(this-package-native-input "9yacc")
+ "/bin/yacc\n")))))
+ (delete 'chdir)
+ (delete 'install-yaccpar)))))
+ (native-inputs (list 9yacc))
+ (inputs (list lib9))
+ (propagated-inputs (list rc))
+ (synopsis "Port of various Plan 9 tools for Unix")
+ (description
+ "This package provides ported versions of various Plan 9 userland tools
+for Unix.")))
--
2.38.1
next reply other threads:[~2023-02-24 3:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-24 3:18 Antero Mejr via Guix-patches via [this message]
2023-02-24 3:22 ` [bug#61745] [PATCH 1/5] licenses: Add LPL 1.02 (Lucent Public Licence) Antero Mejr via Guix-patches via
2023-02-24 3:22 ` [bug#61745] [PATCH 2/5] import: Add EUPL 1.1 to the SPDX license name converter Antero Mejr via Guix-patches via
2023-02-24 3:22 ` [bug#61745] [PATCH 3/5] gnu: r-mapproj: Correct license field to lpl1.02 Antero Mejr via Guix-patches via
2023-02-24 3:22 ` [bug#61745] [PATCH 4/5] gnu: Add lib9 Antero Mejr via Guix-patches via
2023-02-24 3:22 ` [bug#61745] [PATCH 5/5] gnu: Add 9yacc Antero Mejr via Guix-patches via
2023-03-10 13:49 ` bug#61745: [PATCH] gnu: Add 9base Ludovic Courtès
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=20230224031803.14689-1-antero@mailbox.org \
--to=guix-patches@gnu.org \
--cc=61745@debbugs.gnu.org \
--cc=antero@mailbox.org \
/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).