diff options
author | Julien Lepiller <julien@lepiller.eu> | 2018-02-10 17:50:11 +0100 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2018-02-10 19:04:10 +0100 |
commit | 5552080de385d61b7ac8f059ad7469e8ffdc58ac (patch) | |
tree | 55760e465a3f6da6bdcce377220789b4e6f8ace0 | |
parent | 7eae94d86adf3ed389d89ea2dea45cfa8c1ce6d6 (diff) | |
download | guix-5552080de385d61b7ac8f059ad7469e8ffdc58ac.tar.gz guix-5552080de385d61b7ac8f059ad7469e8ffdc58ac.zip |
gnu: Add java-xom.
* gnu/packages/xml.scm (java-xom): New variable.
-rw-r--r-- | gnu/packages/xml.scm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index ed5ce58af3..903151a53b 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -1618,3 +1618,45 @@ 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))) + +(define-public java-xom + (package + (name "java-xom") + (version "127") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/elharo/xom/archive/XOM_" + version ".tar.gz")) + (sha256 + (base32 + "04m69db1irqja12a9rfxrac8cbn9psqa1k136wh4ls4pxfsdr5wg")) + (modules '((guix build utils))) + (snippet + '(begin + (for-each delete-file + (find-files "." "\\.jar$")) + #t)))) + (build-system ant-build-system) + (arguments + `(#:jar-name "xom.jar" + #:jdk ,icedtea-8 + #:tests? #f; no tests + #:phases + (modify-phases %standard-phases + (add-before 'configure 'fix-tagsoup-dep + (lambda _ + ;; FIXME: Where is tagsoup source? + (delete-file "src/nu/xom/tools/XHTMLJavaDoc.java") + #t))))) + (inputs + `(("java-jdom" ,java-jdom) + ("java-junit" ,java-junit) + ("java-classpathx-servletapi" ,java-classpathx-servletapi) + ("java-jaxen-bootstrap" ,java-jaxen-bootstrap) + ("java-xerces" ,java-xerces))) + (home-page "https://xom.nu/") + (synopsis "XML Object Model") + (description "XOM is a new XML Object Model for processing XML with Java +that strives for correctness and simplicity.") + ;; 2.1 only + (license license:lgpl2.1))) |