gnu: suitesparse: Use modify-phases.

* gnu/packages/maths.scm (suitesparse)[arguments]: Use modify-phases.
This commit is contained in:
Eric Bavier 2017-08-08 20:00:09 -05:00
parent 9731c412e9
commit 2509522c4f
No known key found for this signature in database
GPG Key ID: FD73CAC719D32566
1 changed files with 8 additions and 9 deletions

View File

@ -2448,15 +2448,14 @@ Fresnel integrals, and similar related functions as well.")
(string-append "INSTALL_INCLUDE=" (string-append "INSTALL_INCLUDE="
(assoc-ref %outputs "out") "/include")) (assoc-ref %outputs "out") "/include"))
#:phases #:phases
(alist-cons-before (modify-phases %standard-phases
'install 'prepare-out (delete 'configure) ;no configure script
(add-before 'install 'prepare-out
;; README.txt states that the target directories must exist prior to ;; README.txt states that the target directories must exist prior to
;; running "make install". ;; running "make install".
(lambda _ (lambda _
(mkdir-p (string-append (assoc-ref %outputs "out") "/lib")) (mkdir-p (string-append (assoc-ref %outputs "out") "/lib"))
(mkdir-p (string-append (assoc-ref %outputs "out") "/include"))) (mkdir-p (string-append (assoc-ref %outputs "out") "/include")))))))
;; no configure script
(alist-delete 'configure %standard-phases))))
(inputs (inputs
`(("tbb" ,tbb) `(("tbb" ,tbb)
("lapack" ,lapack))) ("lapack" ,lapack)))