From patchwork Thu Mar 16 01:07:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 48040 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 B142116E0D; Thu, 16 Mar 2023 01:09:32 +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=-1.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 58C4216D8D for ; Thu, 16 Mar 2023 01:09:30 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcc76-000187-T7; Wed, 15 Mar 2023 21:09:04 -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 1pcc75-00017o-7p for guix-patches@gnu.org; Wed, 15 Mar 2023 21:09:03 -0400 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 1pcc74-0006Pw-T9 for guix-patches@gnu.org; Wed, 15 Mar 2023 21:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pcc73-0008U5-Su; Wed, 15 Mar 2023 21:09:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#60266] [PATCH v2 1/2] gnu: Add form. References: <20221223011551.32708-1-antero@mailbox.org> In-Reply-To: <20221223011551.32708-1-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: bavier@posteo.net, guix-patches@gnu.org Resent-Date: Thu, 16 Mar 2023 01:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60266 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: 60266@debbugs.gnu.org Cc: bavier@posteo.net X-Debbugs-Original-Xcc: bavier@posteo.net Received: via spool by 60266-submit@debbugs.gnu.org id=B60266.167892888232526 (code B ref 60266); Thu, 16 Mar 2023 01:09:01 +0000 Received: (at 60266) by debbugs.gnu.org; 16 Mar 2023 01:08:02 +0000 Received: from localhost ([127.0.0.1]:40811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcc66-0008SX-Cc for submit@debbugs.gnu.org; Wed, 15 Mar 2023 21:08:02 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:44476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcc64-0008Ry-Ic for 60266@debbugs.gnu.org; Wed, 15 Mar 2023 21:08:01 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::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-103.mailbox.org (Postfix) with ESMTPS id 4PcTdh0TkHz9sWV for <60266@debbugs.gnu.org>; Thu, 16 Mar 2023 02:07:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1678928872; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3189mhTCMv0cv2yXSAb+j2eK5KLYM+uQsiA46VKZYVI=; b=RCJkF83IWV7Yv9a1EOzHSynlL/7NN/3lyPTdURTtbj+eWn92QpmTLSkBj6FFNQRe6qnrPi 6rdTJjaAMm5q2jrMVC8nKon/Lzr1I7QG4enUX6lkc7vtB2h2n5/s6odYffwa0EgNgDCC6P OMDz8SFZHbZStLj30LODWZspnlip3dygKig8xpxV4hHIYBZnAqgA0Q5/AfkPjOzLgy5HI5 PkukcL3yXTi7BSlZzD8jZ1caiYh9UJuWlYRyQEzXhT/IUJWT/frNvF4lGH6Xm3aKm7vCz9 Hh1kswviKNLxPrtsfjI3bzrozwylxRSE4SxOTlEWlQ6XAN93GL3LOjkusjIOSw== Date: Thu, 16 Mar 2023 01:07:44 +0000 Message-Id: <20230316010745.20987-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-META: 18mr8tdy4b44jro6htd8o3c6jb1ywhr4 X-MBO-RS-ID: aca60c8f4d8cdb82074 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/algebra.scm (form): New variable. --- Changes from v1: moved to algebra.scm split out parform (mpi version) into separate package removed --march=native added comments explaining some package fields changed home-page gnu/packages/algebra.scm | 61 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index 5842a166ad..5bce35a229 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -34,6 +34,7 @@ (define-module (gnu packages algebra) #:use-module (gnu packages) #:use-module (gnu packages autotools) + #:use-module (gnu packages bash) #:use-module (gnu packages bison) #:use-module (gnu packages boost) #:use-module (gnu packages check) @@ -58,6 +59,7 @@ (define-module (gnu packages algebra) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) + #:use-module (gnu packages ruby) #:use-module (gnu packages shells) #:use-module (gnu packages tex) #:use-module (gnu packages texinfo) @@ -1818,3 +1820,62 @@ (define-public sollya it offers a certified infinity norm, an automatic polynomial implementer, and a fast Remez algorithm.") (license license:cecill-c))) + +(define-public form + ;; using this commit as it removes some invalid/ambiguous license info + (let ((commit "e7c52d3b07abe21f21718f5e70ee138e856f15ac") + (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 + "15pjpn5s8d3sva18syhyymh5v1dijchk0xkf6d0m7cl2sj3qxxxq")) + (modules '((guix build utils))) + ;; skip test that causes memory leak and fails + (snippet #~(substitute* "check/examples.frm" + (("#pend_if valgrind\\?") + "#pend_if 0"))))) + (build-system gnu-build-system) + (arguments + (list #:configure-flags #~'("--enable-native=no") + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'fix-hardcoded-path + (lambda _ + (substitute* "sources/extcmd.c" + (("/bin/sh") + (string-append + #$(this-package-input "bash-minimal") + "/bin/sh"))))) + (add-after 'build 'build-doxygen + (lambda _ + (with-directory-excursion "doc/doxygen" + (invoke "make" "html")))) + (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))))))) + (native-inputs (list autoconf automake doxygen ruby)) + (inputs (list bash-minimal)) + (home-page "https://www.nikhef.nl/~form/") + (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.") + ;; 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 + (supported-systems '("x86_64-linux")) + (license license:gpl3+))))