From patchwork Thu Apr 25 13:12:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Pierre De Jesus Diaz X-Patchwork-Id: 63353 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 C9DEE27BBE9; Thu, 25 Apr 2024 14:14:37 +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=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no 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 BCD6C27BBE2 for ; Thu, 25 Apr 2024 14:14:36 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzyvi-000121-DU; Thu, 25 Apr 2024 09:14:26 -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 1rzyvb-0000wA-8f for guix-patches@gnu.org; Thu, 25 Apr 2024 09:14:22 -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 1rzyva-0005FL-Vg for guix-patches@gnu.org; Thu, 25 Apr 2024 09:14:19 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rzyvr-0003jQ-6B; Thu, 25 Apr 2024 09:14:35 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70567] [PATCH 4/7] gnu: why3: Use new style. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, bavier@posteo.net, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Thu, 25 Apr 2024 13:14:34 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70567 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70567@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ , Andreas Enge , Eric Bavier , Sharlatan Hellseher X-Debbugs-Original-Xcc: Andreas Enge , Eric Bavier , Sharlatan Hellseher Received: via spool by 70567-submit@debbugs.gnu.org id=B70567.171405083213816 (code B ref 70567); Thu, 25 Apr 2024 13:14:34 +0000 Received: (at 70567) by debbugs.gnu.org; 25 Apr 2024 13:13:52 +0000 Received: from localhost ([127.0.0.1]:60703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rzyv1-0003ZE-Ne for submit@debbugs.gnu.org; Thu, 25 Apr 2024 09:13:50 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:46221) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rzyu4-0003NV-9d for 70567@debbugs.gnu.org; Thu, 25 Apr 2024 09:12:58 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-41b5dd5af48so2721865e9.0 for <70567@debbugs.gnu.org>; Thu, 25 Apr 2024 06:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundation.xyz; s=google; t=1714050740; x=1714655540; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=W1pS6DMfjkVKWFa7YDYpgDJVL4bZTh9uTIS4Z+IShdM=; b=U/JYcbC+/yYOsgItILMQOW3XPJwvC8aGHOFZ4qNM8WTRmTalvHvAnWrBsoKpqkqAvW axm654tU0WIn/PpKbpidbn5+QrcsTH2BUr3Pb07tj7GqnBL5O+64eWSgNnxIRhH8mPrJ SBfQVji+22GEzvoRLGJHJu5QUHsl/qronDXOX1CPsuhpalqDZ4dkjoBzHa/FLQ0rKqJx SBE2QqFT1HjSmX2hRiD+EtwD5az5WCS8LJ4ch19RuOPbYsuQS9z3ICOPBp+oUmABnQV1 qbDWI9MGUcOwp18UFNre+G9KQP+xO6yf1KgBjX8h9wKJ0LsAMMp2yvvgfpxgutuSbiGR 27zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714050740; x=1714655540; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W1pS6DMfjkVKWFa7YDYpgDJVL4bZTh9uTIS4Z+IShdM=; b=WOtsviMNCbw4gnEnLwvRSd+zrEzedckiAA8JEUyQr+8ok8a/4hOJml01diSpMblIit 1ddEYJnkhTnaG1Li0SlCLE1zAYaVIVLL9FaGPEnJlAYvkzgnSnnEe0pmetB+dD7rdN+J AHJ9qZCDQcHV7KvGIIxrvS0en/T3cjFXXa8pjhtb03tMyTzYTZJa5VN8IttMNWsPgBp0 z+C0CejwTN0oRkcoWbnyHKl/UVObnM7XFJ6BWM0thfTYFY4xjENtcqaf6DCboycneLx5 MSlwPioRvxcY0onPounj0IwrXapeyJa/f37KH4nivY1Epgwrp4ciLUP4kTmIa/qLkk38 ePow== X-Gm-Message-State: AOJu0YyKS3P1+NClNB81CR3OWC7cRbsB+FRdGiT0RQpMgSq2frud1PoV CTyaoAvTCp9wuzQlhMEX0FY21ctHMN7VlzVasA5gkq7Yrkh0EPvnDr2TBxN5qakmKJDZ7S8Fi4g b X-Google-Smtp-Source: AGHT+IFasPPkGwqhZlLEF/5YaZEb4vQTz0l/7Q1hvjCKe+C+si5hcZgcqJtLoBZ/lK2MPnVGMECOnQ== X-Received: by 2002:adf:ce8c:0:b0:34a:34aa:19a7 with SMTP id r12-20020adfce8c000000b0034a34aa19a7mr3599132wrn.50.1714050740535; Thu, 25 Apr 2024 06:12:20 -0700 (PDT) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id b4-20020a5d6344000000b00347363b77dasm19722210wrw.33.2024.04.25.06.12.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 06:12:20 -0700 (PDT) From: Jean-Pierre De Jesus DIAZ Date: Thu, 25 Apr 2024 15:12:08 +0200 Message-ID: <8d9581a5f8063da2f40c4d9d35529219d3a0ee6b.1714050321.git.jean@foundation.xyz> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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 * gnu/packages/maths.scm (why3): Use new style and move arguments above input fields. Change-Id: Ia9cb04cafe426d7f20c5efb10ca540572dbd3be9 --- gnu/packages/maths.scm | 63 +++++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 5c7f3102f3..57f750accc 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -9400,36 +9400,41 @@ (define-public why3 (base32 "0fq8wg8ji2v2ssz1d681glmk8glps1irnmdlhqfklaggx01hlf4p")))) (build-system ocaml-build-system) - (native-inputs - (list autoconf automake coq ocaml which)) - (propagated-inputs - (list camlzip ocaml-graph ocaml-menhir ocaml-num ocaml-zarith)) - (inputs - (list coq-flocq emacs-minimal zlib)) (arguments - `(#:phases - (modify-phases %standard-phases - (add-before 'configure 'bootstrap - (lambda _ - (invoke "./autogen.sh") - (setenv "CONFIG_SHELL" (which "sh")) - (substitute* "configure" - (("#! /bin/sh") (string-append "#!" (which "sh"))) - ;; find ocaml-num in the correct directory - (("\\$DIR/nums.cma") "$DIR/num.cma") - (("\\$DIR/num.cmi") "$DIR/core/num.cmi")) - #t)) - (add-after 'configure 'fix-makefile - (lambda _ - (substitute* "Makefile" - ;; find ocaml-num in the correct directory - (("site-lib/num") "site-lib")) - #t)) - (add-after 'install 'install-lib - (lambda _ - (invoke "make" "byte") - (invoke "make" "install-lib") - #t))))) + (list #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'bootstrap + (lambda _ + (invoke "./autogen.sh") + (setenv "CONFIG_SHELL" (which "sh")) + (substitute* "configure" + (("#! /bin/sh") (string-append "#!" (which "sh"))) + ;; find ocaml-num in the correct directory + (("\\$DIR/nums.cma") "$DIR/num.cma") + (("\\$DIR/num.cmi") "$DIR/core/num.cmi")))) + (add-after 'configure 'fix-makefile + (lambda _ + (substitute* "Makefile" + ;; find ocaml-num in the correct directory + (("site-lib/num") "site-lib")))) + (add-after 'install 'install-lib + (lambda _ + (invoke "make" "byte") + (invoke "make" "install-lib")))))) + (native-inputs (list autoconf + automake + coq + ocaml + ocaml-findlib + which)) + (propagated-inputs (list camlzip + ocaml-graph + ocaml-menhir + ocaml-num + ocaml-zarith)) + (inputs (list coq-flocq + emacs-minimal + zlib)) (home-page "https://why3.lri.fr") (synopsis "Deductive program verification") (description "Why3 provides a language for specification and programming,