From patchwork Sat Jul 29 14:10:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 52367 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4B18527BBEA; Sat, 29 Jul 2023 17:56:41 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8D01227BBE2 for ; Sat, 29 Jul 2023 17:56:40 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPn9n-0000vT-Ci; Sat, 29 Jul 2023 12:51:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPn9m-0000ua-5W for guix-patches@gnu.org; Sat, 29 Jul 2023 12:51:06 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qPn9l-0000i4-Sx for guix-patches@gnu.org; Sat, 29 Jul 2023 12:51:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qPn9l-0005CK-M4; Sat, 29 Jul 2023 12:51:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64934] [PATCH 04/42] gnu: Add java-eclipse-rdf4j-model-api. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bjoern.hoefling@bjoernhoefling.de, julien@lepiller.eu, guix-patches@gnu.org Resent-Date: Sat, 29 Jul 2023 16:51:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64934 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64934@debbugs.gnu.org Cc: bjoern.hoefling@bjoernhoefling.de, julien@lepiller.eu X-Debbugs-Original-Xcc: bjoern.hoefling@bjoernhoefling.de, julien@lepiller.eu Received: via spool by 64934-submit@debbugs.gnu.org id=B64934.169064945619809 (code B ref 64934); Sat, 29 Jul 2023 16:51:05 +0000 Received: (at 64934) by debbugs.gnu.org; 29 Jul 2023 16:50:56 +0000 Received: from localhost ([127.0.0.1]:48736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPn9a-000595-G7 for submit@debbugs.gnu.org; Sat, 29 Jul 2023 12:50:55 -0400 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]:60597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPn9Q-00056A-GU for 64934@debbugs.gnu.org; Sat, 29 Jul 2023 12:50:45 -0400 Received: by mail-ed1-x541.google.com with SMTP id 4fb4d7f45d1cf-5227799c224so4023080a12.0 for <64934@debbugs.gnu.org>; Sat, 29 Jul 2023 09:50:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690649439; x=1691254239; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :from:to:cc:subject:date:message-id:reply-to; bh=AfFlVGohsYm5N7IzfKDAdEjYreBJ9PCRN8hYfCOEb1U=; b=qxLMjFVJabnlgWhT8Usw8GVeP3+fnh20GBrmLpPReTYC7D9mJ9odBzC+AiEP1bgjz1 ew92fkRRkrFpWOIXNHRr7ZVitED1Qwb5vYREodMTnJiMfdQmqxmiIVbRwfQbv8ee6pik HB9FIMzRXtIXizjaneluoZ5KJ5WjxBtlqMcGctwIUnpT7AiFXLiFslCWCn1MtU+6Hgt6 HQqVKMzwnSwUaelzdt0QrppjcX2pAGZXHErw+ZkAnUN60WnkbT4Y/aNGCcPIHFeN4Z3j 1wrIkyBVHfSnLCaTUgLZebFNMhcBWaE5ylP/aMptMMLr9IxJkWhEg2zrx0TTVYo0LbL9 fPyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690649439; x=1691254239; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AfFlVGohsYm5N7IzfKDAdEjYreBJ9PCRN8hYfCOEb1U=; b=R5wsmMIzb3HQb/eJtRWuZxxwUrl48wnSVS6Xq7/LnaRjfrCWk0KCz8ppGWjXgF4u5R buJLhvkvwVKiTFgg+AmLXT0uQTQwTB+hpjD20k7slGKouyuRIl/te74mYb49kkr0enD9 cHqpByADf3yE5Ym7jIr2AjxqE1o7iTI6n/SOp8CacYSXFOptaFiSMS05pZ05kz6DFAS+ 9PkqCC+s9f+TTeq5kwlcW7Gu2sGz0qF8Entt0IYfWdCwOUgmDTMVObT/XmPi/FL0zsbD FIzByJdMmJJGDBuoBCTOGm8ha6dIxGv1R6nu6KT2Y+7zy7TYnPCGvHDL9BacDWbJY/VK lPzg== X-Gm-Message-State: ABy/qLbIQ2NmLwqG2p7Nf9wGJGpNpXeWsi4i6iU/8zUhkG3KFvhzNxCH ttz9n4UhqE8U1weYT/xEFBDoFcQ6ZK0Mig== X-Google-Smtp-Source: APBJJlFIkGqPqnNoYFF43v/2wwFsXNGdklLk0q3Gna6kjlCAGOWCJSK8WYnQ2N31fRk/EkGdbYWFBA== X-Received: by 2002:a17:906:1050:b0:99b:dea3:8d44 with SMTP id j16-20020a170906105000b0099bdea38d44mr2743549ejj.71.1690649438657; Sat, 29 Jul 2023 09:50:38 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id a24-20020a170906245800b0099bcd1fa5b0sm3473807ejb.192.2023.07.29.09.50.38 for <64934@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jul 2023 09:50:38 -0700 (PDT) Message-ID: In-Reply-To: References: From: Liliana Marie Prikler Date: Sat, 29 Jul 2023 16:10:06 +0200 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Since RDF4J is a large framework with many parts, this patch also prepares some boilerplate code for the other packages. * gnu/packages/java-rdf.scm (%rdf4j-version, %rdf4j-sha256, %rdf4j-source) (rdf4j-common-arguments): New variables. (java-eclipse-rdf4j-model-api): New variable. --- gnu/packages/java-rdf.scm | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/java-rdf.scm b/gnu/packages/java-rdf.scm index 066b383c5a..bf83c9ab5e 100644 --- a/gnu/packages/java-rdf.scm +++ b/gnu/packages/java-rdf.scm @@ -99,3 +99,47 @@ (define-public java-commons-rdf-simple (synopsis "Simple implementation of RDF 1.1 concepts") (description "This package provides a simple implementation of RDF 1.1 concepts in Java."))) + +(define %rdf4j-version "3.7.7") +(define %rdf4j-sha256 + (base32 "1lala4wjl5lbg45jdgd94rfkvdg6r4vq23k3q54bkk9q3w9v2bdx")) +(define %rdf4j-source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/eclipse/rdf4j") + (commit %rdf4j-version))) + (file-name (git-file-name "rdf4j" %rdf4j-version)) + (sha256 %rdf4j-sha256) + (modules '((guix build utils))) + (snippet #~(begin (delete-file-recursively "site"))))) + +(define (rdf4j-common-arguments jar-name directory) + (list #:source-dir "src/main/java" + #:test-dir "src/test/java" + #:tests? #f ; tests require junit 5 + #:jar-name jar-name + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir (lambda _ (chdir #$directory))) + (add-after 'chdir 'fix-pom + (lambda _ + (substitute* "pom.xml" + (("\\$\\{project\\.groupId\\}") "org.eclipse.rdf4j")))) + (replace 'install + (install-from-pom "pom.xml"))))) + +(define-public java-eclipse-rdf4j-model-api + (package + (name "java-eclipse-rdf4j-model-api") + (version %rdf4j-version) + (source %rdf4j-source) + (build-system ant-build-system) + (arguments + (rdf4j-common-arguments "rdf4j-model-api.jar" + "core/model-api")) + (home-page "https://rdf4j.org/") + (synopsis "RDF4J model interfaces") + (description "This package provides interfaces for the RDF data model used +in the RDF4J framework.") + (license license:epl1.0)))