summary refs log tree commit diff
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2023-07-29 16:03:46 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-08-05 13:39:44 +0200
commit5c1212919f9f76678fae7226f8f81b6ca01ba3a2 (patch)
tree055ff6deecbd9ee4a64741feea9d48ef1187c7a6
parentfd044f86a0329a2cdbc744f75f81cfa7cf4b245b (diff)
downloadguix-5c1212919f9f76678fae7226f8f81b6ca01ba3a2.tar.gz
gnu: Add java-commons-rdf-simple.
* gnu/packages/java-rdf.scm (java-commons-rdf-simple): New variable.
-rw-r--r--gnu/packages/java-rdf.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/java-rdf.scm b/gnu/packages/java-rdf.scm
index 1f4b679791..066b383c5a 100644
--- a/gnu/packages/java-rdf.scm
+++ b/gnu/packages/java-rdf.scm
@@ -70,3 +70,32 @@
     (native-inputs (list unzip))
     (description "This package provides common test classes for packages
 implementing java-commons-rdf-api.")))
+
+(define-public java-commons-rdf-simple
+  (package
+    (inherit java-commons-rdf-api)
+    (name "java-commons-rdf-simple")
+    (arguments
+     (list #:jar-name "commons-rdf-api.jar"
+           #:source-dir "src/main/java"
+           #:test-dir "src/test"
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'chdir
+                 (lambda _ (chdir "commons-rdf-simple")))
+               (add-after 'chdir 'delete-failing-tests
+                 (lambda _
+                   (with-directory-excursion "src/test/java/org/apache/commons/"
+                     (delete-file "rdf/simple/SimpleServiceLoaderTest.java"))))
+               (add-before 'install 'fix-pom
+                 (lambda _
+                   (substitute* "pom.xml"
+                     (("\\$\\{project\\.parent\\.groupId\\}")
+                      "org.apache.commons"))))
+               (replace 'install
+                 (install-from-pom "pom.xml")))))
+    (propagated-inputs (list java-commons-rdf-api))
+    (native-inputs (list java-commons-rdf-api-tests unzip))
+    (synopsis "Simple implementation of RDF 1.1 concepts")
+    (description "This package provides a simple implementation of RDF 1.1
+concepts in Java.")))