Subject: Re: bug#26803: [PATCH 07/36] gnu: Add java-cglib.

From: Roel Janssen <[email-masked]>
Date: Sat, 06 May 2017 22:40:47 +0200

Ricardo Wurmus writes:

> * gnu/packages/java.scm (java-cglib): New variable.
> ---
>  gnu/packages/java.scm | 34 ++++++++++++++++++++++++++++++++++
>  1 file changed, 34 insertions(+)
>
> diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
> index 2df07bc38..7f22661b1 100644
> --- a/gnu/packages/java.scm
> +++ b/gnu/packages/java.scm
> @@ -1306,3 +1306,37 @@ 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)))
> +
> +(define-public java-cglib
> +  (package
> +    (name "java-cglib")
> +    (version "3.2.4")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append
> +                    "https://github.com/cglib/cglib/archive/RELEASE_"
> +                    (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
> +                    ".tar.gz"))
> +              (file-name (string-append "cglib-" version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "162dvd4fln76ai8prfharf66pn6r56p3sxx683j5vdyccrd5hi1q"))))
> +    (build-system ant-build-system)
> +    (arguments
> +     `(;; FIXME: tests fail because junit runs
> +       ;; "net.sf.cglib.transform.AbstractTransformTest", which does not seem
> +       ;; to describe a test at all.
> +       #:tests? #f
> +       #:jar-name "cglib.jar"
> +       #:phases
> +       (modify-phases %standard-phases
> +         (add-after 'unpack 'chdir
> +           (lambda _ (chdir "cglib") #t)))))
> +    (inputs
> +     `(("java-asm" ,java-asm)
> +       ("java-junit" ,java-junit)))
> +    (home-page "https://github.com/cglib/cglib/")
> +    (synopsis "Java byte code generation library")
> +    (description "The byte code generation library CGLIB is a high level API
> +to generate and transform Java byte code.")
> +    (license license:asl2.0)))

Not sure, but maybe @code{CGLIB}?

Either way, LGTM!

Kind regards,
Roel Janssen