summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2024-12-07 00:13:43 +0100
committerConrad Kostecki <conikost@gentoo.org>2024-12-07 00:37:45 +0100
commit4de21ff5cb677c0ee6f9520b239bc6f7337cee97 (patch)
treeeaa5d8264921df10f021f433bfc344e63f0121f7 /dev-util/spirv-llvm-translator
parentdev-libs/level-zero: add 1.19.2 (diff)
downloadgentoo-4de21ff5cb677c0ee6f9520b239bc6f7337cee97.tar.gz
gentoo-4de21ff5cb677c0ee6f9520b239bc6f7337cee97.tar.bz2
gentoo-4de21ff5cb677c0ee6f9520b239bc6f7337cee97.zip
dev-util/spirv-llvm-translator: add 19.1.2
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-util/spirv-llvm-translator')
-rw-r--r--dev-util/spirv-llvm-translator/Manifest1
-rw-r--r--dev-util/spirv-llvm-translator/spirv-llvm-translator-19.1.2.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 6f38d7c12615..52234dadf6bd 100644
--- a/dev-util/spirv-llvm-translator/Manifest
+++ b/dev-util/spirv-llvm-translator/Manifest
@@ -6,3 +6,4 @@ DIST spirv-llvm-translator-18.1.4.tar.gz 1701536 BLAKE2B f9326299bd239721752c2b8
DIST spirv-llvm-translator-18.1.6.tar.gz 1714419 BLAKE2B 0c9e1732ff5809d3f1c9aa91ec92a988accd2b207bb48c46f4fbfd95bc146df5a1c50065b0a050eba000e5cc1dd9a2b9098432cf423a3cb1687e39adffb24edb SHA512 30d85fcd767cdae8b29f65dff50f2449e3421477634edcec67e88e92eeb77ec724c46eed4e90274d8697955c79fc26650c268839ed4612aee096b2d4707af728
DIST spirv-llvm-translator-18.1.7.tar.gz 1715822 BLAKE2B f08303689294f1e9adc9f869bae50f052b52f3b811b7ba43c08f0bf883e66ddbaeab046c8716820af67c1da57e722d4ced160288ec6e51c2e44a818077dd24f0 SHA512 fe78b95022dccf3b63abd4872001f43b3cd64ccba8910dea4c2bc6ee77236adb920cdb614b662d1b85090e2ae4c1bc8083074d225cce11166f258170a8540b63
DIST spirv-llvm-translator-19.1.1.tar.gz 1762107 BLAKE2B 60b248253185e241f5f5786b3d73194b24a2022047764ad95c0a14fc897ef89d40551f7b9b517ee5a3404adfcf2b2d25808e419a5f9863219feec9e1f5ce8cc5 SHA512 fb97ba38bfaefa1dbd181a1ab710dd94780db73aa3de2bbf60ff2eb62b9ab387962468ab71cbf910fb842fd217dcf2961148452c4a57d84013aa61b2458ae1c1
+DIST spirv-llvm-translator-19.1.2.tar.gz 1767303 BLAKE2B c96b0640082c83a20258932824919479dece2973de2eeb17066ffeaa372083699322787a451465d754b419a7a7ad0d2eeb9c9372ba4695be4d333d65861500ae SHA512 91d768324f835ed891be51a7de1f752100b2d4df7f138137979cc928b23394a0d9c5ad4dbb06a203f7bc101483a667cba84b8eacc7d66e011426dda169cc14fd
diff --git a/dev-util/spirv-llvm-translator/spirv-llvm-translator-19.1.2.ebuild b/dev-util/spirv-llvm-translator/spirv-llvm-translator-19.1.2.ebuild
new file mode 100644
index 000000000000..69a16f04bd1d
--- /dev/null
+++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-19.1.2.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=( 19 )
+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
+}