commit: f12302aea121d8bc76d8728a847351987b1754df
Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 30 00:15:46 2023 +0000
Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org>
CommitDate: Wed Aug 30 00:32:18 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f12302ae
dev-util/spirv-tools: add 1.3.261
Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org>
dev-util/spirv-tools/Manifest | 1 +
dev-util/spirv-tools/spirv-tools-1.3.261.ebuild | 42 +++++++++++++++++++++++++
2 files changed, 43 insertions(+)
diff --git a/dev-util/spirv-tools/Manifest b/dev-util/spirv-tools/Manifest
index f202e3a465ce..f1a47c8e08f8 100644
--- a/dev-util/spirv-tools/Manifest
+++ b/dev-util/spirv-tools/Manifest
@@ -1 +1,2 @@
DIST spirv-tools-1.3.250.tar.gz 3113062 BLAKE2B
a6951f957282eace3f65c81041070b6afd78ea87d50ef76c049827b537e94f75fbc3b7d9326ff0bcd1663d51611c7b01c8d5d8c2336ea151ab69ccb41b0ea308
SHA512
777733c6a25c5bad9802e7a33e913a051ccc3d740acb24c9255cc3ab5d08fce529991696310e3a58ca52e79a214c8dc74f811ab357135a85e82b6c10c8701289
+DIST spirv-tools-1.3.261.tar.gz 3140272 BLAKE2B
2ec477c28d62e792ea86ec460fe4a3320f6f162376822e2d30f229187bc6c9c8f61f32695f459f5f75cdc836cad0da189b4e81fc0e82869c0398ddcb367c6af4
SHA512
b494c8daf0e863f100926636c6a8e44d34b9423d548afd6ddf81dbc44b171543246a934d90e943f9bc75e180a6554c15724ab4e1f9561725abd41c46a76befb3
diff --git a/dev-util/spirv-tools/spirv-tools-1.3.261.ebuild
b/dev-util/spirv-tools/spirv-tools-1.3.261.ebuild
new file mode 100644
index 000000000000..e5c15a8932d4
--- /dev/null
+++ b/dev-util/spirv-tools/spirv-tools-1.3.261.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=SPIRV-Tools
+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="sdk-${PV}.0"
+
SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz
-> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+ S="${WORKDIR}"/${MY_PN}-${EGIT_COMMIT}
+fi
+
+DESCRIPTION="Provides an API and commands for processing SPIR-V modules"
+HOMEPAGE="https://github.com/KhronosGroup/SPIRV-Tools"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+# Tests fail upon finding symbols that do not match a regular expression
+# in the generated library. Easily hit with non-standard compiler flags
+RESTRICT="test"
+
+DEPEND="~dev-util/spirv-headers-${PV}"
+RDEPEND=""
+BDEPEND="${PYTHON_DEPS}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DSPIRV-Headers_SOURCE_DIR="${ESYSROOT}"/usr/
+ -DSPIRV_WERROR=OFF
+ -DSPIRV_TOOLS_BUILD_STATIC=OFF
+ )
+
+ cmake_src_configure
+}