From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1640577-garchives=archives.gentoo.org@lists.gentoo.org>
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 (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 64D921582ED
	for <garchives@archives.gentoo.org>; Sun,  9 Jun 2024 15:37:43 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B0345E2AA5;
	Sun,  9 Jun 2024 15:37:42 +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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 90C02E2AA5
	for <gentoo-commits@lists.gentoo.org>; Sun,  9 Jun 2024 15:37:42 +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))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id A5F03340C76
	for <gentoo-commits@lists.gentoo.org>; Sun,  9 Jun 2024 15:37:41 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 3C972117D
	for <gentoo-commits@lists.gentoo.org>; Sun,  9 Jun 2024 15:37:40 +0000 (UTC)
From: "Matt Turner" <mattst88@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" <mattst88@gentoo.org>
Message-ID: <1717947456.16944dcb8cca5e4a4fb0c1729ac1e299f0ccb77b.mattst88@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-18.1.1.ebuild
X-VCS-Directories: dev-util/spirv-llvm-translator/
X-VCS-Committer: mattst88
X-VCS-Committer-Name: Matt Turner
X-VCS-Revision: 16944dcb8cca5e4a4fb0c1729ac1e299f0ccb77b
X-VCS-Branch: master
Date: Sun,  9 Jun 2024 15:37:40 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 37770547-4a45-4dad-883a-a3280148e727
X-Archives-Hash: 9a8959255d736b2d1e58cc4ec1420f66

commit:     16944dcb8cca5e4a4fb0c1729ac1e299f0ccb77b
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  9 15:31:08 2024 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sun Jun  9 15:37:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16944dcb

dev-util/spirv-llvm-translator: Version bump to 18.1.1

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 dev-util/spirv-llvm-translator/Manifest            |  1 +
 .../spirv-llvm-translator-18.1.1.ebuild            | 63 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-util/spirv-llvm-translator/Manifest b/dev-util/spirv-llvm-translator/Manifest
index 8dc8889441eb..6ad673895b5a 100644
--- a/dev-util/spirv-llvm-translator/Manifest
+++ b/dev-util/spirv-llvm-translator/Manifest
@@ -2,3 +2,4 @@ DIST spirv-llvm-translator-15.0.0.tar.gz 1515145 BLAKE2B 1f93b55f8934ce7dbc9416b
 DIST spirv-llvm-translator-16.0.0.tar.gz 1542060 BLAKE2B bee72a776062266e60c5237396434ecba4e4da959ed52292ad08388bdd08d7749fd86cfac5c25af424032a1ba19f59b2d8c7eac0eaf50db6a4945841abe0836f SHA512 0bacacb89aa2b03d1173d1bfbcdd83fdce7441ebc3fff65e14dc5e901fc983861365a54c029b2a65075b6fa45046c30aa7bbad4e6150cf3382e7d050c598de98
 DIST spirv-llvm-translator-17.0.0.tar.gz 1601166 BLAKE2B c3e7a78fa55cd13ba61c024e2d3d82c47ac9dbf8c11bcbcf4ddc34a6838fb948885a263fd9af2d0f404b31f4c6e9226c9582e0f65b3220770e1af07cf85f4dac SHA512 ee54e597c678755cb48d677f81184d66616c7be934b570e04f0106e64c15f1cab124177b757f08a7713fa7fce981c74d61304d4554e6d198e6c14c53abf1e81c
 DIST spirv-llvm-translator-18.1.0.tar.gz 1689216 BLAKE2B 944463e64cf9ab8e90df7f599b979aa2b807340e41f94192b4581df836722e829169bf3fd301aeabbab3b70b046a3fbbc010a8ca600f65ec9466e807ea442c46 SHA512 ee124ae536a3fc1f25d0e4f9f553efb1755c5dba39d669d24a4acadb5a99938ce6018f82a8925181f3f05c86ae4bebf9e1bbaa0846fd611cace770f4d9baa984
+DIST spirv-llvm-translator-18.1.1.tar.gz 1694904 BLAKE2B 7e39a3592e02d3253b6e3c2583a9d0a38584e7e4ce91560dd9ec66c1fe4170fd486e5b7422afdae5da375bc878f33ce1852d2bc4c7ea426e8fd872391802ed70 SHA512 65aad3102d7484ac8a9ce8fdbaef3a0324540683a43e41fb03d8f21a9a58abebc4dfac7932d8fce7054d407b614e239370cda868a1afb15d0f16984116b3cbcb

diff --git a/dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.1.ebuild b/dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.1.ebuild
new file mode 100644
index 000000000000..63f846f23177
--- /dev/null
+++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_MAX_SLOT="18"
+MY_PN="SPIRV-LLVM-Translator"
+MY_P="${MY_PN}-${PV}"
+
+inherit cmake flag-o-matic llvm 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
+	sys-devel/llvm:${SLOT}=
+"
+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
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DCCACHE_ALLOWED="OFF"
+		-DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
+		-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR="${ESYSROOT}/usr/include/spirv"
+		-DLLVM_SPIRV_INCLUDE_TESTS=$(usex test "ON" "OFF")
+		-Wno-dev
+	)
+
+	cmake_src_configure
+}
+
+src_test() {
+	lit -vv "-j${LIT_JOBS:-$(makeopts_jobs)}" "${BUILD_DIR}/test" || die
+}