diff options
author | Matoro Mahri <matoro_gentoo@matoro.tk> | 2023-12-17 21:21:40 -0500 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-12-19 05:25:52 +0000 |
commit | da7a5037775a5142a57b492097380a939ba7ab5f (patch) | |
tree | 9227cfd137d7538d401ea45f091a46f4c4c3b9aa /dev-util/vulkan-utility-libraries/vulkan-utility-libraries-9999.ebuild | |
parent | dev-cpp/magic_enum: add 0.9.5 (diff) | |
download | gentoo-da7a5037775a5142a57b492097380a939ba7ab5f.tar.gz gentoo-da7a5037775a5142a57b492097380a939ba7ab5f.tar.bz2 gentoo-da7a5037775a5142a57b492097380a939ba7ab5f.zip |
dev-util/vulkan-utility-libraries: wire up tests
Needs rekeywording: arm, ppc, riscv.
Bug: https://bugs.gentoo.org/917096
Reviewed-by: Nick Sarnie <sarnex@gentoo.org>
Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
Closes: https://github.com/gentoo/gentoo/pull/34337
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/vulkan-utility-libraries/vulkan-utility-libraries-9999.ebuild')
-rw-r--r-- | dev-util/vulkan-utility-libraries/vulkan-utility-libraries-9999.ebuild | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/dev-util/vulkan-utility-libraries/vulkan-utility-libraries-9999.ebuild b/dev-util/vulkan-utility-libraries/vulkan-utility-libraries-9999.ebuild index b52a395a5133..01ec80c07d15 100644 --- a/dev-util/vulkan-utility-libraries/vulkan-utility-libraries-9999.ebuild +++ b/dev-util/vulkan-utility-libraries/vulkan-utility-libraries-9999.ebuild @@ -14,7 +14,7 @@ if [[ ${PV} == *9999* ]]; then else EGIT_COMMIT="vulkan-sdk-${PV}.0" SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" S="${WORKDIR}"/${MY_PN}-${EGIT_COMMIT} fi @@ -23,7 +23,20 @@ HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Utility-Libraries" LICENSE="Apache-2.0" SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" -DEPEND="~dev-util/vulkan-headers-${PV}" +DEPEND="~dev-util/vulkan-headers-${PV} + test? ( + dev-cpp/gtest + >=dev-cpp/magic_enum-0.9.2 + )" RDEPEND="!<media-libs/vulkan-layers-1.3.268" BDEPEND="${PYTHON_DEPS}" + +multilib_src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test ON OFF) + ) + cmake_src_configure +} |