summaryrefslogtreecommitdiff
path: root/games-engines/box2d/box2d-2.4.1.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'games-engines/box2d/box2d-2.4.1.ebuild')
-rw-r--r--games-engines/box2d/box2d-2.4.1.ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/games-engines/box2d/box2d-2.4.1.ebuild b/games-engines/box2d/box2d-2.4.1.ebuild
index 9dfc4358d3dc..bbb16ef9e92c 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