mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add mapbox-variant.
* gnu/packages/cpp.scm (mapbox-variant): New variable. Change-Id: Id84b35d97d73fcf1c116ddca844bc75ada627b55
This commit is contained in:
parent
79d95394c0
commit
9408fa3754
1 changed files with 37 additions and 0 deletions
|
@ -2802,6 +2802,43 @@ Main features:
|
||||||
@end itemize")
|
@end itemize")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public mapbox-variant
|
||||||
|
(package
|
||||||
|
(name "mapbox-variant")
|
||||||
|
(version "1.2.0")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/mapbox/variant")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "03cmxm34ralh8y07bs80gz3v4pql51206dn5h7lcnm7vishkk241"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet #~(begin
|
||||||
|
(delete-file "test/include/catch.hpp")
|
||||||
|
(substitute* (find-files "test" "\\.[ch]pp")
|
||||||
|
(("\"catch.hpp\"") "<catch/catch.hpp>"))))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
(list #:test-target "test"
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(delete 'bootstrap)
|
||||||
|
(delete 'configure)
|
||||||
|
(delete 'build)
|
||||||
|
(replace 'install
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(copy-recursively "include"
|
||||||
|
(string-append (assoc-ref outputs "out")
|
||||||
|
"/include")))))))
|
||||||
|
(native-inputs (list catch2-1))
|
||||||
|
(home-page "https://github.com/mapbox/variant")
|
||||||
|
(synopsis "Implementation of std::variant for C++11/14")
|
||||||
|
(description "This package provides a header-only implementation of
|
||||||
|
std::variant (formerly boost::variant) for C++11/14.")
|
||||||
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public mpark-variant
|
(define-public mpark-variant
|
||||||
(package
|
(package
|
||||||
(name "mpark-variant")
|
(name "mpark-variant")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue