guix-commits
[Top][All Lists]
Advanced

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

03/03: gnu: java-hamcrest-all: Build with icedtea-8.


From: Ricardo Wurmus
Subject: 03/03: gnu: java-hamcrest-all: Build with icedtea-8.
Date: Sun, 11 Mar 2018 15:03:34 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit bfc007e13e055ca2d535a02aa7fc4ba7f6183150
Author: Ricardo Wurmus <address@hidden>
Date:   Sun Mar 11 20:02:10 2018 +0100

    gnu: java-hamcrest-all: Build with icedtea-8.
    
    * gnu/packages/java.scm (java-hamcrest-all)[arguments]: Build with 
icedtea-8;
    do not disable tests.
    [inputs]: Remove java-hamcrest-core.
---
 gnu/packages/java.scm | 49 ++++++++++++++++++++-----------------------------
 1 file changed, 20 insertions(+), 29 deletions(-)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index bb20b1d..43a3a62 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -3886,39 +3886,30 @@ The jMock library
   (package (inherit java-hamcrest-core)
     (name "java-hamcrest-all")
     (arguments
-     (substitute-keyword-arguments (package-arguments java-hamcrest-core)
-       ;; FIXME: a unit test fails because org.hamcrest.SelfDescribing is not
-       ;; found, although it is part of the hamcrest-core library that has
-       ;; just been built.
-       ;;
-       ;; Fixing this one test is insufficient, though, and upstream confirmed
-       ;; that the latest hamcrest release fails its unit tests when built
-       ;; with Java 7.  See https://github.com/hamcrest/JavaHamcrest/issues/30
-       ((#:tests? _) #f)
-       ((#:build-target _) "bigjar")
-       ((#:phases phases)
-        `(modify-phases ,phases
-           ;; Some build targets override the classpath, so we need to patch
-           ;; the build.xml to ensure that required dependencies are on the
-           ;; classpath.
-           (add-after 'unpack 'patch-classpath-for-integration
-             (lambda* (#:key inputs #:allow-other-keys)
-               (substitute* "build.xml"
-                 ((" build/hamcrest-library-\\$\\{version\\}.jar" line)
-                  (string-join
-                   (cons line
-                         (append
-                          (find-files (assoc-ref inputs "java-hamcrest-core") 
"\\.jar$")
-                          (find-files (assoc-ref inputs "java-junit") 
"\\.jar$")
-                          (find-files (assoc-ref inputs "java-jmock") 
"\\.jar$")
-                          (find-files (assoc-ref inputs "java-easymock") 
"\\.jar$")))
-                   ";")))
-               #t))))))
+     `(#:jdk ,icedtea-8
+       ,@(substitute-keyword-arguments (package-arguments java-hamcrest-core)
+           ((#:build-target _) "bigjar")
+           ((#:phases phases)
+            `(modify-phases ,phases
+               ;; Some build targets override the classpath, so we need to 
patch
+               ;; the build.xml to ensure that required dependencies are on the
+               ;; classpath.
+               (add-after 'unpack 'patch-classpath-for-integration
+                 (lambda* (#:key inputs #:allow-other-keys)
+                   (substitute* "build.xml"
+                     ((" build/hamcrest-library-\\$\\{version\\}.jar" line)
+                      (string-join
+                       (cons line
+                             (append
+                              (find-files (assoc-ref inputs "java-junit") 
"\\.jar$")
+                              (find-files (assoc-ref inputs "java-jmock") 
"\\.jar$")
+                              (find-files (assoc-ref inputs "java-easymock") 
"\\.jar$")))
+                       ";")))
+                   #t)))))))
     (inputs
      `(("java-junit" ,java-junit)
        ("java-jmock" ,java-jmock-1)
        ("java-easymock" ,java-easymock)
-       ("java-hamcrest-core" ,java-hamcrest-core)
        ,@(package-inputs java-hamcrest-core)))))
 
 (define-public java-jopt-simple



reply via email to

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