summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatoro Mahri <matoro_gentoo@matoro.tk>2023-12-17 21:21:40 -0500
committerSam James <sam@gentoo.org>2023-12-19 05:25:52 +0000
commitda7a5037775a5142a57b492097380a939ba7ab5f (patch)
tree9227cfd137d7538d401ea45f091a46f4c4c3b9aa /dev-util/vulkan-utility-libraries
parentdev-cpp/magic_enum: add 0.9.5 (diff)
downloadgentoo-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')
-rw-r--r--dev-util/vulkan-utility-libraries/vulkan-utility-libraries-1.3.268-r1.ebuild42
-rw-r--r--dev-util/vulkan-utility-libraries/vulkan-utility-libraries-9999.ebuild17
2 files changed, 57 insertions, 2 deletions
diff --git a/dev-util/vulkan-utility-libraries/vulkan-utility-libraries-1.3.268-r1.ebuild b/dev-util/vulkan-utility-libraries/vulkan-utility-libraries-1.3.268-r1.ebuild
new file mode 100644
index 000000000000..9aa859a65161
--- /dev/null
+++ b/dev-util/vulkan-utility-libraries/vulkan-utility-libraries-1.3.268-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN=Vulkan-Utility-Libraries
+PYTHON_COMPAT=( python3_{9..12} )
+PYTHON_REQ_USE="xml(+)"
+inherit cmake-multilib python-any-r1
+
+if [[ ${PV} == *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git"
+ inherit git-r3
+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 ~arm64 ~ppc64 ~x86"
+ S="${WORKDIR}"/${MY_PN}-${EGIT_COMMIT}
+fi
+
+DESCRIPTION="Share code across various Vulkan repositories"
+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}
+ 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
+}
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
+}