dev-util/spirv-tools: Version bump
authorNick Sarnie <sarnex@gentoo.org>
Wed, 29 Apr 2020 21:52:35 +0000 (17:52 -0400)
committerNick Sarnie <sarnex@gentoo.org>
Wed, 29 Apr 2020 22:03:28 +0000 (18:03 -0400)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
dev-util/spirv-tools/Manifest
dev-util/spirv-tools/spirv-tools-2020.4_pre20200429.ebuild [new file with mode: 0644]
dev-util/spirv-tools/spirv-tools-9999.ebuild

index bf8106121175f1a064fa72463278a965871068b5..f426f1c2e812d33a31922cc35c05e30371a93d7b 100644 (file)
@@ -1,2 +1,3 @@
 DIST spirv-tools-2019.10_pre20191027.tar.gz 1848978 BLAKE2B 174482c7186569878ec6f3409a68a3e11013b12798ffbbfb94c66ae6cd338a3375330908cfebf0cd3c67901bf9c2459c6e586cf95bbf4fee399504aa9958da66 SHA512 d26480b6c70acbdf63e36fb5ed11ce422b976d48ef85e2be263c3897a4d5181c31fb94c087fa7b20f84446f0059c3bb7eac872a6d1b15a599fdeb2a7924232e4
 DIST spirv-tools-2020.1.tar.gz 2053947 BLAKE2B d9e641407e871cda5680e9ddac6af5213848b03ef9d13b9fe1acffcea12e9e40b43a834f9e0ae269f43dfffdc19bfaeca502b69ff69d59b95f6810f89b6bd276 SHA512 edd434e06cba44c402900684b8fea16c394f80951ff993b3962617a21630d2d8ff9be9a5203bc8eb9b402e9cafe8c68f13099cbc1eaf66a546df08cb43668c46
+DIST spirv-tools-2020.4_pre20200429.tar.gz 2158602 BLAKE2B 1368fd1d446db447ecc20b7aa06e4a64f2a0278825e1384d789cf0ad0a0d7be4064b49e60d1a79c676056c0c22be5dd855f880a1288a11ad31fe96172e9cc0a6 SHA512 e6412306d7923a8e922edf48b1300f0b0ed35d126e3f56ceaa0c787ff2ff5625d20cf1fab14e022b2503dac0b469eb4ecff01f74f6e18884630f161d03d84728
diff --git a/dev-util/spirv-tools/spirv-tools-2020.4_pre20200429.ebuild b/dev-util/spirv-tools/spirv-tools-2020.4_pre20200429.ebuild
new file mode 100644 (file)
index 0000000..d5aca0e
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2020 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_{6,7,8} )
+inherit cmake-multilib python-any-r1
+
+if [[ ${PV} == *9999* ]]; then
+       EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git"
+       inherit git-r3
+else
+       SNAPSHOT_COMMIT="49ca250b44c633ba7cb8897002e62781a451421c"
+       SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/${SNAPSHOT_COMMIT}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~ppc64 ~x86"
+       S="${WORKDIR}"/${MY_PN}-${SNAPSHOT_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-1.5.3"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND=""
+BDEPEND="${PYTHON_DEPS}
+       ${COMMON_DEPEND}"
+
+multilib_src_configure() {
+       local mycmakeargs=(
+               "-DSPIRV-Headers_SOURCE_DIR=/usr/"
+               "-DSPIRV_WERROR=OFF"
+       )
+
+       cmake_src_configure
+}
index 3c8fb137c2e3264a33051469aa76e8c7798abc3f..97f9e9c256270471c2f05bfdf7f4c18b785c2959 100644 (file)
@@ -25,7 +25,7 @@ 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-1.5.1"
+COMMON_DEPEND=">=dev-util/spirv-headers-1.5.3"
 DEPEND="${COMMON_DEPEND}"
 RDEPEND=""
 BDEPEND="${PYTHON_DEPS}