commit:     f5b25c9fd1c98384788a00adfba5e519b6c91551
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 13 22:20:43 2021 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Mar 13 22:21:07 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5b25c9f

games-engines/box2d: Add IUSE=doc, set BOX2D_BUILD_TESTBED=OFF

Closes: https://bugs.gentoo.org/775854
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

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

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

Reply via email to