gnu: pari-gp: Add seadata-small package.

* gnu/packages/algebra.scm (pari-seadata-small): New variable.
  (pari-gp)[phases]{install-galdata}: Rename to...
  {install-data}: ...this and also install the pari-seadata-small data.

Change-Id: I348090dfce5ef52f132585cff3542e585c2309e3
This commit is contained in:
Andreas Enge 2025-02-06 17:59:30 +01:00
parent a62ee289a5
commit 70231fe775
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -240,6 +240,15 @@ the real span of the lattice.")
(base32 (base32
"1pch6bk76f1i6cwwgm7hhxi5h71m52lqayp4mnyj0jmjk406bhdp")))) "1pch6bk76f1i6cwwgm7hhxi5h71m52lqayp4mnyj0jmjk406bhdp"))))
(define pari-seadata-small
;; version from 2009-06-18
(origin
(method url-fetch)
(uri "https://pari.math.u-bordeaux.fr/pub/pari/packages/seadata-small.tgz")
(sha256
(base32
"13qafribxwkz8h3haa0cng7arz0kh7398br4y7vqs9ib8w9yjnxz"))))
(define-public pari-gp (define-public pari-gp
(package (package
(name "pari-gp") (name "pari-gp")
@ -265,9 +274,10 @@ the real span of the lattice.")
(invoke "./Configure" (invoke "./Configure"
"--mt=pthread" "--mt=pthread"
(string-append "--prefix=" #$output)))) (string-append "--prefix=" #$output))))
(add-after 'install 'install-galdata (add-after 'install 'install-data
(lambda _ (lambda _
(invoke "tar" "-xvf" #$pari-galdata) (invoke "tar" "-xvf" #$pari-galdata)
(invoke "tar" "-xvf" #$pari-seadata-small)
(copy-recursively "data/" (string-append (copy-recursively "data/" (string-append
#$output #$output
"/share/pari"))))))) "/share/pari")))))))