From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGTu9-0007Z3-HE for guix-patches@gnu.org; Sun, 19 Nov 2017 13:01:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGTu4-0003qn-5M for guix-patches@gnu.org; Sun, 19 Nov 2017 13:01:15 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:39209) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGTu4-0003qi-24 for guix-patches@gnu.org; Sun, 19 Nov 2017 13:01:12 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eGTu3-0006QU-Pt for guix-patches@gnu.org; Sun, 19 Nov 2017 13:01:11 -0500 Subject: [bug#29359] [PATCH 25/31] gnu: Add java-stax. Resent-Message-ID: From: Julien Lepiller Date: Sun, 19 Nov 2017 18:57:59 +0100 Message-Id: <20171119175805.902-25-julien@lepiller.eu> In-Reply-To: <20171119175805.902-1-julien@lepiller.eu> References: <20171119175805.902-1-julien@lepiller.eu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29359@debbugs.gnu.org * gnu/packages/java.scm (java-stax): New variable. --- gnu/packages/java.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index a736eb197..73f04d807 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -8352,3 +8352,34 @@ efficiently all input elements (for example in SOAP processors).") (description "kXML is a small XML pull parser, specially designed for constrained environments such as Applets, Personal Java or MIDP devices.") (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 "The StAX Java API for XML processing is designed for parsing +XML streams, just like the SAX API's.") + (license license:asl2.0))) -- 2.15.0