gnu: Add java-commons-rdf-simple.

* gnu/packages/java-rdf.scm (java-commons-rdf-simple): New variable.
This commit is contained in:
Liliana Marie Prikler 2023-07-29 16:03:46 +02:00
parent fd044f86a0
commit 5c1212919f
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -70,3 +70,32 @@ (define-public java-commons-rdf-api-tests
(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.")))