[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/28: gnu: stringtemplate4: Prettify "generate-grammar" phase.
From: |
Ricardo Wurmus |
Subject: |
25/28: gnu: stringtemplate4: Prettify "generate-grammar" phase. |
Date: |
Tue, 16 May 2017 09:24:37 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit f4aa4cfe001d0637816577450aa2f35e23b5a653
Author: Ricardo Wurmus <address@hidden>
Date: Tue May 16 13:19:32 2017 +0200
gnu: stringtemplate4: Prettify "generate-grammar" phase.
* gnu/packages/java.scm (stringtemplate4)[arguments]: Rewrite
"generate-grammar" phase to use "with-directory-excursion" and to report
success or failure.
---
gnu/packages/java.scm | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 6c8af73..b45569a 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -3226,17 +3226,18 @@ StringTemplate also powers ANTLR.")
(arguments
`(#:tests? #f
#:jar-name (string-append ,name "-" ,version ".jar")
+ #:modules ((guix build ant-build-system)
+ (guix build utils)
+ (srfi srfi-1))
#:phases
(modify-phases %standard-phases
(add-before 'build 'generate-grammar
- (lambda* (#:key inputs #:allow-other-keys)
- (chdir "src/org/stringtemplate/v4/compiler/")
- (for-each (lambda (file)
- (display file)
- (newline)
- (system* "antlr3" file))
- '("STParser.g" "Group.g" "CodeGenerator.g"))
- (chdir "../../../../.."))))))
+ (lambda _
+ (with-directory-excursion "src/org/stringtemplate/v4/compiler/"
+ (every (lambda (file)
+ (format #t "~a\n" file)
+ (zero? (system* "antlr3" file)))
+ '("STParser.g" "Group.g" "CodeGenerator.g"))))))))
(inputs
`(("antlr3" ,antlr3-bootstrap)
("antlr2" ,antlr2)
- branch master updated (7ee7ee1 -> 6db77c7), Ricardo Wurmus, 2017/05/16
- 02/28: gnu: cl-slynk: Explain some naming choices., Ricardo Wurmus, 2017/05/16
- 08/28: build-system/asdf: Keep ecl's generated archive files., Ricardo Wurmus, 2017/05/16
- 03/28: build-system/asdf: Rename %install-prefix to %source-install-prefix., Ricardo Wurmus, 2017/05/16
- 01/28: gnu: cl-slynk: Clarify the description., Ricardo Wurmus, 2017/05/16
- 04/28: build-system/asdf: Make it possible to use "lib" as the build output., Ricardo Wurmus, 2017/05/16
- 17/28: gnu: sbcl-slynk-boot0: Give the package an appropriate name., Ricardo Wurmus, 2017/05/16
- 21/28: gnu: java-stringtemplate-3: Do not hardcode version string., Ricardo Wurmus, 2017/05/16
- 25/28: gnu: stringtemplate4: Prettify "generate-grammar" phase.,
Ricardo Wurmus <=
- 18/28: build-system/asdf: Handle tests defined in external systems., Ricardo Wurmus, 2017/05/16
- 14/28: gnu: Add cl-unicode., Ricardo Wurmus, 2017/05/16
- 06/28: build-system/asdf: Use asdf to determine dependencies., Ricardo Wurmus, 2017/05/16
- 05/28: gnu: cl-stumpwm: Build the library in "lib" and the program in "bin"., Ricardo Wurmus, 2017/05/16
- 11/28: build-system/asdf: Pass the system name as an argument to the builder., Ricardo Wurmus, 2017/05/16
- 23/28: gnu: java-stringtemplate-3: Use return value in build phase., Ricardo Wurmus, 2017/05/16
- 12/28: build-system/asdf: Always pre-load the system's definition file., Ricardo Wurmus, 2017/05/16
- 09/28: build-system/asdf: Make #:lisp a package argument., Ricardo Wurmus, 2017/05/16
- 26/28: gnu: Rename stringtemplate4 to java-stringtemplate., Ricardo Wurmus, 2017/05/16
- 13/28: build-system/asdf: Handle unusually-named systems., Ricardo Wurmus, 2017/05/16