unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#61745] [PATCH] gnu: Add 9base.
@ 2023-02-24  3:18 Antero Mejr via Guix-patches via
  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-03-10 13:49 ` bug#61745: [PATCH] gnu: Add 9base Ludovic Courtès
  0 siblings, 2 replies; 7+ messages in thread
From: Antero Mejr via Guix-patches via @ 2023-02-24  3:18 UTC (permalink / raw)
  To: 61745; +Cc: Antero Mejr

* 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





^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-10 13:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-24  3:18 [bug#61745] [PATCH] gnu: Add 9base Antero Mejr via Guix-patches via
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

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).