summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2024-11-11 23:21:12 -0500
committerMatt Turner <mattst88@gentoo.org>2024-11-11 23:21:50 -0500
commit12558787e16614cd84e5f9fcfdcd61659893bd5f (patch)
tree9150d4e58fe949c1c81f4abcc876001668ed9e56 /dev-util
parentapp-containers/buildah: add 1.38.0 (diff)
downloadgentoo-12558787e16614cd84e5f9fcfdcd61659893bd5f.tar.gz
gentoo-12558787e16614cd84e5f9fcfdcd61659893bd5f.tar.bz2
gentoo-12558787e16614cd84e5f9fcfdcd61659893bd5f.zip
dev-util/spirv-llvm-translator: Version bump to 18.1.6
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/spirv-llvm-translator/Manifest1
-rw-r--r--dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.6.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-util/spirv-llvm-translator/Manifest b/dev-util/spirv-llvm-translator/Manifest
index 99b5ff60ebcb..24e3fcd2cc1b 100644
--- a/dev-util/spirv-llvm-translator/Manifest
+++ b/dev-util/spirv-llvm-translator/Manifest
@@ -3,4 +3,5 @@ DIST spirv-llvm-translator-16.0.4.tar.gz 1589087 BLAKE2B 51cebc05fbc8ffc4d765b15
DIST spirv-llvm-translator-17.0.0.tar.gz 1601166 BLAKE2B c3e7a78fa55cd13ba61c024e2d3d82c47ac9dbf8c11bcbcf4ddc34a6838fb948885a263fd9af2d0f404b31f4c6e9226c9582e0f65b3220770e1af07cf85f4dac SHA512 ee54e597c678755cb48d677f81184d66616c7be934b570e04f0106e64c15f1cab124177b757f08a7713fa7fce981c74d61304d4554e6d198e6c14c53abf1e81c
DIST spirv-llvm-translator-17.0.4.tar.gz 1631063 BLAKE2B c55c5160355b797d52f8368c2d780dc89b6f92108bf22a8de7232327b4cd1c12531766bbe061b5c23926a4a8fa55394fba23e573346cfb8a12261b3c8aeec67c SHA512 454426b3146348c5128e1e6663068f34a2babca5a90864d6cff7fe3bf997ad64cf916759ebd294b3b4c20d89b1f0914e2943554761968425f92ebb48f85d0d28
DIST spirv-llvm-translator-18.1.4.tar.gz 1701536 BLAKE2B f9326299bd239721752c2b8dacb7ad5b053e189aae2374848c581e3a6110789c4e4078c1efb69bf8fdd01b30df445821130e92c1285b9cb791dbd290f796d183 SHA512 f0f7e9c3e6544707bb20cbda523f6081be42f5acb513d99b326ed0753f8d285bfb301934fa7ea78fc60bcb5672306f0ffb8a7937cc731c2bb08b72f4b7f5ef61
+DIST spirv-llvm-translator-18.1.6.tar.gz 1714419 BLAKE2B 0c9e1732ff5809d3f1c9aa91ec92a988accd2b207bb48c46f4fbfd95bc146df5a1c50065b0a050eba000e5cc1dd9a2b9098432cf423a3cb1687e39adffb24edb SHA512 30d85fcd767cdae8b29f65dff50f2449e3421477634edcec67e88e92eeb77ec724c46eed4e90274d8697955c79fc26650c268839ed4612aee096b2d4707af728
DIST spirv-llvm-translator-19.1.1.tar.gz 1762107 BLAKE2B 60b248253185e241f5f5786b3d73194b24a2022047764ad95c0a14fc897ef89d40551f7b9b517ee5a3404adfcf2b2d25808e419a5f9863219feec9e1f5ce8cc5 SHA512 fb97ba38bfaefa1dbd181a1ab710dd94780db73aa3de2bbf60ff2eb62b9ab387962468ab71cbf910fb842fd217dcf2961148452c4a57d84013aa61b2458ae1c1
diff --git a/dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.6.ebuild b/dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.6.ebuild
new file mode 100644
index 000000000000..b397ef0e39b5
--- /dev/null
+++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.6.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( 18 )
+MY_PN="SPIRV-LLVM-Translator"
+MY_P="${MY_PN}-${PV}"
+
+inherit cmake-multilib flag-o-matic llvm-r1 multiprocessing
+
+DESCRIPTION="Bi-directional translator between SPIR-V and LLVM IR"
+HOMEPAGE="https://github.com/KhronosGroup/SPIRV-LLVM-Translator"
+SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="UoI-NCSA"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-util/spirv-tools[${MULTILIB_USEDEP}]
+ sys-devel/llvm:${SLOT}=[${MULTILIB_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ >=dev-util/spirv-headers-1.3.280
+"
+BDEPEND="
+ virtual/pkgconfig
+ test? (
+ dev-python/lit
+ sys-devel/clang:${SLOT}
+ )
+"
+
+PATCHES=(
+)
+
+src_prepare() {
+ append-flags -fPIC
+ cmake_src_prepare
+
+ # https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/2555
+ sed -i -e 's/%triple/x86_64-unknown-linux-gnu/' test/DebugInfo/X86/*.ll || die
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DCCACHE_ALLOWED="OFF"
+ -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix)"
+ -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR="${ESYSROOT}/usr/include/spirv"
+ -DLLVM_SPIRV_INCLUDE_TESTS=$(usex test "ON" "OFF")
+ -Wno-dev
+ )
+
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ lit -vv "-j${LIT_JOBS:-$(makeopts_jobs)}" "${BUILD_DIR}/test" || die
+}