summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2023-07-29 16:56:04 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-08-05 13:39:45 +0200
commit56202bf1d4e20c6a84fb1ea68a00bc8a6ba8d5d0 (patch)
tree35625d49bc8acd4af5fefdc134daa10bcd6f0f9a
parentfb64a1bd58481ba7e282b59fae2d0d75371cf34b (diff)
gnu: Add java-jsonld-java.
* gnu/packages/java-rdf.scm (java-jsonld-java): New variable.
-rw-r--r--gnu/packages/java-rdf.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/java-rdf.scm b/gnu/packages/java-rdf.scm
index 42f9d01127..dc662c192f 100644
--- a/gnu/packages/java-rdf.scm
+++ b/gnu/packages/java-rdf.scm
@@ -27,6 +27,47 @@
#:use-module (gnu packages compression)
#:use-module (gnu packages java))
+(define-public java-jsonld-java
+ (package
+ (name "java-jsonld-java")
+ (version "0.13.4")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jsonld-java/jsonld-java")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0d113szja4p16k2n2way8mmdj1kxzanjcnnsdan65iw27qag7dr0"))))
+ (build-system ant-build-system)
+ (arguments
+ (list #:tests? #f ; no tests included
+ #:jar-name "jsonld-java.jar"
+ #:source-dir "core/src/main/java"
+ #:test-dir "core/src/test"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'install 'generate-pom.xml
+ (generate-pom.xml "guix-pom.xml"
+ "com.github.jsonld-java"
+ "jsonld-java" #$version))
+ (replace 'install
+ (install-from-pom "guix-pom.xml")))))
+ (inputs (list java-slf4j-api java-guava
+ java-commons-io
+ java-httpcomponents-httpcore
+ java-httpcomponents-httpcore-osgi
+ java-httpcomponents-httpclient
+ java-httpcomponents-httpclient-cache
+ java-httpcomponents-httpclient-osgi
+ java-fasterxml-jackson-core
+ java-fasterxml-jackson-databind))
+ (home-page "https://github.com/jsonld-java/jsonld-java")
+ (synopsis "Java implementation of JSON-LD")
+ (description "This package provides a Java implementation of JSON-LD 1.0.")
+ (license license:bsd-3)))
+
(define-public java-commons-rdf-api
(package
(name "java-commons-rdf-api")