From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] gnu: Add giac-xcas Date: Tue, 12 Apr 2016 21:04:27 +0200 Message-ID: <87potuy7gk.fsf@nicolasgoaziou.fr> References: <87inzt7cc3.fsf@nicolasgoaziou.fr> <87h9f9mvfg.fsf@nicolasgoaziou.fr> <878u0kp805.fsf@gnu.org> <87a8kzbx9d.fsf@nicolasgoaziou.fr> <87wpo3spdh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aq3Zw-000231-No for guix-devel@gnu.org; Tue, 12 Apr 2016 15:02:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aq3Zq-0007te-Eh for guix-devel@gnu.org; Tue, 12 Apr 2016 15:02:24 -0400 In-Reply-To: <87wpo3spdh.fsf@gnu.org> (Mathieu Lirzin's message of "Tue, 12 Apr 2016 01:21:46 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mathieu Lirzin Cc: Guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, Mathieu Lirzin writes: > with texlive-minimal as input, and without texlive in the environment do > you get some errors? Yes, I do. The errors are the same sh: pstopnm: command not found sh: pnmtopng: command not found They do not appear with `netpbm' in the environment, so I think everything is fine, after all. > The =E2=80=98arguments=E2=80=99 field is for general purpose build custom= ization, > whereas The =E2=80=98snippet=E2=80=99 field in origin is meant for removi= ng/modifying > parts of the code that don't respect GNU FSDG. > > It is done this way so that when the user is doing =E2=80=98guix build --= source > PACKAGE=E2=80=99 to get the tarball, a freed version is provided instead = of the > one from upstream. Point taken. Thank you for the explanation. > I think you are right, could you send an updated patch with two separate > phases? Sorry I love nitpicking. ;) Here is the new patch. Regards, --=20 Nicolas Goaziou 0x80A93738 --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0002-gnu-Add-giac-xcas.patch Content-Transfer-Encoding: quoted-printable Content-Description: giac-xcas (take 3) >From a1b91846b69321239b773df433bd679d31d051d6 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 7 Apr 2016 14:43:15 +0200 Subject: [PATCH 2/2] gnu: Add giac-xcas * gnu/packages/algebra.scm (giac-xcas): New variable. --- gnu/packages/algebra.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index abac961..8babe28 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2012, 2013, 2014, 2015, 2016 Andreas Enge ;;; Copyright =C2=A9 2013, 2015 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2016 Nicolas Goaziou ;;; Copyright =C2=A9 2014 Mark H Weaver ;;; ;;; This file is part of GNU Guix. @@ -23,7 +24,10 @@ #:use-module (gnu packages autotools) #:use-module (gnu packages compression) #:use-module (gnu packages doxygen) + #:use-module (gnu packages fltk) + #:use-module (gnu packages gl) #:use-module (gnu packages graphviz) + #:use-module (gnu packages image) #:use-module (gnu packages multiprecision) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) @@ -31,7 +35,9 @@ #:use-module (gnu packages readline) #:use-module (gnu packages flex) #:use-module (gnu packages python) + #:use-module (gnu packages tcsh) #:use-module (gnu packages texlive) + #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) @@ -192,6 +198,67 @@ GP2C, the GP to C compiler, translates GP scripts to P= ARI programs.") (license license:gpl2) (home-page "http://pari.math.u-bordeaux.fr/"))) =20 +(define-public giac-xcas + (package + (name "giac-xcas") + (version "1.2.2-37") + (source (origin + (method url-fetch) + ;; "~parisse/giac" is not used because the maintainer regula= rly + ;; overwrites the release tarball there, introducing a check= sum + ;; mismatch every time. See + ;; + (uri (string-append "https://www-fourier.ujf-grenoble.fr/" + "~parisse/debian/dists/stable/main/" + "source/giac_" version ".tar.gz")) + (sha256 + (base32 + "0cagh9nnaz7ks299b2bs3lrdclv4xbyis24zc8vf3i25p470bxsf")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-bin-cp + (lambda _ + ;; Some Makefiles contain hard-coded "/bin/cp". + (substitute* (find-files "doc" "^Makefile") + (("/bin/cp") (which "cp"))) + #t)) + (add-after 'unpack 'disable-broken-test + (lambda _ + ;; Disable failing test. Actually, the results are correct b= ut + ;; a sorting discrepancy prevents the test from being validat= ed. + (substitute* "check/Makefile.in" + (("chk_fhan16") "")) + #t))))) + (inputs + `(("fltk" ,fltk) + ("gmp" ,gmp) + ("gsl" ,gsl) + ("lapack" ,lapack) + ("libao" ,ao) + ("libjpeg" ,libjpeg) + ("libpng" ,libpng) + ("libx11" ,libx11) + ("libxft" ,libxft) + ("libxt" ,libxt) + ("mesa" ,mesa) + ("mpfi" ,mpfi) + ("mpfr" ,mpfr) + ("ntl" ,ntl) + ("perl" ,perl) + ("pari-gp" ,pari-gp) + ("tcsh" ,tcsh) + ("texlive" ,texlive-minimal))) + (native-inputs `(("readline" ,readline))) + (home-page "https://www-fourier.ujf-grenoble.fr/~parisse/giac.html") + (synopsis "Computer algebra system") + (description + "Giac/Xcas is a computer algebra system. It has a compatibility mode= for +maple, mupad and the TI89. It is available as a standalone program (graph= ic +or text interfaces) or as a C++ library.") + (license license:gpl3+))) + (define-public flint (package (name "flint") --=20 2.8.0 --=-=-=--