[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/18: gnu: Add 9yacc.
From: |
guix-commits |
Subject: |
16/18: gnu: Add 9yacc. |
Date: |
Fri, 10 Mar 2023 11:41:45 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 344a0d2c11440dc7aa6b30c1633ed098b8d700cc
Author: Antero Mejr <antero@mailbox.org>
AuthorDate: Fri Feb 24 03:22:20 2023 +0000
gnu: Add 9yacc.
* gnu/packages/suckless.scm (9yacc): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/suckless.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index 7f79e9d7e9..cfd70df027 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -1324,3 +1324,34 @@ environments, where no keyboard is available.")
It also contains the Plan 9 libbio, libregexp, libfmt and libutf libraries.")
(license (list license:expat ;modifications
license:lpl1.02))))) ;original plan9 code
+
+(define-public 9yacc
+ (package
+ (inherit lib9)
+ (name "9yacc")
+ (arguments
+ (substitute-keyword-arguments (package-arguments lib9)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (add-after 'patch 'patch-for-9yacc
+ (lambda _
+ (substitute* "yacc/yacc.c"
+ (("#9/yacc")
+ (string-append #$output "/lib")))
+ (substitute* "config.mk"
+ (("^CFLAGS.*+=.*$")
+ (string-append "CFLAGS+=-O2 -g -c -DPLAN9PORT "
+ "-DPREFIX=\\\"" #$output "\\\"\n")))))
+ (replace 'chdir
+ (lambda _
+ (chdir "yacc")))
+ (delete 'install-include)
+ (add-after 'install 'install-yaccpar
+ (lambda _
+ (install-file "yaccpar" (string-append #$output "/lib"))
+ (install-file "yaccpars" (string-append #$output "/lib"))))))))
+ (inputs (list lib9))
+ (synopsis "Port of Plan 9's yacc parser generator for Unix")
+ (description
+ "This package provides a ported version of the Plan 9 yacc parser
+generator.")))
- 11/18: doc: Sending-a-Patch-Series: Fix URL., (continued)
- 11/18: doc: Sending-a-Patch-Series: Fix URL., guix-commits, 2023/03/10
- 03/18: services: network-manager: Deprecate 'iwd?' field., guix-commits, 2023/03/10
- 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 <=
- 15/18: gnu: Add lib9., guix-commits, 2023/03/10
- 17/18: gnu: Add 9base., guix-commits, 2023/03/10
- 18/18: doc: Add missing space after @deftp., guix-commits, 2023/03/10