[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
26/32: gnu: Add java-stax.
From: |
julien lepiller |
Subject: |
26/32: gnu: Add java-stax. |
Date: |
Sat, 10 Feb 2018 13:05:14 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit 4c7759f027120c28d51f648d517b8cf20ed6951a
Author: Julien Lepiller <address@hidden>
Date: Sat Feb 10 18:30:13 2018 +0100
gnu: Add java-stax.
* gnu/packages/xml.scm (java-stax): New variable.
---
gnu/packages/xml.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index ce7eb4b..76b0695 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -1867,3 +1867,35 @@ low memory footprint.")
constrained environments such as Applets, Personal Java or devices compliant
with the Mobile Information Device Profile (MIDP).")
(license license:expat)))
+
+(define-public java-stax
+ (package
+ (name "java-stax")
+ (version "1.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://repo1.maven.org/maven2/stax/stax/"
+ version "/stax-" version "-sources.jar"))
+ (sha256
+ (base32
+ "04ba4qvbrps45j8bldbakxq31k7gjlsay9pppa9yn13fr00q586z"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "stax.jar"
+ #:tests? #f; no tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'fix-utf8
+ (lambda _
+ ;; This file is ISO-8859-1 but java expects UTF-8.
+ ;; Remove special characters in comments.
+ (with-fluids ((%default-port-encoding "ISO-8859-1"))
+ (substitute* "src/com/wutka/dtd/Scanner.java"
+ (("//.*") "\n")))
+ #t)))))
+ (home-page "https://repo1.maven.org/maven2/stax/stax/")
+ (synopsis "Streaming API for XML")
+ (description "This package provides the reference implementation of the
address@hidden API for XML} (StAX). It is used for streaming XML data to
+and from a Java application. It provides a standard pull parser interface.")
+ (license license:asl2.0)))
- 12/32: gnu: Add java-joda-convert., (continued)
- 12/32: gnu: Add java-joda-convert., julien lepiller, 2018/02/10
- 10/32: gnu: Add java-jboss-interceptors-api-spec., julien lepiller, 2018/02/10
- 13/32: gnu: Add java-joda-time., julien lepiller, 2018/02/10
- 22/32: gnu: Add java-xmlpull2., julien lepiller, 2018/02/10
- 19/32: gnu: Add java-xom., julien lepiller, 2018/02/10
- 25/32: gnu: Add java-kxml2., julien lepiller, 2018/02/10
- 32/32: gnu: Add java-xmlunit-legacy., julien lepiller, 2018/02/10
- 23/32: gnu: Add java-dom4j., julien lepiller, 2018/02/10
- 29/32: gnu: Add java-xstream., julien lepiller, 2018/02/10
- 31/32: gnu: Add java-xmlunit., julien lepiller, 2018/02/10
- 26/32: gnu: Add java-stax.,
julien lepiller <=
- 24/32: gnu: Add java-jaxen., julien lepiller, 2018/02/10
- 20/32: gnu: Add java-xsdlib., julien lepiller, 2018/02/10
- 21/32: gnu: Add java-xpp3., julien lepiller, 2018/02/10
- 17/32: gnu: Add java-xerces., julien lepiller, 2018/02/10