[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/18: gnu: Add 9base.
From: |
guix-commits |
Subject: |
17/18: gnu: Add 9base. |
Date: |
Fri, 10 Mar 2023 11:41:45 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit e152e861b8e1fc2f57949a5e5b27b568d063bace
Author: Antero Mejr <antero@mailbox.org>
AuthorDate: Fri Feb 24 03:18:03 2023 +0000
gnu: Add 9base.
* gnu/packages/suckless.scm (9base): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
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 @@
#: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 @@ It also contains the Plan 9 libbio, libregexp, libfmt
and libutf libraries.")
(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.")))
- 05/18: services: connman: Add 'shepherd-requirement' field., (continued)
- 05/18: services: connman: Add 'shepherd-requirement' field., guix-commits, 2023/03/10
- 06/18: services: connman: Deprecate 'iwd?' field., guix-commits, 2023/03/10
- 01/18: build-system/gnu: Remove 'install-license-files' from '%dist-phases'., guix-commits, 2023/03/10
- 08/18: services: network-manager: Set service canonical-name to NetworkManager., guix-commits, 2023/03/10
- 09/18: services: connman: Set service canonical-name to connman., guix-commits, 2023/03/10
- 12/18: licenses: Add LPL 1.02 (Lucent Public Licence)., guix-commits, 2023/03/10
- 13/18: import: Add EUPL 1.1 to the SPDX license name converter., guix-commits, 2023/03/10
- 14/18: gnu: r-mapproj: Correct license field to lpl1.02., guix-commits, 2023/03/10
- 16/18: gnu: Add 9yacc., guix-commits, 2023/03/10
- 15/18: gnu: Add lib9., guix-commits, 2023/03/10
- 17/18: gnu: Add 9base.,
guix-commits <=
- 18/18: doc: Add missing space after @deftp., guix-commits, 2023/03/10