gnu: java-xmlgraphics-commons: Remove bundled dependencies.

* gnu/packages/batik.scm (java-xmlgraphics-commons): Remove bundled
dependencies.
This commit is contained in:
Danny Milosavljevic 2018-10-07 14:42:15 +02:00
parent 52d2725ab1
commit 02803fdf45
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -26,7 +26,8 @@ (define-module (gnu packages batik)
#:use-module (gnu packages)
#:use-module (gnu packages compression)
#:use-module (gnu packages java)
#:use-module (gnu packages textutils))
#:use-module (gnu packages textutils)
#:use-module (gnu packages xml))
(define-public java-w3c-smil-3.0
(package
@ -199,13 +200,16 @@ (define-public java-xmlgraphics-commons
version "-src.tar.gz"))
(sha256
(base32
"0a432a4ca3vgnbada5cy9mlmfzmq6hi4i176drfxrp17q2d43w23"))))
"0a432a4ca3vgnbada5cy9mlmfzmq6hi4i176drfxrp17q2d43w23"))
(modules '((guix build utils)))
(snippet
`(begin
(delete-file-recursively "lib")
#t))))
(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.
;; TODO: More detailed tests are available.
#:test-target "junit-basic"
#:phases
(modify-phases %standard-phases
@ -215,6 +219,11 @@ (define-public java-xmlgraphics-commons
(("<attribute name=\"Build-Id\" value=\"[^\"]*\"")
"<attribute name=\"Build-Id\" value=\"\""))
#t))
(add-before 'build 'prepare-build-directories
(lambda _
(mkdir "lib")
(mkdir "lib/build")
#t))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
@ -225,7 +234,14 @@ (define-public java-xmlgraphics-commons
"xmlgraphics-commons.*\\.jar$"))
#t))))))
(native-inputs
`(("java-junit" ,java-junit)))
`(("java-apache-xml-commons-resolver" ,java-apache-xml-commons-resolver)
("java-hamcrest" ,java-hamcrest-core)
("java-junit" ,java-junit)
("java-mockito" ,java-mockito-1)
("java-objenesis" ,java-objenesis)))
(propagated-inputs
`(("java-commons-io" ,java-commons-io)
("java-commons-logging-minimal" ,java-commons-logging-minimal)))
(home-page "https://xmlgraphics.apache.org/commons/")
(synopsis "XMLGraphics constants")
(description "This package provides XMLGraphics constants (originally