Paste number 322439: eigen-dev

Paste number 322439: eigen-dev
Pasted by: emyles
When:5 years, 3 months ago
Share:Tweet this! | http://paste.lisp.org/+6WSN
Channel:None
Paste contents:
Raw Source | XML | Display As
(define-public eigen-dev
  (package (inherit eigen)
    (name "eigen-dev")
    (version "3.2.8")
    (source (origin
              (method url-fetch)
              (uri (string-append "https://bitbucket.org/eigen/eigen/get/"
                                  version ".tar.bz2"))
              (sha256
               (base32
                "0mby6my1djsg8681fcvlaq0i4kd17fja9qn5f713j3xpfbb66akj"))
              (file-name (string-append "eigen" "-" version ".tar.bz2"))
              (modules '((guix build utils)))
              (snippet
               ;; There are 3 test failures in the "unsupported" directory,
               ;; but maintainers say it's a known issue and it's unsupported
               ;; anyway, so just skip them.
               '(begin
		  (substitute* "CMakeLists.txt"
		    ;; (("add_subdirectory\\(unsupported\\)")
		    ;; "# Do not build the tests for unsupported features.\n")
		    ;; Work around
		    ;; <http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1114>.
		    (("\"include/eigen3\"")
		     "\"${CMAKE_INSTALL_PREFIX}/include/eigen3\""))
		  (substitute* "unsupported/test/CMakeLists.txt"
		    (("ei_add_test(gmres)")
		     "#ei_add_test(gmres)")
		    (("ei_add_test(levenberg_marquardt)")
		     "#ei_add_test(levenberg_marquardt)"))))))))

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.