From patchwork Fri Dec 23 01:15:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 45515 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 5101327BBE9; Fri, 23 Dec 2022 01:17:33 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable 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 E9D2427BBEB for ; Fri, 23 Dec 2022 01:17:30 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8WgL-0000g5-BY; Thu, 22 Dec 2022 20:17:05 -0500 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 1p8WgJ-0000ff-36 for guix-patches@gnu.org; Thu, 22 Dec 2022 20:17:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p8WgI-00024t-Re for guix-patches@gnu.org; Thu, 22 Dec 2022 20:17:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p8WgI-0000JA-1X; Thu, 22 Dec 2022 20:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60266] [PATCH] gnu: Add form. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: bavier@posteo.net, guix-patches@gnu.org Resent-Date: Fri, 23 Dec 2022 01:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60266 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60266@debbugs.gnu.org Cc: Antero Mejr , bavier@posteo.net X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: bavier@posteo.net Received: via spool by submit@debbugs.gnu.org id=B.16717581881165 (code B ref -1); Fri, 23 Dec 2022 01:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Dec 2022 01:16:28 +0000 Received: from localhost ([127.0.0.1]:36490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8Wfj-0000Ij-PN for submit@debbugs.gnu.org; Thu, 22 Dec 2022 20:16:28 -0500 Received: from lists.gnu.org ([209.51.188.17]:35940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8Wfh-0000Ia-VF for submit@debbugs.gnu.org; Thu, 22 Dec 2022 20:16:26 -0500 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 1p8Wfh-0000cw-PF for guix-patches@gnu.org; Thu, 22 Dec 2022 20:16:25 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1p8Wff-00015L-3L for guix-patches@gnu.org; Thu, 22 Dec 2022 20:16:25 -0500 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4NdTlh0Z4rz9sQq for ; Fri, 23 Dec 2022 02:16:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1671758176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7dNNnZQoyd5DazpTDs7ZW7hpYBqIKyMSO6UhI88V0+U=; b=DBR+W5dDJr5gW32jGh5UoFBwKRsfz6sfKp/3UJxQVyDXwSEAjjA0a9gfv5ZrIcMntb9sas +Yw85qd4WevQ4bYbRkfRbRdicsRHhHvrVdBL8GAffo9vK1UG8Wt5fYKNAQ3l2ubUyGVXtx 3TArtsjsAcYX6qrM1+mjzR56PWd/hhYUPY6inbJa0hesCEtRHB1NEPwJ9f2RE3CbXUY/Ha yG9rEUVTSi323G+0QQtJBhWY5ut0/7uS0ykCHQNP0cWGCCRSfpd8pRNmnkvHVJOKO7nkaR ElO3IwIhkctzJyJvZhD/hSMLYUieTH33fA26PlG7eM2ChIcBM36b1x2X4CtBsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1671758174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7dNNnZQoyd5DazpTDs7ZW7hpYBqIKyMSO6UhI88V0+U=; b=D6oZU5oar21fJQFra4GVHhaK01ipBGw/TmZZ0kjI9DiApAhborTAoaAo8pFtqGXDeIM5Dq peNoVnyhn+PsTekkNfDH18g28fk91lScq8pEjFDys0uprlQzYBjz/SHvnut8+0eBRFrqib uFEy/Enoe6BPQ3p8HYG6F5VIyuBf9EX/1u958oJXK1ydX93UYN+mA7F3x9qhbyt3Ble9oG aUJuQk19qPWPv0QvtQHaygpTnlJ1iUv3k6rsMkV2xIrOzSqFDtFehqN58ZskQ7lJKVnnUS /9F4KWXFBRcux0d79iKUnY6bTHTKlWC8Tvb2qcFesuihCQf2XcnnShJm+K1Hxg== Date: Fri, 23 Dec 2022 01:15:51 +0000 Message-Id: <20221223011551.32708-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-META: ir4kdnhecjowj4ht3hy9rdauckbtsubw X-MBO-RS-ID: 88dfc6705fa8a97f65d Received-SPF: pass client-ip=80.241.56.171; envelope-from=antero@mailbox.org; helo=mout-p-201.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr 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 (form): New variable. --- x86_64 only due to test failures on other platforms. Developers say other platforms are not "tier 1" supported: https://github.com/vermaseren/form/issues/426 gnu/packages/maths.scm | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 050450e12c..08ddd2ecb4 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -8161,3 +8161,58 @@ (define-public optizelle provided for applications written in C++ and Python. Parallel computation is supported via MPI.") (license license:bsd-2)))) + +(define-public form + (let ((commit "28e15eaf0856a0a012795298d6a4b570e764a8b1") + (revision "0")) + (package + (name "form") + (version (git-version "4.3.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vermaseren/form") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "04i932lqwng2hmknvai1gmmb5j17rwrhlj11nr96w9bmj4sq736x")) + (modules '((guix build utils))) + (snippet #~(substitute* "check/examples.frm" + (("#pend_if valgrind\\?") + "#pend_if 0"))))) + (build-system gnu-build-system) + (native-inputs (list autoconf automake doxygen ruby)) + (inputs (list bash openmpi)) + (arguments + (list #:configure-flags #~(list "--enable-parform") + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'fix-hardcoded-path + (lambda _ + (substitute* "sources/extcmd.c" + (("/bin/sh") + (string-append #$(this-package-input "bash") + "/bin/sh"))))) + (add-after 'build 'build-doxygen + (lambda _ + (with-directory-excursion "doc/doxygen" + (invoke "make" "html")))) + (add-before 'check 'mpi-setup + #$%openmpi-setup) + (add-after 'install 'install-docs + (lambda _ + (let ((doc (string-append #$output "/share/doc/" + #$name "-" #$version + "/html"))) + (mkdir-p doc) + (copy-recursively "doc/doxygen/html" doc))))))) + (home-page "https://www.nikhef.nl/~form/maindir/maindir.html") + (synopsis "Symbolic manipulation system for very big expressions") + (description + "FORM is a symbolic manipulation system. It reads symbolic expressions +from files and executes symbolic/algebraic transformations upon them. The +answers are returned in a textual mathematical representation. The size of the +considered expressions in FORM is only limited by the available disk space and +not by the available RAM.") + (supported-systems '("x86_64-linux")) + (license license:gpl3+))))