[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/16: gnu: box2d: Unbundle doctest.
From: |
guix-commits |
Subject: |
07/16: gnu: box2d: Unbundle doctest. |
Date: |
Tue, 9 Aug 2022 18:29:48 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 9fda25caff4f7e7df375dec44804c4cebb1a0643
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Aug 9 21:23:22 2022 +0200
gnu: box2d: Unbundle doctest.
* gnu/packages/game-development.scm (box2d)[source](snippet): Delete
doctest,
and adjust accordingly.
[native-inputs]: Add DOCTEST.
---
gnu/packages/game-development.scm | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/game-development.scm
b/gnu/packages/game-development.scm
index 090e7f7d12..3e0301a199 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -13,7 +13,7 @@
;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10@gmail.com>
;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2017, 2019 Rutger Helling <rhelling@mykolab.com>
-;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2018, 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2019, 2020, 2021 Liliana Marie Prikler
<liliana.prikler@gmail.com>
;;; Copyright © 2019 Jethro Cao <jethrocao@gmail.com>
@@ -2467,13 +2467,23 @@ rigid body physics library written in C.")
(modules '((guix build utils)))
(snippet
'(begin
- ;; Bundled code only used for the testbed.
- (delete-file-recursively "extern")))))
+ ;; Remove bundled code only used for the testbed.
+ (delete-file-recursively "extern")
+ ;; Remove bundled copy of doctest, and adjust tests accordingly.
+ (delete-file "unit-test/doctest.h")
+ (substitute* "unit-test/CMakeLists.txt"
+ (("doctest\\.h")
+ ""))
+ (substitute* (find-files "unit-test" "\\.cpp$")
+ (("include \"doctest\\.h\"")
+ "include <doctest/doctest.h>"))))))
(build-system cmake-build-system)
(arguments
`(#:test-target "unit_test"
#:configure-flags '("-DBUILD_SHARED_LIBS=ON"
"-DBOX2D_BUILD_TESTBED=OFF")))
+ (native-inputs
+ (list doctest)) ;for tests
(inputs
(list libx11))
(home-page "https://box2d.org/")
- branch master updated (4b780d002d -> 02de6a5981), guix-commits, 2022/08/09
- 02/16: gnu: cereal: List all licenses that apply., guix-commits, 2022/08/09
- 03/16: gnu: liburing: Update to 2.2., guix-commits, 2022/08/09
- 07/16: gnu: box2d: Unbundle doctest.,
guix-commits <=
- 16/16: gnu: freeimage: Remove input labels., guix-commits, 2022/08/09
- 10/16: gnu: v4l-utils: Remove input labels., guix-commits, 2022/08/09
- 12/16: gnu: spdlog: Prevent test failure on busy machines., guix-commits, 2022/08/09
- 01/16: gnu: cereal: Update to 1.3.2., guix-commits, 2022/08/09
- 04/16: gnu: libbpf: Update to 0.8.1., guix-commits, 2022/08/09
- 05/16: gnu: bcc: Update to 0.24.0., guix-commits, 2022/08/09
- 06/16: gnu: bpftrace: Update to 0.15.0., guix-commits, 2022/08/09
- 08/16: gnu: ungoogled-chromium: Install crashpad handler., guix-commits, 2022/08/09
- 09/16: gnu: v4l-utils: Update to 1.22.1., guix-commits, 2022/08/09
- 11/16: gnu: python-tlsh: Update to 4.11.2., guix-commits, 2022/08/09