From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id ON4mO8hExWQvrQAASxT56A (envelope-from ) for ; Sat, 29 Jul 2023 18:56:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sNs4O8hExWRqZwAA9RJhRA (envelope-from ) for ; Sat, 29 Jul 2023 18:56:40 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 973B84D189 for ; Sat, 29 Jul 2023 18:56:40 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=qxLMjFVJ; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690649800; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AfFlVGohsYm5N7IzfKDAdEjYreBJ9PCRN8hYfCOEb1U=; b=GUVUHiCEcduzR3jjrSzjVitrQ8Tb2KMWi3jb3iV3LiKdVmk0GBgufBjlCU+/YvASl74ABr UbvIRWV7MfXi+1m/FXtR9oi3D3izREvRANdUIy8kDHSTIGjCl3ahaAhUqQX2eAw8CED1y2 PPa/c8R7Nx1T21SLcoC7jwDYlPyVKZQRYQjNrLFIkEvkwPkjriQdMfGVJQ6ZZvwu5xSBMi 5Dpn71iC4yv7vebpCR7R1CATv/Rm6UEWdAcINFiEf1/M2E1zlBAowsdb1CvuuDTuNeMxyd at4PReD42kbABFL+0LpA1LmM2+SeRgolR+x9xOJ0fNhaVcz499Lh1+llP05vSQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690649800; a=rsa-sha256; cv=none; b=G2smTKftFlUKyxM3pJJddJPoKNpLjbaOMzddoOve2V8xDy7qi8OCp56YP/QUf3BVxsco2C m3mDZv3MaSCBA9PSsQGjqRWCifSsBRu2X0A9mpAFB2kEmgtvaql+2+9+SHhRs1z5CPCfk3 l4hT6QQck3BKH+oU/mHQeepCwTbxI6HZLDOOEH/bC2wwxtiw79J3vNlAxDp+7XUVgExdYW uVxv5CQyPSseNi1fPzORe67wlz6nMJUCO9FdoaX15lnG9zXdVc1PXt/S9nMFMSxdcCE2Wq uId/Nmg1pS5WQuN2vjYQ+GWth86yeQpGuHVanmwvuRu9DGZ6/8VhKNskYhdqDg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=qxLMjFVJ; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.55 X-Spam-Score: -3.55 X-Migadu-Queue-Id: 973B84D189 X-Migadu-Scanner: mx1.migadu.com X-TUID: TtkpaGU0vdTn 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))) -- 2.41.0