all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 75032@debbugs.gnu.org
Cc: vicvbcun <guix@ikherbers.com>
Subject: [bug#75032] [PATCH 12/13] gnu: pari-gp: Install galdata.
Date: Sun, 22 Dec 2024 17:26:56 +0000	[thread overview]
Message-ID: <72ca572d7c15f31fef544aa83399c3dcdd50bc67.1734887844.git.monego@posteo.net> (raw)
In-Reply-To: <cover.1734887844.git.monego@posteo.net>

From: vicvbcun <guix@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@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





  parent reply	other threads:[~2024-12-22 17:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-22 17:25 [bug#75032] [PATCH 00/13] Add more SageMath packages Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 01/13] gnu: Add sagemath-data-conway-polynomials Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 02/13] gnu: Add sagemath-data-polytopes-db Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 03/13] gnu: Add sagemath-data-graphs Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 04/13] gnu: Add sagemath-data-combinatorial-designs Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 05/13] gnu: Add python-pytz-deprecation-shim Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 06/13] gnu: Add python-lrcalc Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 07/13] gnu: Add sympow Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 08/13] gnu: Add gfan Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 09/13] gnu: Add palp Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 10/13] gnu: Add tachyon Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 11/13] gnu: pari-gp: Use G-Expressions Vinicius Monego
2024-12-22 17:26 ` Vinicius Monego [this message]
2024-12-22 17:26 ` [bug#75032] [PATCH 13/13] gnu: Add python-sphinx-inline-tabs Vinicius Monego
2025-01-01 12:16 ` bug#75032: merged sagemath dependencies dannym

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=72ca572d7c15f31fef544aa83399c3dcdd50bc67.1734887844.git.monego@posteo.net \
    --to=monego@posteo.net \
    --cc=75032@debbugs.gnu.org \
    --cc=guix@ikherbers.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.