aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/xml.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-02-10 17:48:54 +0100
committerJulien Lepiller <julien@lepiller.eu>2018-02-10 19:04:08 +0100
commit7eae94d86adf3ed389d89ea2dea45cfa8c1ce6d6 (patch)
tree61fada45df51bd9feb5187635532790c9908292a /gnu/packages/xml.scm
parent6d0368eb842f4b5b8a65209569a21c07b378b397 (diff)
downloadguix-7eae94d86adf3ed389d89ea2dea45cfa8c1ce6d6.tar
guix-7eae94d86adf3ed389d89ea2dea45cfa8c1ce6d6.tar.gz
gnu: Add java-jaxen-bootstrap.
* gnu/packages/xml.scm (java-jaxen-bootstrap): New variable.
Diffstat (limited to 'gnu/packages/xml.scm')
-rw-r--r--gnu/packages/xml.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 741ab2853c..ed5ce58af3 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -1581,3 +1581,40 @@ in a number of formats:
Technical Committee.
@end itemize")
(license license:asl2.0)))
+
+;; Jaxen requires java-dom4j and java-xom that in turn require jaxen.
+;; This package is a bootstrap version without dependencies on dom4j and xom.
+(define java-jaxen-bootstrap
+ (package
+ (name "java-jaxen-bootstrap")
+ (version "1.1.6")
+ (source (origin
+ (method url-fetch)
+ ;; No release on github
+ (uri (string-append "https://repo1.maven.org/maven2/jaxen/jaxen/"
+ version "/jaxen-" version "-sources.jar"))
+ (sha256
+ (base32
+ "18pa8mks3gfhazmkyil8wsp6j1g1x7rggqxfv4k2mnixkrj5x1kx"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "jaxen.jar"
+ #:source-dir "src"
+ #:tests? #f; no tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'remove-dom4j
+ (lambda _
+ (delete-file-recursively "src/org/jaxen/dom4j")
+ (delete-file-recursively "src/org/jaxen/xom")
+ #t)))))
+ (inputs
+ `(("java-jdom" ,java-jdom)))
+ (home-page "https://github.com/jaxen-xpath/jaxen")
+ (synopsis "XPath library")
+ (description "Jaxen is an XPath library written in Java. It is adaptable
+to many different object models, including DOM, XOM, dom4j, and JDOM. It is
+also possible to write adapters that treat non-XML trees such as compiled
+Java byte code or Java beans as XML, thus enabling you to query these trees
+with XPath too.")
+ (license license:bsd-3)))