[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/12: gnu: json-modern-cxx: Update to 3.7.0.
From: |
guix-commits |
Subject: |
11/12: gnu: json-modern-cxx: Update to 3.7.0. |
Date: |
Sat, 12 Oct 2019 12:43:31 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit ff97c862958095c9df0b41eb0574e7529ffab123
Author: Marius Bakke <address@hidden>
Date: Sat Oct 12 16:49:41 2019 +0200
gnu: json-modern-cxx: Update to 3.7.0.
* gnu/packages/cpp.scm (json-modern-cxx): Update to 3.7.0.
[source](snippet): Adjust for new doctest requirement.
[native-inputs]: Add DOCTEST.
[inputs]: Remove CATCH-FRAMEWORK2.
---
gnu/packages/cpp.scm | 30 +++++++++++++++++-------------
1 file changed, 17 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 1c98e38..6aac60d 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -206,7 +206,7 @@ as ordering relation.")
(define-public json-modern-cxx
(package
(name "json-modern-cxx")
- (version "3.1.2")
+ (version "3.7.0")
(home-page "https://github.com/nlohmann/json")
(source
(origin
@@ -215,30 +215,34 @@ as ordering relation.")
(commit (string-append "v" version))))
(sha256
(base32
- "1mpr781fb2dfbyscrr7nil75lkxsazg4wkm749168lcf2ksrrbfi"))
+ "0v7xih4zjixxxfvkfbs7a8j9qcvpwlsv4vrkbyns3hc7b44nb8ap"))
(file-name (git-file-name name version))
(modules '((guix build utils)))
(snippet
'(begin
- (delete-file-recursively "./third_party")
- (delete-file-recursively "./test/thirdparty")
- (delete-file-recursively "./benchmarks/thirdparty")
- ;; Splits catch and fifo_map
+ ;; Delete bundled software. Preserve doctest_compatibility.h, which
+ ;; is a wrapper library added by this package.
+ (install-file "./test/thirdparty/doctest/doctest_compatibility.h"
"/tmp")
+ (for-each delete-file-recursively
+ '("./third_party" "./test/thirdparty"
"./benchmarks/thirdparty"))
+ (install-file "/tmp/doctest_compatibility.h"
"./test/thirdparty/doctest")
+
+ ;; Adjust for the unbundled fifo_map and doctest.
+ (substitute* "./test/thirdparty/doctest/doctest_compatibility.h"
+ (("#include \"doctest\\.h\"")
+ "#include <doctest/doctest.h>"))
(with-directory-excursion "test/src"
- (let ((files (find-files "." ".*\\.cpp")))
- (substitute* files
- (("#include ?\"(catch.hpp)\"" all catch-hpp)
- (string-append "#include <catch/" catch-hpp ">")))
+ (let ((files (find-files "." "\\.cpp$")))
(substitute* files
(("#include ?\"(fifo_map.hpp)\"" all fifo-map-hpp)
(string-append
"#include <fifo_map/" fifo-map-hpp ">")))))
#t))))
(native-inputs
- `(("amalgamate" ,amalgamate)))
+ `(("amalgamate" ,amalgamate)
+ ("doctest" ,doctest)))
(inputs
- `(("catch2" ,catch-framework2)
- ("fifo-map" ,fifo-map)))
+ `(("fifo-map" ,fifo-map)))
(build-system cmake-build-system)
(synopsis "JSON parser and printer library for C++")
(description "JSON for Modern C++ is a C++ JSON library that provides
- branch master updated (5ce153b -> 9f29473), guix-commits, 2019/10/12
- 06/12: gnu: gRPC: Update description., guix-commits, 2019/10/12
- 10/12: gnu: Add doctest., guix-commits, 2019/10/12
- 07/12: gnu: python-django: Update to 1.11.25 [security fixes]., guix-commits, 2019/10/12
- 08/12: gnu: kodi: Update to 18.4., guix-commits, 2019/10/12
- 09/12: gnu: twolame: Update to 0.4.0., guix-commits, 2019/10/12
- 05/12: gnu: FANN: Update description., guix-commits, 2019/10/12
- 03/12: gnu: BOINC: Add a source file name., guix-commits, 2019/10/12
- 04/12: gnu: arx-libertatis: Update description., guix-commits, 2019/10/12
- 11/12: gnu: json-modern-cxx: Update to 3.7.0.,
guix-commits <=
- 02/12: gnu: BOINC: Update license., guix-commits, 2019/10/12
- 01/12: gnu: BOINC: Remove redundant comment., guix-commits, 2019/10/12
- 12/12: gnu: python-jupyter-kernel-test: Use PYTHON-VERSION., guix-commits, 2019/10/12