~ruther/guix-local

70231fe7757f839f6ddd58d3c8a522b2e56fefe5 — Andreas Enge 1 year, 3 months ago a62ee28
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
1 files changed, 11 insertions(+), 1 deletions(-)

M gnu/packages/algebra.scm
M gnu/packages/algebra.scm => gnu/packages/algebra.scm +11 -1
@@ 240,6 240,15 @@ the real span of the lattice.")
     (base32
      "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
  (package
    (name "pari-gp")


@@ 265,9 274,10 @@ the real span of the lattice.")
              (invoke "./Configure"
                      "--mt=pthread"
                      (string-append "--prefix=" #$output))))
          (add-after 'install 'install-galdata
          (add-after 'install 'install-data
            (lambda _
              (invoke "tar" "-xvf" #$pari-galdata)
              (invoke "tar" "-xvf" #$pari-seadata-small)
              (copy-recursively "data/" (string-append
                                         #$output
                                         "/share/pari")))))))