gnu: ecj-javac-wrapper: Use G-Expression.

* gnu/packages/java.scm (ecj-javac-wrapper)[arguments]: Use a gexp to remove
references to %outputs and %build-inputs.
[native-inputs]: Use label-less style.
This commit is contained in:
Ricardo Wurmus 2021-12-18 17:28:08 +01:00
parent 8a47f274fc
commit de48029bb3
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -506,17 +506,18 @@ (define ecj-javac-wrapper
(arguments
`(#:modules ((guix build utils))
#:builder
(begin
,#~(begin
(use-modules (guix build utils))
(let* ((bin (string-append (assoc-ref %outputs "out") "/bin"))
(let* ((bin (string-append #$output "/bin"))
(target (string-append bin "/javac"))
(guile (string-append (assoc-ref %build-inputs "guile")
"/bin/guile"))
(ecj (string-append (assoc-ref %build-inputs "ecj-bootstrap")
(ecj (string-append #$(this-package-native-input "ecj-bootstrap")
"/share/java/ecj-bootstrap.jar"))
(java (string-append (assoc-ref %build-inputs "jamvm")
(java (string-append #$(this-package-native-input "jamvm")
"/bin/jamvm"))
(bootcp (let ((jvmlib (string-append (assoc-ref %build-inputs "classpath")
(bootcp (let ((jvmlib (string-append
#$(this-package-native-input "classpath")
"/share/classpath")))
(string-append jvmlib "/glibj.zip:"
jvmlib "/tools.zip"))))
@ -560,10 +561,7 @@ (define (main args)
(main args)))))))
(chmod target #o755)))))
(native-inputs
`(("guile" ,guile-3.0)
("ecj-bootstrap" ,ecj-bootstrap)
("jamvm" ,jamvm-1-bootstrap)
("classpath" ,classpath-bootstrap)))
(list guile-3.0 ecj-bootstrap jamvm-1-bootstrap classpath-bootstrap))
(description "This package provides a wrapper around the @dfn{Eclipse
compiler for Java} (ecj) with a command line interface that is compatible with
the standard javac executable.")))