GNU bug report logs -
#75032
[PATCH 00/13] Add more SageMath packages
Previous Next
Reported by: Vinicius Monego <monego <at> posteo.net>
Date: Sun, 22 Dec 2024 17:26:01 UTC
Severity: normal
Tags: patch
Done: dannym <at> friendly-machines.com
Bug is archived. No further changes may be made.
Full log
Message #41 received at 75032 <at> debbugs.gnu.org (full text, mbox):
From: vicvbcun <guix <at> ikherbers.com>
* gnu/packages/algebra.scm (pari-galdata): New variable.
(pari-gp)[arguments]<#:phases>: Add phase "install-galdata".
Change-Id: Iaec77b0ab60d8ff59c8a36e7e0a7878b58742751
Co-authored by: Vinicius Monego <monego <at> posteo.net>
Change-Id: Id74aa6ce315df48a2d917baf1a436ba54b1b5185
---
gnu/packages/algebra.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index 32834f1c15..5da77b6318 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -229,6 +229,16 @@ (define-public python-fpylll
(description "fpylll is a Python wrapper for fplll.")
(license license:gpl2+)))
+(define pari-galdata
+ ;; version from 2008-04-12
+ (origin
+ (method url-fetch)
+ ;; no versioning, old files seem to be moved to `old/...' on update
+ (uri "https://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz")
+ (sha256
+ (base32
+ "1pch6bk76f1i6cwwgm7hhxi5h71m52lqayp4mnyj0jmjk406bhdp"))))
+
(define-public pari-gp
(package
(name "pari-gp")
@@ -253,7 +263,13 @@ (define-public pari-gp
(lambda _
(invoke "./Configure"
"--mt=pthread"
- (string-append "--prefix=" #$output)))))))
+ (string-append "--prefix=" #$output))))
+ (add-after 'install 'install-galdata
+ (lambda _
+ (invoke "tar" "-xvf" #$pari-galdata)
+ (copy-recursively "data/" (string-append
+ #$output
+ "/share/pari")))))))
(synopsis "PARI/GP, a computer algebra system for number theory")
(description
"PARI/GP is a widely used computer algebra system designed for fast
--
2.39.5
This bug report was last modified 143 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.