diff options
author | Nick Sarnie <sarnex@gentoo.org> | 2024-01-17 18:56:31 -0500 |
---|---|---|
committer | Nick Sarnie <sarnex@gentoo.org> | 2024-01-17 19:32:26 -0500 |
commit | a7dbb32a07a6881efc7732734e756fbcb77be4e9 (patch) | |
tree | ea3b18e0f4af29cea5ce8d7e1de22368c3abbb09 /dev-util/spirv-tools | |
parent | dev-util/spirv-headers: add 1.3.275 (diff) | |
download | gentoo-a7dbb32a07a6881efc7732734e756fbcb77be4e9.tar.gz gentoo-a7dbb32a07a6881efc7732734e756fbcb77be4e9.tar.bz2 gentoo-a7dbb32a07a6881efc7732734e756fbcb77be4e9.zip |
dev-util/spirv-tools: add 1.3.275
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.275.ebuild | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-util/spirv-tools/Manifest b/dev-util/spirv-tools/Manifest index 70926af0328e..9d2820c2ad04 100644 --- a/dev-util/spirv-tools/Manifest +++ b/dev-util/spirv-tools/Manifest @@ -1,2 +1,3 @@ DIST spirv-tools-1.3.261.tar.gz 3140272 BLAKE2B 2ec477c28d62e792ea86ec460fe4a3320f6f162376822e2d30f229187bc6c9c8f61f32695f459f5f75cdc836cad0da189b4e81fc0e82869c0398ddcb367c6af4 SHA512 b494c8daf0e863f100926636c6a8e44d34b9423d548afd6ddf81dbc44b171543246a934d90e943f9bc75e180a6554c15724ab4e1f9561725abd41c46a76befb3 DIST spirv-tools-1.3.268.tar.gz 3148758 BLAKE2B ddf4c132dcea80d2f631a001d545b46f3f23f72600edd880d90b9693060d7cc57ad45faa0b752c520c43b9f1c199f6656e988a95256bfae064eeccd21277fc6f SHA512 317ce91ae229efddb98028840fbb6c9000c6a09aace2f04c2f59fdeb3a73b8fdb75048bf5a2189135a734a30b1ead57dc7dc5fcfd70a7267d17c743238a19899 +DIST spirv-tools-1.3.275.tar.gz 3153781 BLAKE2B 963504946f9e7b89959da8e280c15027ebe330877e6878d1c03ee163ed5b464f62f3203bd9efc1fcfd85842ff9acfb939ee89029642ac304de44395861a402f3 SHA512 f17692509ecfbd753a853eaa01d559c06b06fa15b287971da814044418da71a94813606acfe536fa519e8aeba92bdfc80971acb749dab6e7cc395773c4f05693 diff --git a/dev-util/spirv-tools/spirv-tools-1.3.275.ebuild b/dev-util/spirv-tools/spirv-tools-1.3.275.ebuild new file mode 100644 index 000000000000..e56a93c97cb2 --- /dev/null +++ b/dev-util/spirv-tools/spirv-tools-1.3.275.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_{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 ~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 +} |