diff options
author | Nick Sarnie <sarnex@gentoo.org> | 2024-08-04 15:12:51 -0400 |
---|---|---|
committer | Nick Sarnie <sarnex@gentoo.org> | 2024-08-04 15:29:58 -0400 |
commit | 4211ed75e6141db64b7463c59aed5904afd91347 (patch) | |
tree | 7a7b4a188cd9d0d286e532871217adcf47a3ffd1 /dev-util/spirv-tools | |
parent | dev-util/spirv-headers: add 1.3.290.0 (diff) | |
download | gentoo-4211ed75e6141db64b7463c59aed5904afd91347.tar.gz gentoo-4211ed75e6141db64b7463c59aed5904afd91347.tar.bz2 gentoo-4211ed75e6141db64b7463c59aed5904afd91347.zip |
dev-util/spirv-tools: add 1.3.290.0
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'dev-util/spirv-tools')
-rw-r--r-- | dev-util/spirv-tools/Manifest | 1 | ||||
-rw-r--r-- | dev-util/spirv-tools/spirv-tools-1.3.290.0.ebuild | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-util/spirv-tools/Manifest b/dev-util/spirv-tools/Manifest index 633dcc6a2a66..b2e66208d399 100644 --- a/dev-util/spirv-tools/Manifest +++ b/dev-util/spirv-tools/Manifest @@ -1 +1,2 @@ DIST spirv-tools-1.3.283.0.tar.gz 3177854 BLAKE2B 385ee01d6559d84711c1ba1a0256ecb91472bdfce920560011678e042df1a921378b234812a446ce49d46697549f202309382d10d69b1e29e53d0394ebbd3f23 SHA512 45c521307c8df2d74bdf811a50ff37028a45a77f58dcac910924f3490dfe3f8e9dacace77dab989d8d261528cd0f0a8e36ca7627dda608b9b09afb2e374736e5 +DIST spirv-tools-1.3.290.0.tar.gz 3170780 BLAKE2B 37609534f77e411ffb90e2904e847b2baec80332b5f3d3d3fb6950d835f9526fb95778d4c903574cf8be142370a69cace50d2e69d41e2eccf5f74a764464c148 SHA512 d4e8440c0843fb084dde4a576b95442783ab8204670b199798bd87f754d77f3c258bb69ab1d4dd7859c1d2c681ed8813309c76c6f70b5a7d8d21b6a48ef63b67 diff --git a/dev-util/spirv-tools/spirv-tools-1.3.290.0.ebuild b/dev-util/spirv-tools/spirv-tools-1.3.290.0.ebuild new file mode 100644 index 000000000000..8c5305b6b291 --- /dev/null +++ b/dev-util/spirv-tools/spirv-tools-1.3.290.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=SPIRV-Tools +PYTHON_COMPAT=( python3_{10..13} ) +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}" + 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 +} |