From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzqSi-0005PM-0U for guix-patches@gnu.org; Wed, 04 Oct 2017 16:40:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzqSg-0004tu-Oa for guix-patches@gnu.org; Wed, 04 Oct 2017 16:40:11 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:40693) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzqSg-0004tO-JE for guix-patches@gnu.org; Wed, 04 Oct 2017 16:40:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzqSg-0006Eu-Ax for guix-patches@gnu.org; Wed, 04 Oct 2017 16:40:10 -0400 Subject: [bug#28707] [PATCH 22/23] gnu: Add java-woodstox-core. Resent-Message-ID: From: julien@lepiller.eu Date: Wed, 4 Oct 2017 22:37:34 +0200 Message-Id: <20171004203735.21155-22-julien@lepiller.eu> In-Reply-To: <20171004203735.21155-1-julien@lepiller.eu> References: <20171004223317.2e824152@lepiller.eu> <20171004203735.21155-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: 28707@debbugs.gnu.org From: Julien Lepiller * gnu/packages/java.scm (java-woodstox-core): New variable. --- gnu/packages/java.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index f72dc7291..85dce5a6d 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -5890,3 +5890,41 @@ abstractions.") significant new functionalities, such as full-featured bi-direction validation interface and high-performance Typed Access API.") (license license:bsd-2))) + +(define-public java-woodstox-core + (package + (name "java-woodstox-core") + (version "5.0.3") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/FasterXML/woodstox/archive/" + "woodstox-core-" version ".tar.gz")) + (sha256 + (base32 + "1i7pdgb8jbw6gdy5kmm0l6rz109n2ns92pqalpyp24vb8vlvdfd4")))) + (build-system ant-build-system) + (arguments + `(#:jar-name "woodstox.jar" + #:test-exclude + (list "**/Base*.java" "failing/**") + #:phases + (modify-phases %standard-phases + (add-before 'build 'remove-msv-dep + (lambda _ + ;; we don't need osgi, and it depends on msv + (delete-file-recursively "src/main/java/com/ctc/wstx/osgi") + ;; msv's latest release is from 2011 and we don't need it + (delete-file-recursively "src/main/java/com/ctc/wstx/msv") + (delete-file-recursively "src/test/java/wstxtest/osgi") + (delete-file-recursively "src/test/java/wstxtest/msv"))) + (add-before 'build 'copy-resources + (lambda _ + (copy-recursively "src/main/resources" "build/classes")))))) + (inputs + `(("stax2" ,java-stax2-api))) + (native-inputs + `(("junit" ,java-junit))) + (home-page "https://github.com/FasterXML/woodstox") + (synopsis "Stax XML API implementation") + (description "Woodstox is a stax XML API implementation.") + (license license:asl2.0))) -- 2.14.2