From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: [PATCH] distro: Add PARI/GP Date: Sun, 13 Jan 2013 19:16:13 +0100 Message-ID: <201301131916.13064.andreas@enge.fr> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_tnv8Q1RudBmOtkL" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuS6c-0006TZ-Ik for bug-guix@gnu.org; Sun, 13 Jan 2013 13:16:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuS6V-0000hl-93 for bug-guix@gnu.org; Sun, 13 Jan 2013 13:16:26 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:59296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuS6U-0000hb-VD for bug-guix@gnu.org; Sun, 13 Jan 2013 13:16:19 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: bug-guix@gnu.org --Boundary-00=_tnv8Q1RudBmOtkL Content-Type: multipart/alternative; boundary="Boundary-01=_tnv8QLu1mb8kZTm" Content-Transfer-Encoding: 7bit --Boundary-01=_tnv8QLu1mb8kZTm Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Patch attached. Andreas --Boundary-01=_tnv8QLu1mb8kZTm Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit

Patch attached.

 

Andreas

 

--Boundary-01=_tnv8QLu1mb8kZTm-- --Boundary-00=_tnv8Q1RudBmOtkL Content-Type: text/x-patch; charset="UTF-8"; name="0001-distro-Add-PARI-GP.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-distro-Add-PARI-GP.patch" =46rom 1eee03a68efc9891e48777f67e5147fd967b10d9 Mon Sep 17 00:00:00 2001 =46rom: Andreas Enge Date: Sun, 13 Jan 2013 14:27:16 +0100 Subject: [PATCH] distro: Add PARI/GP * distro/packages/algebra.scm (pari-gp): New variable. =2D-- distro/packages/algebra.scm | 53 +++++++++++++++++++++++++++++++++++++++= ++-- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/distro/packages/algebra.scm b/distro/packages/algebra.scm index 0cbc5c4..dd89ec4 100644 =2D-- a/distro/packages/algebra.scm +++ b/distro/packages/algebra.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU =2D;;; Copyright =C2=A9 2012 Andreas Enge +;;; Copyright =C2=A9 2012, 2013 Andreas Enge ;;; Copyright =C2=A9 2013 Ludovic Court=C3=A8s ;;; ;;; This file is part of GNU Guix. @@ -20,6 +20,8 @@ (define-module (distro packages algebra) #:use-module (distro) #:use-module (distro packages multiprecision) + #:use-module (distro packages perl) + #:use-module (distro packages readline) #:use-module (guix licenses) #:use-module (guix packages) #:use-module (guix download) @@ -54,7 +56,6 @@ multiplication routines such as Toom=E2=80=93Cook and the= FFT. ") (license lgpl2.1+) (home-page "http://mpfrcx.multiprecision.org/"))) =20 =2D (define-public fplll (package (name "fplll") @@ -101,3 +102,51 @@ as random number generators, special functions and lea= st-squares fitting. There are over 1000 functions in total with an extensive test suite.") (license gpl3+))) + +(define-public pari-gp + (package + (name "pari-gp") + (version "2.5.3") + (source (origin + (method url-fetch) + (uri (string-append + "http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-" + version ".tar.gz")) + (sha256 (base32 + "0zsjccnnv00kwj2gk3ww2v530kjin1rgj8p8hbl4pwcnwc7m68gl= ")))) + (build-system gnu-build-system) + (inputs `(("gmp" ,gmp) + ("perl" ,perl) + ("readline" ,readline))) + (arguments + (lambda (system) + `(#:make-flags '("gp") +;; FIXME: building the documentation requires tex; once this is available, +;; replace "gp" by "all" + #:test-target "dobench" + #:phases + (alist-replace + 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (readline (assoc-ref inputs "readline")) + (gmp (assoc-ref inputs "gmp"))) + (zero? + (system* "./Configure" + (string-append "--prefix=3D" out) + (string-append "--with-readline=3D" readline) + (string-append "--with-gmp=3D" gmp))))) +;; FIXME: readline and gmp will be detected automatically in the next +;; stable release + %standard-phases)))) + (synopsis "PARI/GP, a computer algebra system for number theory") + (description + "PARI/GP is a widely used computer algebra system designed for fast +computations in number theory (factorisations, algebraic number theory, +elliptic curves...), but it also contains a large number of other useful +functions to compute with mathematical entities such as matrices, +polynomials, power series, algebraic numbers, etc., and a lot of +transcendental functions. +PARI is also available as a C library to allow for faster computations.") + (license gpl2+) + (home-page "http://pari.math.u-bordeaux.fr/"))) =2D-=20 1.7.10.4 --Boundary-00=_tnv8Q1RudBmOtkL--