summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Sarnie <sarnex@gentoo.org>2022-02-19 16:52:04 -0500
committerNick Sarnie <sarnex@gentoo.org>2022-02-19 21:07:03 -0500
commitcd618fb3aef2e25bd32f1615b594585f75498e5b (patch)
treecfad8993045e3273cb2746e15f62106e99453f1b /dev-util
parentdev-util/spirv-headers: Version bump (diff)
downloadgentoo-cd618fb3aef2e25bd32f1615b594585f75498e5b.tar.gz
gentoo-cd618fb3aef2e25bd32f1615b594585f75498e5b.tar.bz2
gentoo-cd618fb3aef2e25bd32f1615b594585f75498e5b.zip
dev-util/spirv-tools: Version bump
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/spirv-tools/Manifest1
-rw-r--r--dev-util/spirv-tools/spirv-tools-1.3.204.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-util/spirv-tools/Manifest b/dev-util/spirv-tools/Manifest
index df28c0831ed8..ea1dcaf652dd 100644
--- a/dev-util/spirv-tools/Manifest
+++ b/dev-util/spirv-tools/Manifest
@@ -1 +1,2 @@
DIST spirv-tools-1.2.198.tar.gz 2888894 BLAKE2B 036f2457863c1bff47939d6238d6f270baee67253edeb5dc4cb1270eb32b9fdb6427c959bde4c5496056784c0334922276b9a4e0ac5530a4c662abdf0190f119 SHA512 90a53d0c7c6dfeb5ef2ee3e8b92c00cd39211f18f57aaeae079ac95b94ec4c839443017eb39fbee0f737d0c070ed64e2369609e81dba149f08676724b254f714
+DIST spirv-tools-1.3.204.tar.gz 2905656 BLAKE2B 9bea5d91243283a0a167913fe531f0778915c03ec4db3f152d88f0952aa0df0e92bfa57762876c61277fedf99f156bdacbbd934333afb8376555a96566edb81e SHA512 f71738d5494c1e7bc38aeb8b2c89dcf24bb14eb6fcac1b14a794d47427ffadffc8e2b7b793b234e7146847744975a5d20de18043447a50a31af305e8ce4b1214
diff --git a/dev-util/spirv-tools/spirv-tools-1.3.204.ebuild b/dev-util/spirv-tools/spirv-tools-1.3.204.ebuild
new file mode 100644
index 000000000000..ac0beb4ad14f
--- /dev/null
+++ b/dev-util/spirv-tools/spirv-tools-1.3.204.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN=SPIRV-Tools
+CMAKE_ECLASS="cmake"
+PYTHON_COMPAT=( python3_{8..10} )
+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 ~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"
+COMMON_DEPEND="~dev-util/spirv-headers-${PV}"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND=""
+BDEPEND="${PYTHON_DEPS}
+ ${COMMON_DEPEND}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ "-DSPIRV-Headers_SOURCE_DIR=${ESYSROOT}/usr/"
+ "-DSPIRV_WERROR=OFF"
+ "-DSPIRV_TOOLS_BUILD_STATIC=OFF"
+ "-DBUILD_SHARED_LIBS=ON"
+ )
+
+ cmake_src_configure
+}