From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: [PATCH] gnu: Add LAPACK. (was: LAPACK: tests fail; non-free files) Date: Mon, 04 Nov 2013 23:19:54 +0400 Message-ID: <87iow8km91.fsf_-_@karetnikov.org> References: <87ob6gpd5k.fsf@karetnikov.org> <20131023115728.GA17339@debian.eduroam.u-bordeaux.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdPcB-0000el-J6 for guix-devel@gnu.org; Mon, 04 Nov 2013 14:15:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdPcA-0001sN-2D for guix-devel@gnu.org; Mon, 04 Nov 2013 14:15:07 -0500 Received: from [2a01:7e00::f03c:91ff:fedf:181] (port=51077 helo=cooksoni.karetnikov.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdPc9-0001oe-Pj for guix-devel@gnu.org; Mon, 04 Nov 2013 14:15:06 -0500 In-Reply-To: <20131023115728.GA17339@debian.eduroam.u-bordeaux.fr> (Andreas Enge's message of "Wed, 23 Oct 2013 13:57:28 +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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable May I push this patch to =E2=80=98master=E2=80=99? Should (format #t "remo= ving '~a'~%" file) be i18n=E2=80=99d? --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-LAPACK.patch Content-Transfer-Encoding: quoted-printable From=203e94fe1afc01d08997fd95775aab06c4495ba9d6 Mon Sep 17 00:00:00 2001 From: Nikita Karetnikov Date: Mon, 4 Nov 2013 18:58:54 +0000 Subject: [PATCH] gnu: Add LAPACK. * gnu/packages/maths.scm (lapack): New variable. =2D-- gnu/packages/maths.scm | 49 ++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index ccbb57b..27d83f0 100644 =2D-- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2013 Andreas Enge +;;; Copyright =C2=A9 2013 Nikita Karetnikov ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,13 +23,16 @@ #:renamer (symbol-prefix-proc 'license:)) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (gnu packages compression) #:use-module ((gnu packages gettext) #:renamer (symbol-prefix-proc 'gnu:)) + #:use-module (gnu packages gcc) #:use-module (gnu packages multiprecision) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) #:use-module (gnu packages readline) #:use-module (gnu packages xml)) =20 @@ -153,3 +157,48 @@ interoperate with Gnumeric, LibreOffice and OpenOffice= . Data can be imported from spreadsheets, text files and database sources and it can be output in text, Postscript, PDF or HTML.") (license license:gpl3+))) + +(define-public lapack + (package + (name "lapack") + (version "3.4.2") + (source + (origin + (method url-fetch) + (uri (string-append "http://www.netlib.org/lapack/lapack-" + version ".tgz")) + (sha256 + (base32 + "1w7sf8888m7fi2kyx1fzgbm22193l8c2d53m8q1ibhvfy6m5v9k0")))) + (build-system cmake-build-system) + (home-page "http://www.netlib.org/lapack/") + (inputs `(("fortran" ,gfortran-4.8) + ("python" ,python-2))) + (arguments + `(#:modules ((guix build cmake-build-system) + (guix build utils) + (srfi srfi-1)) + #:phases (alist-cons-before + ;; See . + 'configure 'remove-non-free-files + (lambda _ + (for-each (lambda (file) + (begin + (format #t "removing '~a'~%" file) + (delete-file file))) + '("lapacke/example/example_DGESV_rowmajor.c" + "lapacke/example/example_ZGESV_rowmajor.c" + "DOCS/psfig.tex"))) + (alist-cons-before + 'check 'patch-python + (lambda* (#:key inputs #:allow-other-keys) + (let ((python (assoc-ref inputs "python"))) + (substitute* "lapack_testing.py" + (("/usr/bin/env python") python)))) + %standard-phases)))) + (synopsis "Library for numerical linear algebra") + (description + "LAPACK is a Fortran 90 library for solving the most commonly occurri= ng +problems in numerical linear algebra.") + (license (license:bsd-style "file://LICENSE" + "See LICENSE in the distribution.")))) =2D-=20 1.7.9.5 --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJSd/NcAAoJEM+IQzI9IQ38bLIP/28AcCPRTWp67NkBml/v//aq zAxCdK7pdz2cOJoau5eIPN+gkTBd6vaHKyXJ18w+SRRzZ1WfXPcJtItTZAMCfxzh IAh+YlNqFEVDF/kR75qK28EkYpjHn1seRYWGVskvAqeS9efJKZ3eG0DcMSYXPviu ppGXiDI+y73zDqf9UyKnyilx9O2g9LzTht+r/+dZGtQ15xOjigB5cWrH+16wGFCM 7icQ9xPx+v1Mj6Jc8K+mSCh/mGn0Bwsm6oSli78/g2DX6n7muZGOk+2xsWEok36+ x+g5ZJdWJrSAxgCkfSW5EvkYhIeDe5466QUuqaHeDkOZ7QzbcM1zwYhJyjtzF39K 783+/1aZpsux6D9sxZbDZ2nuTVwo+V4T6eAH+R50Ltjns5nUjY3HMydgcgaVSiRN /6bxCSRIu3abE/nu66pgviYp+Q7S/Ny7GSBcR6jYQ2J8/yv9FyVIWQgzkw3ChzHQ Oe4IOoLcROGzm+vBnMxmQkIUXH3KRbMvCJxTVRToAyX7by08BhMnpe+EnZVnNWp1 F/Td6zzv8xQCe3FhKsZqiHAe4SqurJe80iHy0Jo5pd3r0Wt1Q6fvYhZy8cMfkjaG jQbvhLzz1RSIkVNLqmmHwLgP8Py/4hXD4aVrzcJGRD10ThvzJIgNpCXNbAhUcsVw En6F9IndV6HA0hVN4Gph =hoCR -----END PGP SIGNATURE----- --==-=-=--