diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-14 23:53:26 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-14 23:53:26 +0000 |
commit | 3bd85407abc9ed4434c2d3741f84fdb512638b1c (patch) | |
tree | 15a296c276aca23d87cb4f2181f2249d706ca05f /dev-games/recastnavigation/recastnavigation-1.5.1_p20230102.ebuild | |
parent | a90c84e720803f3d26c0ade8f1f1e405ca97502a (diff) |
gentoo auto-resync : 14:01:2023 - 23:53:26
Diffstat (limited to 'dev-games/recastnavigation/recastnavigation-1.5.1_p20230102.ebuild')
-rw-r--r-- | dev-games/recastnavigation/recastnavigation-1.5.1_p20230102.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-games/recastnavigation/recastnavigation-1.5.1_p20230102.ebuild b/dev-games/recastnavigation/recastnavigation-1.5.1_p20230102.ebuild new file mode 100644 index 000000000000..d62785277e49 --- /dev/null +++ b/dev-games/recastnavigation/recastnavigation-1.5.1_p20230102.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Navigation mesh construction toolset for games" +HOMEPAGE="https://github.com/recastnavigation/recastnavigation" +MY_COMMIT="405cc095ab3a2df976a298421974a2af83843baf" +SRC_URI="https://github.com/recastnavigation/recastnavigation/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_COMMIT}" + +LICENSE="ZLIB" +SLOT="0/1.5.1" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( dev-cpp/catch:0 )" + +PATCHES=( + "${FILESDIR}/${P}-catch.patch" +) + +src_prepare() { + rm Tests/Contrib/Catch/* || die + echo "#include <catch2/catch_all.hpp>" > Tests/Contrib/Catch/catch_amalgamated.hpp || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DRECASTNAVIGATION_DEMO=OFF + -DRECASTNAVIGATION_EXAMPLES=OFF + -DRECASTNAVIGATION_TESTS=$(usex test) + ) + + cmake_src_configure +} |