gnu: java-commons-codec: Update to 1.14.

* gnu/packages/java.scm (java-commons-codec): Update to 1.14.
This commit is contained in:
Julien Lepiller 2020-05-16 22:15:53 +02:00
parent b916b6382e
commit ba03666d29
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82

View File

@ -6913,33 +6913,38 @@ This is a part of the Apache Commons Project.")
(define-public java-commons-codec (define-public java-commons-codec
(package (package
(name "java-commons-codec") (name "java-commons-codec")
(version "1.10") (version "1.14")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://apache/commons/codec/source/" (uri (string-append "mirror://apache/commons/codec/source/"
"commons-codec-" version "-src.tar.gz")) "commons-codec-" version "-src.tar.gz"))
(sha256 (sha256
(base32 (base32
"1w9qg30y4s0x8gnmr2fgj4lyplfn788jqxbcz27lf5kbr6n8xr65")))) "11xr0agckkhm91pb5akf2mbk84yd54gyr178wj57gsm97fi7nkh9"))))
(build-system ant-build-system) (build-system ant-build-system)
(outputs '("out" "doc"))
(arguments (arguments
`(#:test-target "test" `(#:jar-name "java-commons-codec.jar"
#:make-flags #:source-dir "src/main/java"
(let ((hamcrest (assoc-ref %build-inputs "java-hamcrest-core")) #:test-dir "src/test"
(junit (assoc-ref %build-inputs "java-junit"))) #:test-exclude (list "**/*AbstractTest.java")
(list (string-append "-Djunit.jar=" (car (find-files junit "jar$")))
(string-append "-Dhamcrest.jar=" (car (find-files hamcrest "jar$")))
;; Do not append version to jar.
"-Dfinal.name=commons-codec"))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'build 'build-javadoc ant-build-javadoc) (add-before 'build 'copy-resources
(replace 'install (install-jars "dist")) (lambda _
(add-after 'install 'install-doc (install-javadoc "dist/docs/api"))))) (copy-recursively "src/main/resources"
"build/classes")
#t))
(add-before 'check 'copy-test-resources
(lambda _
(copy-recursively "src/test/resources"
"build/test-classes")
#t))
(replace 'install (install-from-pom "pom.xml")))))
(native-inputs (native-inputs
`(("java-junit" ,java-junit) `(("java-commons-lang3" ,java-commons-lang3)
("java-hamcrest-core" ,java-hamcrest-core))) ("java-junit" ,java-junit)))
(propagated-inputs
`(("apache-commons-parent-pom" ,apache-commons-parent-pom-50)))
(home-page "https://commons.apache.org/codec/") (home-page "https://commons.apache.org/codec/")
(synopsis "Common encoders and decoders such as Base64, Hex, Phonetic and URLs") (synopsis "Common encoders and decoders such as Base64, Hex, Phonetic and URLs")
(description "The codec package contains simple encoder and decoders for (description "The codec package contains simple encoder and decoders for