From da95c8170aaa24a91cf0db35ff4db7ac7c2136f6 Mon Sep 17 00:00:00 2001 From: Nikita Karetnikov Date: Mon, 4 Nov 2013 18:58:54 +0000 Subject: gnu: Add LAPACK. * gnu/packages/maths.scm (lapack): New variable. --- gnu/packages/maths.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index ccbb57b90f..27d83f0f6f 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013 Andreas Enge +;;; Copyright © 2013 Nikita Karetnikov ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,13 +23,16 @@ (define-module (gnu packages maths) #: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)) @@ -153,3 +157,48 @@ (define-public pspp 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 occurring +problems in numerical linear algebra.") + (license (license:bsd-style "file://LICENSE" + "See LICENSE in the distribution.")))) -- cgit v1.2.3 k.scm?id=63b2d9a8f1c5251d72d44a36929b0cdf19533971'>gnu: hdparm: Move to (gnu packages disk).Felix Lechner 2023-08-06gnu: rmlint: Remove libelf.Tobias Geerinckx-Rice 2023-08-06gnu: rmlint: Update package style.Tobias Geerinckx-Rice 2023-08-06gnu: rmlint: Update to 2.10.2.Tobias Geerinckx-Rice 2023-07-30gnu: ndctl: Update to 78.Tobias Geerinckx-Rice 2023-07-23gnu: parted: Update to 3.6.Tobias Geerinckx-Rice 2023-07-21gnu: parted: Skip tests when cross-compiling.Efraim Flashner 2023-07-20gnu: parted: Disable tests for the Hurd.Janneke Nieuwenhuizen 2023-07-13gnu: parted: Support building for the Hurd.Janneke Nieuwenhuizen 2023-07-01gnu: Add greaseweazle-host-tools.Rikard Nordgren 2023-06-21gnu: go-github-com-mattn-go-runewidth: Update to 0.0.14.Nguyễn Gia Phong 2023-06-14gnu: Add nwipe.Timotej Lazar 2023-02-25gnu: gparted: Update to 1.5.0.Michael Rohleder 2023-02-19gnu: Use HTTPS package home pages wherever possible.Tobias Geerinckx-Rice 2023-01-22gnu: ndctl: Update to 75.Tobias Geerinckx-Rice 2023-01-22gnu: ddrescue: Update to 1.27.Tobias Geerinckx-Rice 2022-12-05gnu: gparted: Move lvm2 to inputs.Efraim Flashner 2022-11-27gnu: libblockdev: Update to 2.28.Tobias Geerinckx-Rice 2022-11-27gnu: lf: Fix build.Tobias Geerinckx-Rice 2022-11-22gnu: Add fff.paladhammika 2022-11-10gnu: parted: Add a debug output.Mathieu Othacehe 2022-10-31gnu: Add wipe.Denis 'GNUtoo' Carikli