guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#29359] [PATCH 21/31] gnu: Add java-xmlpull2.


From: Julien Lepiller
Subject: [bug#29359] [PATCH 21/31] gnu: Add java-xmlpull2.
Date: Sun, 19 Nov 2017 18:57:55 +0100

* gnu/packages/java.scm (java-xmlpull2): 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 71e04d47d..2c535ceef 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -8206,3 +8206,41 @@ validator.")
 parser and should be used when there is a need to process quickly and
 efficiently all input elements (for example in SOAP processors).")
     (license license:public-domain)))
+
+(define-public java-xmlpull2
+  (package
+    (name "java-xmlpull2")
+    (version "2.1.10")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://www.extreme.indiana.edu/xgws/xsoap/";
+                                  "PullParser/PullParser" version ".tgz"))
+              (sha256
+               (base32
+                "1kw9nhyqb7bzhn2zjbwlpi5vp5rzj89amzi3hadw2acyh2dmd0md"))
+              (modules '((guix build utils)))
+              (snippet
+                '(begin ;; Delete bundled jar archives.
+                   (for-each delete-file (find-files "." ".*\\.jar"))
+                   #t))))
+    (build-system ant-build-system)
+    (arguments
+     `(#:tests? #f; no tests
+       #:build-target "impl"
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (string-append (assoc-ref outputs "out") 
"/share/java")))
+               (mkdir-p out)
+               (copy-file "build/lib/PullParser-standard-2.1.10.jar"
+                          (string-append out "/xmlpull2-standard.jar"))
+               (copy-file "build/lib/PullParser-2.1.10.jar"
+                          (string-append out "/xmlpull2.jar")))
+             #t)))))
+    (home-page "http://www.extreme.indiana.edu/xgws/xsoap/xpp/";)
+    (synopsis "Streaming pull XML parser")
+    (description "Xml Pull Parser (in short XPP) is a streaming pull XML
+parser and should be used when there is a need to process quickly and
+efficiently all input elements (for example in SOAP processors).")
+    (license license:public-domain)))
-- 
2.15.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]