gnu: grass: Remove dependency on lapack.

* gnu/packages/geo.scm (grass): Remove dependency on lapack.
Add 'fix-lapack build phase.

Change-Id: I758a9b2434f0ad9f8b85a5c5cde6d0a80e6defb2
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Romain GARBAGE 2024-03-11 12:07:15 +01:00 committed by Ludovic Courtès
parent 8eeef890f3
commit 1c827ef19e
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -2609,7 +2609,6 @@ (define-public grass
("gdal" ,gdal)
("geos" ,geos)
("glu" ,glu)
("lapack" ,lapack)
("libpng" ,libpng)
("libtiff" ,libtiff)
("mesa" ,mesa)
@ -2643,6 +2642,11 @@ (define-public grass
(guix build python-build-system))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-lapack
(lambda _
(substitute* "./configure"
(("-lblas") "-lopenblas")
(("-llapack") "-lopenblas"))))
(replace 'configure
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((shell (search-input-file inputs "/bin/bash")))