commit:     adea094719995c15eb6642c5cc7691899972ad80
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  5 03:02:11 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep  5 05:24:44 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adea0947

games-engines/box2d: conditionally build tests

This is also a workaround for the glibc 2.34 build failure.

Bug: https://bugs.gentoo.org/806342
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-engines/box2d/box2d-2.4.1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/games-engines/box2d/box2d-2.4.1.ebuild 
b/games-engines/box2d/box2d-2.4.1.ebuild
index 9dfc4358d3d..bbb16ef9e92 100644
--- a/games-engines/box2d/box2d-2.4.1.ebuild
+++ b/games-engines/box2d/box2d-2.4.1.ebuild
@@ -12,13 +12,15 @@ 
SRC_URI="https://github.com/erincatto/Box2D/archive/v${PV}.tar.gz -> ${P}.tar.gz
 LICENSE="ZLIB"
 SLOT="0"
 KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
-IUSE="doc"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
 
 BDEPEND="doc? ( app-doc/doxygen )"
 
 src_configure() {
        local mycmakeargs=(
                -DBOX2D_BUILD_TESTBED=OFF # bundled libs, broken anyway right 
now
+               -DBOX2D_BUILD_UNIT_TESTS=$(usex test)
                -DBOX2D_BUILD_DOCS=$(usex doc)
        )
        cmake_src_configure

Reply via email to