mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: Add ant-apache-bcel.
* gnu/packages/java.scm (ant-apache-bcel): New variable.
This commit is contained in:
parent
5e3abfc83f
commit
9ce7ac992e
1 changed files with 32 additions and 0 deletions
|
@ -1753,6 +1753,38 @@ (define-public ant
|
|||
(native-inputs
|
||||
`(("jdk" ,icedtea-7 "jdk")))))
|
||||
|
||||
(define-public ant-apache-bcel
|
||||
(package
|
||||
(inherit ant/java8)
|
||||
(name "ant-apache-bcel")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments ant/java8)
|
||||
((#:phases phases)
|
||||
`(modify-phases ,phases
|
||||
(add-after 'unpack 'link-bcel
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(for-each (lambda (file)
|
||||
(symlink file
|
||||
(string-append "lib/optional/"
|
||||
(basename file))))
|
||||
(find-files (assoc-ref inputs "java-commons-bcel")
|
||||
"\\.jar$"))
|
||||
#t))
|
||||
(add-after 'build 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(share (string-append out "/share/java"))
|
||||
(bin (string-append out "/bin"))
|
||||
(lib (string-append out "/lib")))
|
||||
(mkdir-p share)
|
||||
(install-file (string-append lib "/ant-apache-bcel.jar") share)
|
||||
(delete-file-recursively bin)
|
||||
(delete-file-recursively lib)
|
||||
#t)))))))
|
||||
(inputs
|
||||
`(("java-commons-bcel" ,java-commons-bcel)
|
||||
,@(package-inputs ant/java8)))))
|
||||
|
||||
(define-public clojure
|
||||
(let* ((remove-archives '(begin
|
||||
(for-each delete-file
|
||||
|
|
Loading…
Reference in a new issue