guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

09/20: gnu: Add java-commons-collections.


From: julien lepiller
Subject: 09/20: gnu: Add java-commons-collections.
Date: Sat, 18 Nov 2017 05:32:57 -0500 (EST)

roptat pushed a commit to branch master
in repository guix.

commit 229a9864b683650b91ddac0fb6d62110f1519588
Author: Julien Lepiller <address@hidden>
Date:   Sun Nov 5 13:33:40 2017 +0100

    gnu: Add java-commons-collections.
    
    * gnu/packages/java.scm (java-commons-collections): New variable.
---
 gnu/packages/java.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 967cf39..0b75343 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2849,6 +2849,32 @@ are many features, including:
 @end itemize\n")
     (license license:asl2.0)))
 
+(define-public java-commons-collections
+  (package
+    (inherit java-commons-collections4)
+    (name "java-commons-collections")
+    (version "3.2.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://apache/commons/collections/source/"
+                                  "commons-collections-" version 
"-src.tar.gz"))
+              (sha256
+               (base32
+                "055r51a5lfc3z7rkxnxmnn1npvkvda7636hjpm4qk7cnfzz98387"))))
+    (arguments
+      (substitute-keyword-arguments (package-arguments 
java-commons-collections4)
+        ((#:phases phases)
+          `(modify-phases ,phases
+            ;; The manifest is required by the build procedure
+            (add-before 'build 'add-manifest
+              (lambda _
+                (mkdir-p "build/conf")
+                (call-with-output-file "build/conf/MANIFEST.MF"
+                  (lambda (file)
+                    (format file "Manifest-Version: 1.0\n")))))
+            (replace 'install
+              (install-jars "build"))))))))
+
 (define-public java-commons-io
   (package
     (name "java-commons-io")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]