From 56202bf1d4e20c6a84fb1ea68a00bc8a6ba8d5d0 Mon Sep 17 00:00:00 2001 From: Liliana Marie Prikler Date: Sat, 29 Jul 2023 16:56:04 +0200 Subject: gnu: Add java-jsonld-java. * gnu/packages/java-rdf.scm (java-jsonld-java): New variable. --- gnu/packages/java-rdf.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'gnu/packages') 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") -- cgit v1.2.3