~ruther/guix-local

354f4fe2926d52fcd767022cd9b5ded319807e0e — Ludovic Courtès 10 years ago a4eb83b
gnu: eigen: Use 'modify-phases'.

* gnu/packages/algebra.scm (eigen)[arguments]: Use 'modify-phases'
  instead of 'alist-cons-before'.
1 files changed, 11 insertions(+), 12 deletions(-)

M gnu/packages/algebra.scm
M gnu/packages/algebra.scm => gnu/packages/algebra.scm +11 -12
@@ 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