[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/12: gnu: Add ant-junit.
From: |
Ricardo Wurmus |
Subject: |
10/12: gnu: Add ant-junit. |
Date: |
Mon, 27 Nov 2017 06:13:15 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit fa6c4213c6bdd435cf1cbf1afa37ed6d69db5d2d
Author: Ricardo Wurmus <address@hidden>
Date: Mon Nov 20 14:31:34 2017 +0100
gnu: Add ant-junit.
* gnu/packages/java.scm (ant-junit): New variable.
---
gnu/packages/java.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index d9fa0c4..e2b30e3 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -1785,6 +1785,38 @@ IcedTea build harness.")
`(("java-commons-bcel" ,java-commons-bcel)
,@(package-inputs ant/java8)))))
+(define-public ant-junit
+ (package
+ (inherit ant/java8)
+ (name "ant-junit")
+ (arguments
+ (substitute-keyword-arguments (package-arguments ant/java8)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'link-junit
+ (lambda* (#:key inputs #:allow-other-keys)
+ (for-each (lambda (file)
+ (symlink file
+ (string-append "lib/optional/"
+ (basename file))))
+ (find-files (assoc-ref inputs "java-junit")
+ "\\.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-junit.jar") share)
+ (delete-file-recursively bin)
+ (delete-file-recursively lib)
+ #t)))))))
+ (inputs
+ `(("java-junit" ,java-junit)
+ ,@(package-inputs ant/java8)))))
+
(define-public clojure
(let* ((remove-archives '(begin
(for-each delete-file
- branch master updated (9cc51d1 -> 776d2fb), Ricardo Wurmus, 2017/11/27
- 02/12: gnu: Add javacc., Ricardo Wurmus, 2017/11/27
- 05/12: gnu: java-htsjdk: Update to 2.3.0., Ricardo Wurmus, 2017/11/27
- 10/12: gnu: Add ant-junit.,
Ricardo Wurmus <=
- 08/12: gnu: Add java-commons-bcel., Ricardo Wurmus, 2017/11/27
- 04/12: gnu: Add java-commons-jexl-2., Ricardo Wurmus, 2017/11/27
- 07/12: gnu: Add java-cofoja., Ricardo Wurmus, 2017/11/27
- 09/12: gnu: Add ant-apache-bcel., Ricardo Wurmus, 2017/11/27
- 01/12: gnu: Add java-snappy-1., Ricardo Wurmus, 2017/11/27
- 03/12: gnu: Add javacc-4., Ricardo Wurmus, 2017/11/27
- 12/12: gnu: Add java-jbzip2., Ricardo Wurmus, 2017/11/27
- 06/12: gnu: Add java-picard., Ricardo Wurmus, 2017/11/27
- 11/12: gnu: Add java-picard-1.113., Ricardo Wurmus, 2017/11/27