(address . guix-patches@gnu.org)(name . Antero Mejr)(address . antero@mailbox.org)
* 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:
gnu/packages/maths.scm | 55 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Toggle diff (65 lines)
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+))))
--
2.38.1