mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01:00
gnu: eigen: Use 'modify-phases'.
* gnu/packages/algebra.scm (eigen)[arguments]: Use 'modify-phases' instead of 'alist-cons-before'.
This commit is contained in:
parent
a4eb83b709
commit
354f4fe292
1 changed files with 11 additions and 12 deletions
|
@ -413,19 +413,18 @@ cosine/ sine transforms or DCT/DST).")
|
|||
;; <http://eigen.tuxfamily.org/index.php?title=Tests>.
|
||||
#:test-target "check"
|
||||
|
||||
#:phases (alist-cons-before
|
||||
'check 'build-tests
|
||||
(lambda _
|
||||
;; First build the tests, in parallel.
|
||||
;; See <http://eigen.tuxfamily.org/index.php?title=Tests>.
|
||||
(let* ((cores (parallel-job-count))
|
||||
(dash-j (format #f "-j~a" cores)))
|
||||
;; These variables are supposed to be honored.
|
||||
(setenv "EIGEN_MAKE_ARGS" dash-j)
|
||||
(setenv "EIGEN_CTEST_ARGS" dash-j)
|
||||
#:phases (modify-phases %standard-phases
|
||||
(add-before 'check 'build-tests
|
||||
(lambda _
|
||||
;; First build the tests, in parallel.
|
||||
;; See <http://eigen.tuxfamily.org/index.php?title=Tests>.
|
||||
(let* ((cores (parallel-job-count))
|
||||
(dash-j (format #f "-j~a" cores)))
|
||||
;; These variables are supposed to be honored.
|
||||
(setenv "EIGEN_MAKE_ARGS" dash-j)
|
||||
(setenv "EIGEN_CTEST_ARGS" dash-j)
|
||||
|
||||
(zero? (system* "make" "buildtests" dash-j))))
|
||||
%standard-phases)))
|
||||
(zero? (system* "make" "buildtests" dash-j))))))))
|
||||
(home-page "http://eigen.tuxfamily.org")
|
||||
(synopsis "C++ template library for linear algebra")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue