From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (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 D21F9158245 for ; Fri, 6 Dec 2024 23:38:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC29AE0996; Fri, 6 Dec 2024 23:38:45 +0000 (UTC) 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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 317E6E0999 for ; Fri, 6 Dec 2024 23:38:45 +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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0964B341C25 for ; Fri, 6 Dec 2024 23:38:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 670981F0B for ; Fri, 6 Dec 2024 23:38:42 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1733528265.4de21ff5cb677c0ee6f9520b239bc6f7337cee97.conikost@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-19.1.2.ebuild X-VCS-Directories: dev-util/spirv-llvm-translator/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 4de21ff5cb677c0ee6f9520b239bc6f7337cee97 X-VCS-Branch: master Date: Fri, 6 Dec 2024 23:38:42 +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: d6f058d7-343c-43b6-9320-c01d738b0a00 X-Archives-Hash: 3888c33edc3da11c3988d08aaf982842 commit: 4de21ff5cb677c0ee6f9520b239bc6f7337cee97 Author: Conrad Kostecki gentoo org> AuthorDate: Fri Dec 6 23:13:43 2024 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Fri Dec 6 23:37:45 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4de21ff5 dev-util/spirv-llvm-translator: add 19.1.2 Signed-off-by: Conrad Kostecki gentoo.org> dev-util/spirv-llvm-translator/Manifest | 1 + .../spirv-llvm-translator-19.1.2.ebuild | 63 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) 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 +}