From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C7331158128 for ; Sun, 15 Jun 2025 01:51:23 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id B1A17342396 for ; Sun, 15 Jun 2025 01:51:23 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 758631104F6; Sun, 15 Jun 2025 01:51:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 640E61104F6 for ; Sun, 15 Jun 2025 01:51:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1D7DE335CED for ; Sun, 15 Jun 2025 01:51:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 70C2629B8 for ; Sun, 15 Jun 2025 01:51:10 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1749952168.9e641c8b869b69c0745d43d15a9cf4acd64ff524.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/spirv-llvm-translator/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/spirv-llvm-translator/Manifest dev-util/spirv-llvm-translator/spirv-llvm-translator-20.1.3.ebuild X-VCS-Directories: dev-util/spirv-llvm-translator/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 9e641c8b869b69c0745d43d15a9cf4acd64ff524 X-VCS-Branch: master Date: Sun, 15 Jun 2025 01:51:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0fea8bad-5f9f-4ee6-984c-5432f4a8982a X-Archives-Hash: 03bf011e9aa5be1fcb1b6132883c12e2 commit: 9e641c8b869b69c0745d43d15a9cf4acd64ff524 Author: Sam James gentoo org> AuthorDate: Sun Jun 15 01:49:28 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jun 15 01:49:28 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e641c8b dev-util/spirv-llvm-translator: add 20.1.3 Bug: https://bugs.gentoo.org/956761 Signed-off-by: Sam James gentoo.org> dev-util/spirv-llvm-translator/Manifest | 1 + .../spirv-llvm-translator-20.1.3.ebuild | 61 ++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/dev-util/spirv-llvm-translator/Manifest b/dev-util/spirv-llvm-translator/Manifest index 7bad9d9d4370..2c6447a9c29d 100644 --- a/dev-util/spirv-llvm-translator/Manifest +++ b/dev-util/spirv-llvm-translator/Manifest @@ -15,3 +15,4 @@ DIST spirv-llvm-translator-19.1.5.tar.gz 1770088 BLAKE2B f74d4c0d9d7268e84c36e90 DIST spirv-llvm-translator-19.1.6.tar.gz 1771001 BLAKE2B 63265f97c85883602604819a9cd017eab8c289ddf492f3a791842690b93981182cea056a56e83c4461ae0f55830fe28c36d42dca01b7169bc779cd347bffddb2 SHA512 8b6589741a964ecfaf0f4cc8cb5e3165e03e76dbf310d4f5b29968b1ceffd32081a2f7c94544f8772619cf5963b31e308f1067506c0b7e8b9e04b8c174fce9a5 DIST spirv-llvm-translator-19.1.8.tar.gz 1778352 BLAKE2B 1207b75af1282d3207db2a07e90175575cc16a60959ab54d89c3965e577f5527eeb91b11b59fbe687b35703def1739c02338bed710ffce4882e83e54d425b661 SHA512 4372c5c155c0b84f86955469f72151e42b5e62b33e9b24b2b60b7ecd41d417cc43c2dda3e02f40e61c837045f3b65d6291bd995500572859ed047c11fe0377d6 DIST spirv-llvm-translator-20.1.1.tar.gz 1807510 BLAKE2B 5371655f4abe776f35ccc57ef88d0118f8fed71e22241b34beb7d8b8b93a4cfc286ba3c09dc24157d9d721a9259fc55281ff222270ecc02ba0483d4ad930d38f SHA512 7d527b4c0aef18790fb3ec81335df60ea970b9a0935fe7002423e93c36a9053456fdcabfd9954358c26a9d0b0ac4a2670fe2e05108c1d8de8d458027564a1eff +DIST spirv-llvm-translator-20.1.3.tar.gz 1807825 BLAKE2B afe81f41642c8d20f7e9d8402fa9c225b8410687e965858f490123b75f6063178d363f4910283cf4d794a7e7373047393c12e48dc5be2b31f1f52511eddeb8cd SHA512 13758dc809302d7dd5228a7cc21ea9c27043427424626cd3de32a330407a9c308a7b3e10c20e96548e34b316dd59362cca91e56fafb8cb1e3490d3dccf8f1741 diff --git a/dev-util/spirv-llvm-translator/spirv-llvm-translator-20.1.3.ebuild b/dev-util/spirv-llvm-translator/spirv-llvm-translator-20.1.3.ebuild new file mode 100644 index 000000000000..d0e6f083b07e --- /dev/null +++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-20.1.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( 20 ) +MY_PN="SPIRV-LLVM-Translator" +MY_P="${MY_PN}-${PV}" + +inherit cmake-multilib flag-o-matic llvm-r2 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 ~loong ~riscv ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-util/spirv-tools[${MULTILIB_USEDEP}] + llvm-core/llvm:${SLOT}=[${MULTILIB_USEDEP}] +" +DEPEND="${RDEPEND} + >=dev-util/spirv-headers-1.4.309.0 +" +BDEPEND=" + virtual/pkgconfig + test? ( + dev-python/lit + llvm-core/clang:${SLOT} + ) +" + +src_prepare() { + append-flags -fPIC + cmake_src_prepare + + # do not force a specific LLVM version to find_package(), this only + # causes issues and we force a specific path anyway + sed -i -e '/find_package/s:${BASE_LLVM_VERSION}::' CMakeLists.txt || 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 +}