gnu: vc: Update to 1.4.1.

* gnu/packages/maths.scm (vc): Update to 1.4.1.
[native-inputs]: Add VIRTEST and a test data origin.
[arguments]: Add phase to copy test data.
This commit is contained in:
Marius Bakke 2019-10-19 17:17:11 +02:00
parent e2ba79ef46
commit 9d731fb61d
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -3992,14 +3992,14 @@ (define-public matio
(define-public vc (define-public vc
(package (package
(name "vc") (name "vc")
(version "1.3.3") (version "1.4.1")
(source (source
(origin (method url-fetch) (origin (method url-fetch)
(uri (string-append "https://github.com/VcDevel/Vc/releases/" (uri (string-append "https://github.com/VcDevel/Vc/releases/"
"download/" version "/Vc-" version ".tar.gz")) "download/" version "/Vc-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1zmlpn32jzb38smp3j834llmbix3whsrbw0h397qxysbw792kih8")))) "17qili8bf8r78cng65yf4qmgna8kiqjqbgcqbric6v9j6nkhkrk8"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
'(#:configure-flags '(#:configure-flags
@ -4007,7 +4007,30 @@ (define-public vc
;; By default, Vc will optimize for the CPU of the build machine. ;; By default, Vc will optimize for the CPU of the build machine.
;; Setting this to "none" makes it create portable binaries. See ;; Setting this to "none" makes it create portable binaries. See
;; "cmake/OptimizeForArchitecture.cmake". ;; "cmake/OptimizeForArchitecture.cmake".
"-DTARGET_ARCHITECTURE=none"))) "-DTARGET_ARCHITECTURE=none")
#:phases (modify-phases %standard-phases
(add-after 'unpack 'copy-testdata
(lambda* (#:key inputs native-inputs #:allow-other-keys)
(let ((testdata (assoc-ref (or native-inputs inputs)
"testdata")))
(copy-recursively testdata "tests/testdata")
#t))))))
(native-inputs
`(("virtest" ,virtest)
;; This is a submodule in the git project, but not part of the
;; released sources. See the git branch for the commit to take.
("testdata" ,(let ((commit "9ada1f34d6a41f1b5553d6223f277eae72c039d3"))
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/VcDevel/vc-testdata")
(commit "9ada1f34d6a41f1b5553d6223f277eae72c039d3")))
(file-name (git-file-name "vc-testdata"
(string-take commit 7)))
(sha256
(base32
"1hkhqib03qlcq412ym2dciynfxcdr2ygqhnplz4l1vissr1wnqn2")))))))
(synopsis "SIMD vector classes for C++") (synopsis "SIMD vector classes for C++")
(description "Vc provides portable, zero-overhead C++ types for explicitly (description "Vc provides portable, zero-overhead C++ types for explicitly
data-parallel programming. It is a library designed to ease explicit data-parallel programming. It is a library designed to ease explicit