Skip to content
Snippets Groups Projects
Unverified Commit d44bcd7a authored by Ricardo Wurmus's avatar Ricardo Wurmus
Browse files

gnu: Add java-asm.

* gnu/packages/java.scm (java-asm): New variable.
parent c48a145f
No related branches found
No related tags found
No related merge requests found
...@@ -2826,3 +2826,47 @@ (define antlr3-3.1 ...@@ -2826,3 +2826,47 @@ (define antlr3-3.1
`(("junit" ,java-junit))) `(("junit" ,java-junit)))
(propagated-inputs (propagated-inputs
`(("stringtemplate" ,stringtemplate3))))) `(("stringtemplate" ,stringtemplate3)))))
(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"
#:test-target "test"
;; 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)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment