me
/
guix
Archived
1
0
Fork 0

gnu: pari-gp: Address TeX errors.

* gnu/packages/algebra.scm (pari-gp)[native-inputs]: Replace texlive-tiny with
texlive-union of texlive-fonts-amsfonts and texlive-latex-amsfonts.
[arguments]: Use INVOKE in configure phase.
master
Ricardo Wurmus 2019-01-24 13:36:56 +01:00
parent fe2bfabe8b
commit 67f39dd514
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 34 additions and 31 deletions

View File

@ -3,7 +3,7 @@
;;; Copyright © 2013, 2015, 2017, 2018 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2013, 2015, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016, 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr> ;;; Copyright © 2016, 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2014, 2018 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2014, 2018 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016, 2018 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2016, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
@ -138,43 +138,46 @@ solve the shortest vector problem.")
(define-public pari-gp (define-public pari-gp
(package (package
(name "pari-gp") (name "pari-gp")
(version "2.11.1") (version "2.11.1")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
"https://pari.math.u-bordeaux.fr/pub/pari/unix/pari-" "https://pari.math.u-bordeaux.fr/pub/pari/unix/pari-"
version ".tar.gz")) version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1jfax92jpydjd02fwl30r6b8kfzqqd6sm4yx94gidyz9lqjb7a94")))) "1jfax92jpydjd02fwl30r6b8kfzqqd6sm4yx94gidyz9lqjb7a94"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs `(("texlive" ,texlive-tiny))) (native-inputs
(inputs `(("gmp" ,gmp) `(("texlive" ,(texlive-union
("libx11" ,libx11) (list texlive-fonts-amsfonts
("perl" ,perl) texlive-latex-amsfonts)))))
("readline" ,readline))) (inputs `(("gmp" ,gmp)
(arguments ("libx11" ,libx11)
'(#:make-flags '("all") ("perl" ,perl)
#:test-target "dobench" ("readline" ,readline)))
#:phases (modify-phases %standard-phases (arguments
(replace 'configure '(#:make-flags '("all")
(lambda* (#:key outputs #:allow-other-keys) #:test-target "dobench"
(let ((out (assoc-ref outputs "out"))) #:phases
(zero? (modify-phases %standard-phases
(system* "./Configure" (replace 'configure
(string-append "--prefix=" out))))))))) (lambda* (#:key outputs #:allow-other-keys)
(synopsis "PARI/GP, a computer algebra system for number theory") (invoke "./Configure"
(description (string-append "--prefix="
"PARI/GP is a widely used computer algebra system designed for fast (assoc-ref outputs "out"))))))))
(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, computations in number theory (factorisations, algebraic number theory,
elliptic curves...), but it also contains a large number of other useful elliptic curves...), but it also contains a large number of other useful
functions to compute with mathematical entities such as matrices, functions to compute with mathematical entities such as matrices,
polynomials, power series, algebraic numbers, etc., and a lot of polynomials, power series, algebraic numbers, etc., and a lot of
transcendental functions. transcendental functions.
PARI is also available as a C library to allow for faster computations.") PARI is also available as a C library to allow for faster computations.")
(license license:gpl2+) (license license:gpl2+)
(home-page "https://pari.math.u-bordeaux.fr/"))) (home-page "https://pari.math.u-bordeaux.fr/")))
(define-public gp2c (define-public gp2c
(package (package