From 52d2725ab126a98f170482d483ef4ddd71ba8edf Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Sun, 7 Oct 2018 14:32:05 +0200 Subject: gnu: Add java-xmlgraphics-commons. * gnu/packages/batik.scm (java-xmlgraphics-commons): New variable. --- gnu/packages/batik.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/batik.scm b/gnu/packages/batik.scm index cf946e570e..d45600f7b9 100644 --- a/gnu/packages/batik.scm +++ b/gnu/packages/batik.scm @@ -186,3 +186,48 @@ (define-public java-w3c-sac (description "This package provides a SAC interface by the W3C. SAC is an interface for CSS parsers.") (license license:w3c))) + +(define-public java-xmlgraphics-commons + (package + (name "java-xmlgraphics-commons") + (version "2.3") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://apache/xmlgraphics/commons/source/xmlgraphics-commons-" + version "-src.tar.gz")) + (sha256 + (base32 + "0a432a4ca3vgnbada5cy9mlmfzmq6hi4i176drfxrp17q2d43w23")))) + (build-system ant-build-system) + (arguments + `(#:build-target "jar-main" + ;; TODO: More detailed tests are available--but they need + ;; commons-xml-resolver. + ;; TODO: Provide commons-xml-resolver. + #:test-target "junit-basic" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'make-reproducible + (lambda _ + (substitute* "build.xml" + (("