gnu: xtl: Improve package style.

* gnu/packages/cpp.scm (xtl): Shift order of fields.
[source] <url>: Fix redirection issue,
<https://github.com/QuantStack/xtl> permamently redirects to
<https://github.com/xtensor-stack/xtl>.
[arguments] <test-target>: Set to "xtest".
<phases>: Use default 'check.
[home-page]: Fix it.

Change-Id: Ib3bc50b7a9e798be8888c2b1eac832d6a524bdae
This commit is contained in:
Sharlatan Hellseher 2025-01-03 20:35:03 +00:00
parent fbfff97ea9
commit 27349661bb
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1061,30 +1061,25 @@ for C++17.")
(package (package
(name "xtl") (name "xtl")
(version "0.7.5") (version "0.7.5")
(source (origin (source
(origin
(method git-fetch) (method git-fetch)
(uri (uri (git-reference
(git-reference (url "https://github.com/xtensor-stack/xtl")
(url "https://github.com/QuantStack/xtl")
(commit version))) (commit version)))
(sha256 (sha256
(base32 (base32 "1llfy6pkzqx2va74h9xafjylyvw6839a843mqc05n6x6wll5bkam"))
"1llfy6pkzqx2va74h9xafjylyvw6839a843mqc05n6x6wll5bkam"))
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(native-inputs (build-system cmake-build-system)
(list doctest googletest nlohmann-json))
(arguments (arguments
(list (list
#:configure-flags #:configure-flags #~(list "-DBUILD_TESTS=ON")
#~(list "-DBUILD_TESTS=ON") #:test-target "xtest"))
#:phases (native-inputs
#~(modify-phases %standard-phases (list doctest
(replace 'check googletest
(lambda _ nlohmann-json))
(with-directory-excursion "test" (home-page "https://github.com/xtensor-stack/xtl")
(invoke "./test_xtl")))))))
(home-page "https://github.com/QuantStack/xtl")
(build-system cmake-build-system)
(synopsis "C++ template library providing some basic tools") (synopsis "C++ template library providing some basic tools")
(description "xtl is a C++ header-only template library providing basic (description "xtl is a C++ header-only template library providing basic
tools (containers, algorithms) used by other QuantStack packages.") tools (containers, algorithms) used by other QuantStack packages.")