[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
28/50: gnu: classpath-jamvm-wrappers: Use G-Expression.
From: |
guix-commits |
Subject: |
28/50: gnu: classpath-jamvm-wrappers: Use G-Expression. |
Date: |
Thu, 23 Dec 2021 16:34:28 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 380c52e901f6d1ac1267fc0a2311a0f52d0c109f
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sat Dec 18 17:29:11 2021 +0100
gnu: classpath-jamvm-wrappers: Use G-Expression.
* gnu/packages/java.scm (classpath-jamvm-wrappers)[arguments]: Use a gexp to
remove references to %build-inputs and %outputs.
[native-inputs]: Replace bash with bash-minimal; use label-less style.
---
gnu/packages/java.scm | 67 ++++++++++++++++++++++++---------------------------
1 file changed, 32 insertions(+), 35 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index b8ed4d5..021e9f4 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -622,45 +622,42 @@ the standard javac executable.")))
(source #f)
(build-system trivial-build-system)
(arguments
- `(#:modules ((guix build utils))
- #:builder
- (begin
- (use-modules (guix build utils))
- (let* ((bash (assoc-ref %build-inputs "bash"))
- (jamvm (assoc-ref %build-inputs "jamvm"))
- (classpath (assoc-ref %build-inputs "classpath"))
- (bin (string-append (assoc-ref %outputs "out")
- "/bin/")))
- (mkdir-p bin)
- (for-each (lambda (tool)
- (with-output-to-file (string-append bin tool)
- (lambda _
- ,@(if (string-prefix? "armhf" (or (%current-system)
-
(%current-target-system)))
- `((format #t "#!~a/bin/sh
+ (list
+ #:modules '((guix build utils))
+ #:builder
+ #~(begin
+ (use-modules (guix build utils))
+ (let ((bash #$(this-package-native-input "bash-minimal"))
+ (jamvm #$(this-package-native-input "jamvm"))
+ (classpath #$(this-package-native-input "classpath"))
+ (bin (string-append #$output "/bin/")))
+ (mkdir-p bin)
+ (for-each (lambda (tool)
+ (with-output-to-file (string-append bin tool)
+ (lambda _
+ #$@(if (string-prefix? "armhf" (or
(%current-system)
+
(%current-target-system)))
+ `((format #t "#!~a/bin/sh
~a/bin/jamvm -Xnocompact -classpath ~a/share/classpath/tools.zip \
gnu.classpath.tools.~a.~a $@"
- bash jamvm classpath tool
- (if (string=? "native2ascii" tool)
- "Native2ASCII" "Main")))
- `((format #t "#!~a/bin/sh
+ bash jamvm classpath tool
+ (if (string=? "native2ascii" tool)
+ "Native2ASCII" "Main")))
+ `((format #t "#!~a/bin/sh
~a/bin/jamvm -Xnocompact -Xnoinlining -classpath ~a/share/classpath/tools.zip \
gnu.classpath.tools.~a.~a $@"
- bash jamvm classpath tool
- (if (string=? "native2ascii" tool)
- "Native2ASCII" "Main"))))))
- (chmod (string-append bin tool) #o755))
- (list "javah"
- "rmic"
- "rmid"
- "orbd"
- "rmiregistry"
- "native2ascii"))
- #t))))
- (native-inputs
- `(("bash" ,bash)
- ("jamvm" ,jamvm-1-bootstrap)
- ("classpath" ,classpath-0.99)))
+ bash jamvm classpath tool
+ (if (string=? "native2ascii" tool)
+ "Native2ASCII" "Main"))))))
+ (chmod (string-append bin tool) #o755))
+ (list "javah"
+ "rmic"
+ "rmid"
+ "orbd"
+ "rmiregistry"
+ "native2ascii"))))))
+ (native-inputs
+ (list bash-minimal jamvm-1-bootstrap classpath-0.99))
(inputs '())
(synopsis "Executables from GNU Classpath")
(description "This package provides wrappers around the tools provided by
- 12/50: gnu: icedtea-7: Remove trailing #T., (continued)
- 12/50: gnu: icedtea-7: Remove trailing #T., guix-commits, 2021/12/23
- 13/50: gnu: icedtea-7: Bind INPUTS in 'patch-paths build phase., guix-commits, 2021/12/23
- 29/50: gnu: classpath-devel: Remove trailing #T., guix-commits, 2021/12/23
- 05/50: gnu: ecj-javac-wrapper: Use Guile 3., guix-commits, 2021/12/23
- 30/50: gnu: classpath-bootstrap: Use label-less input style., guix-commits, 2021/12/23
- 03/50: gnu: ecj-javac-wrapper: Remove rt.jar from classpath., guix-commits, 2021/12/23
- 33/50: gnu: ecj-bootstrap: Use label-less input style., guix-commits, 2021/12/23
- 08/50: gnu: Add ecj4-bootstrap., guix-commits, 2021/12/23
- 19/50: gnu: icedtea-8: Remove trailing #T from build phases., guix-commits, 2021/12/23
- 16/50: gnu: icedtea-7: Build with ECJ 4, Jamvm, and GNU Classpath., guix-commits, 2021/12/23
- 28/50: gnu: classpath-jamvm-wrappers: Use G-Expression.,
guix-commits <=
- 44/50: gnu: java-mail: Use new input style., guix-commits, 2021/12/23
- 02/50: gnu: ecj-bootstrap: Remove trailing #T., guix-commits, 2021/12/23
- 20/50: gnu: icedtea-8: Simplify source snippet., guix-commits, 2021/12/23
- 10/50: gnu: Add jamvm-with-ecj4., guix-commits, 2021/12/23
- 14/50: gnu: icedtea-7: Use system lcms and pcsc., guix-commits, 2021/12/23
- 17/50: gnu: icedtea-8: Remove commented configure flag., guix-commits, 2021/12/23
- 15/50: gnu: icedtea-7: Import missing module for read-line., guix-commits, 2021/12/23
- 07/50: gnu: ecj-javac-wrapper-final: Use new style for inputs., guix-commits, 2021/12/23
- 06/50: gnu: ecj-javac-wrapper-final: Use Guile 3., guix-commits, 2021/12/23
- 24/50: gnu: ant-bootstrap: Remove trailing #T from build phase., guix-commits, 2021/12/23