[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/22: gnu: Add java-asm.
From: |
Ricardo Wurmus |
Subject: |
06/22: gnu: Add java-asm. |
Date: |
Wed, 10 May 2017 11:59:39 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 8f8ed9aadddcc54dba15a8fa97a173ccd1bc61b3
Author: Ricardo Wurmus <address@hidden>
Date: Thu Mar 2 11:50:17 2017 +0100
gnu: Add java-asm.
* gnu/packages/java.scm (java-asm): New variable.
---
gnu/packages/java.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index fb01480..c52d522 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -1262,3 +1262,46 @@ It has its foundation in the
@code{org.codehaus.plexus.utils.interpolation}
package within @code{plexus-utils}, but has been separated in order to allow
these two libraries to vary independently of one another.")
(license license:asl2.0)))
+
+(define-public java-asm
+ (package
+ (name "java-asm")
+ (version "5.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://download.forge.ow2.org/asm/"
+ "asm-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0kxvmv5275rnjl7jv0442k3wjnq03ngkb7sghs78avf45pzm4qgr"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:build-target "compile"
+ ;; The tests require an old version of Janino, which no longer compiles
+ ;; with the JDK7.
+ #:tests? #f
+ ;; We don't need these extra ant tasks, but the build system asks us to
+ ;; provide a path anyway.
+ #:make-flags (list (string-append "-Dobjectweb.ant.tasks.path=foo"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'build-jars
+ (lambda* (#:key make-flags #:allow-other-keys)
+ ;; We cannot use the "jar" target because it depends on a couple
+ ;; of unpackaged, complicated tools.
+ (mkdir "dist")
+ (zero? (system* "jar"
+ "-cf" (string-append "dist/asm-" ,version ".jar")
+ "-C" "output/build/tmp" "."))))
+ (replace 'install
+ (install-jars "dist")))))
+ (native-inputs
+ `(("java-junit" ,java-junit)))
+ (home-page "http://asm.ow2.org/")
+ (synopsis "Very small and fast Java bytecode manipulation framework")
+ (description "ASM is an all purpose Java bytecode manipulation and
+analysis framework. It can be used to modify existing classes or dynamically
+generate classes, directly in binary form. The provided common
+transformations and analysis algorithms allow to easily assemble custom
+complex transformations and code analysis tools.")
+ (license license:bsd-3)))
- branch master updated (75f796b -> fae0b4c), Ricardo Wurmus, 2017/05/10
- 01/22: ant-build-system: Allow specifying source directory., Ricardo Wurmus, 2017/05/10
- 07/22: gnu: Add java-cglib., Ricardo Wurmus, 2017/05/10
- 10/22: gnu: Add java-jopt-simple., Ricardo Wurmus, 2017/05/10
- 12/22: gnu: Add java-commons-math3., Ricardo Wurmus, 2017/05/10
- 20/22: gnu: Add java-commons-daemon., Ricardo Wurmus, 2017/05/10
- 08/22: gnu: Add java-objenesis., Ricardo Wurmus, 2017/05/10
- 06/22: gnu: Add java-asm.,
Ricardo Wurmus <=
- 21/22: gnu: Add java-jmock-1., Ricardo Wurmus, 2017/05/10
- 04/22: gnu: Add java-plexus-utils., Ricardo Wurmus, 2017/05/10
- 05/22: gnu: Add java-plexus-interpolation., Ricardo Wurmus, 2017/05/10
- 02/22: ant-build-system: Add default "check" target., Ricardo Wurmus, 2017/05/10
- 13/22: gnu: Add java-jmh., Ricardo Wurmus, 2017/05/10
- 15/22: gnu: Add java-commons-io., Ricardo Wurmus, 2017/05/10
- 16/22: gnu: Add java-commons-lang., Ricardo Wurmus, 2017/05/10
- 19/22: gnu: Add java-commons-codec., Ricardo Wurmus, 2017/05/10
- 09/22: gnu: Add java-easymock., Ricardo Wurmus, 2017/05/10
- 11/22: gnu: java-hamcrest-core: Install all jars without version suffix., Ricardo Wurmus, 2017/05/10