Subject: [bug#58553] [PATCH 3/7] gnu: Add java-asm-3.

From: Julien Lepiller <[email-masked]>
Date: Sat, 15 Oct 2022 23:39:21 +0200

* gnu/packages/java.scm (java-asm): New variable.
---
 gnu/packages/java.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 3ab324cce9..a433281ce3 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5296,6 +5296,29 @@ (define java-asm-bootstrap
        ((#:tests? _) #f)))
     (native-inputs `())))
 
+(define-public java-asm-3
+  (package
+    (inherit java-asm)
+    (version "3.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://gitlab.ow2.org/asm/asm")
+                     (commit "ASM_3_1")))
+              (file-name (git-file-name "java-asm" version))
+              (sha256
+               (base32
+                "0xbyf2sl8j6mrvfpg2da0vjdp906rac62l66gkk82x5cn3vc30h4"))))
+    (arguments
+     `(#:build-target "jar"
+       #:test-target "test"
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'install (install-jars "output/dist"))
+         (delete 'generate-jar-indices))))
+    (native-inputs
+     `(("java-junit" ,java-junit)))))
+
 (define-public java-asm-8
   (package
     (inherit java-asm)
@@ -6778,6 +6801,7 @@ (define-public java-commons-compress
     (build-system ant-build-system)
     (arguments
      `(#:jar-name "commons-compress.jar"
+       #:source-dir "src/main/java"
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'delete-bad-tests
@@ -6798,7 +6822,7 @@ (define-public java-commons-compress
              #t))
          (replace 'install (install-from-pom "pom.xml")))))
     (propagated-inputs
-     (list java-xz apache-commons-parent-pom-41))
+     (list java-asm-3 java-brotli java-xz java-zstd apache-commons-parent-pom-52))
     (native-inputs
      (list java-junit java-mockito-1))
     (home-page "https://commons.apache.org/proper/commons-compress/")
-- 
2.38.0