public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/spirv-llvm-translator/
Date: Mon, 27 Dec 2021 01:38:05 +0000 (UTC)	[thread overview]
Message-ID: <1640568956.12d9888238882ab0e9e0285664e488656f842424.sam@gentoo> (raw)

commit:     12d9888238882ab0e9e0285664e488656f842424
Author:     Jan Henke <Jan.Henke <AT> taujhe <DOT> de>
AuthorDate: Thu Dec 23 20:46:21 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec 27 01:35:56 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12d98882

dev-util/spirv-llvm-translator: Version bump (13.0.0)

Besides bumping the matching LLVM version, this version requires the
upstream SPIRV header files, so an additonal CMAKE argument is required
to point to the installed headers (and they are a new build time
dependency).

LLVM eclass sadly does not support EAPI 8 yet, so this ebuild remains at
7.

Closes: https://bugs.gentoo.org/829845
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Jan Henke <Jan.Henke <AT> taujhe.de>
Closes: https://github.com/gentoo/gentoo/pull/23485
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/spirv-llvm-translator/Manifest            |  2 +
 .../spirv-llvm-translator-13.0.0.ebuild            | 60 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/dev-util/spirv-llvm-translator/Manifest b/dev-util/spirv-llvm-translator/Manifest
index d57d8a32e3ff..cb2ec4d8a7b7 100644
--- a/dev-util/spirv-llvm-translator/Manifest
+++ b/dev-util/spirv-llvm-translator/Manifest
@@ -1,2 +1,4 @@
 DIST spirv-llvm-translator-11.1.0_pre20210212.tar.gz 702962 BLAKE2B 0c46b898e2d6c293b1db7b4aa65af7830869329cebc35e930b73f98dc038ae50d6adbdd9c6951e2ad427982d2a565c0925ecd056105cc37222b0d8ce7eb2e43b SHA512 3b8503be3ad65422f59ddbfd715a913dd6dab9416a14aea9e6a6793b2c959edaaab5433a3e253ee84c0b3644024a1f8a6b563af65e7aaad209c5f51e524cc96b
 DIST spirv-llvm-translator-12.0.0.tar.gz 1378222 BLAKE2B 059409364403316f84521e231bc14cade2875c2b914acea95619b0920ae4f13babb26411b20fead1d7a028320fa3aea637d087d869759cb23e3266753b5b2f46 SHA512 c23ef81802d2bf743564762815d7375a804bdf8029efd7430faea0b48b5e30a9778c1175f52309b522a07aadf8ff77461b912c1fb3b95af9b09273a483eac82a
+DIST spirv-llvm-translator-13.0.0-rename-OpConstFunctionPointerINTEL.patch.bz2 3632 BLAKE2B b2c3ed9ff1040fef12cd5b7962c71f2e52febbf1e1d1d06bee079093940c32e67f7c246c92876207f296677bd655f91447d0ce837f191cd0d4cfb66adfb11a62 SHA512 bba6a9b838ebf0bd29f5fa906fefcecdb1b3832b15ac1af8a1ed86da0e988385172b1a51468a4d8d97352c4a57c3e224f12d7e24b7a202a38353e2dbd3a2c27c
+DIST spirv-llvm-translator-13.0.0.tar.gz 1436324 BLAKE2B 254450f153a0f0d7c0a75005705f4a7d90effa1e6bcde0d6b931195e4a925ddc34896e66b686c55583d50ab99a9e1e45ad1c0600f7fa4eaa2039642460e9b711 SHA512 1ce7a38c2c3447249e19d50063a7a2acf32699905572950e4f102d8ce1680785433035154b7b55782d5a56211a50e042aef775836f37c33fe847b347a02b5a04

diff --git a/dev-util/spirv-llvm-translator/spirv-llvm-translator-13.0.0.ebuild b/dev-util/spirv-llvm-translator/spirv-llvm-translator-13.0.0.ebuild
new file mode 100644
index 000000000000..6c354c4cd277
--- /dev/null
+++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-13.0.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CMAKE_ECLASS=cmake
+
+inherit cmake-multilib flag-o-matic llvm
+
+MY_PN="SPIRV-LLVM-Translator"
+MY_P="${MY_PN}-${PV}"
+
+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"
+SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-rename-OpConstFunctionPointerINTEL.patch.bz2"
+
+LICENSE="UoI-NCSA"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE="test +tools"
+
+RESTRICT="!test? ( test )"
+
+S="${WORKDIR}/${MY_P}"
+
+RDEPEND="sys-devel/clang:${SLOT}=[${MULTILIB_USEDEP}]
+		dev-util/spirv-headers"
+DEPEND="${RDEPEND}"
+BDEPEND="test? ( dev-python/lit )"
+
+REQUIRED_USE="test? ( tools )"
+
+LLVM_MAX_SLOT="${SLOT}"
+
+PATCHES=(
+	"${WORKDIR}"/${P}-rename-OpConstFunctionPointerINTEL.patch
+)
+
+src_prepare() {
+	append-flags -fPIC
+	cmake_src_prepare
+}
+
+multilib_src_configure() {
+	local mycmakeargs=(
+		-DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
+		-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR="${BROOT}/usr/include/spirv"
+		-DLLVM_BUILD_TOOLS=$(usex tools "ON" "OFF")
+		-DLLVM_SPIRV_INCLUDE_TESTS=$(usex test "ON" "OFF")
+	)
+	cmake_src_configure
+}
+
+multilib_src_test() {
+	# Some tests fail on amd64 when ABI==x86
+	if multilib_is_native_abi; then
+		lit "${BUILD_DIR}/test" || die "Error running tests for ABI ${ABI}"
+	fi
+}


             reply	other threads:[~2021-12-27  1:38 UTC|newest]

Thread overview: 139+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-27  1:38 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-11 14:56 [gentoo-commits] repo/gentoo:master commit in: dev-util/spirv-llvm-translator/ Michał Górny
2025-03-09 16:08 Conrad Kostecki
2025-03-08 23:21 Conrad Kostecki
2025-02-05 21:43 Conrad Kostecki
2025-02-04 22:38 Conrad Kostecki
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-04 17:16 Matt Turner
2025-02-02 18:25 Michał Górny
2025-02-01 13:15 Michał Górny
2025-02-01 13:14 Michał Górny
2025-02-01 13:14 Michał Górny
2025-02-01 10:05 Michał Górny
2025-01-22 19:15 Michał Górny
2025-01-21  4:39 Michał Górny
2025-01-21  4:39 Michał Górny
2025-01-15 18:48 Sam James
2025-01-15 18:48 Sam James
2025-01-15 18:18 Sam James
2025-01-15 18:18 Sam James
2025-01-10  4:12 WANG Xuerui
2025-01-10  4:12 WANG Xuerui
2025-01-09  6:36 Sam James
2025-01-09  1:17 Sam James
2025-01-02 16:22 Conrad Kostecki
2024-12-14 17:36 Arthur Zamarin
2024-12-13  6:53 Arthur Zamarin
2024-12-12 21:18 Conrad Kostecki
2024-12-10 20:50 Sam James
2024-12-10 20:46 Sam James
2024-12-09 19:20 Arthur Zamarin
2024-12-07 10:49 Arthur Zamarin
2024-12-06 23:38 Conrad Kostecki
2024-12-02 16:38 Matt Turner
2024-11-12  4:21 Matt Turner
2024-11-09  1:41 Conrad Kostecki
2024-10-23  7:53 Jakov Smolić
2024-10-23  7:53 Jakov Smolić
2024-10-22 22:26 Conrad Kostecki
2024-10-22 22:26 Conrad Kostecki
2024-10-22 22:26 Conrad Kostecki
2024-10-04 15:23 Matt Turner
2024-10-04  0:10 Sam James
2024-10-04  0:10 Sam James
2024-09-29  9:52 Conrad Kostecki
2024-09-24  0:36 Matt Turner
2024-09-23  4:08 Matt Turner
2024-09-21 20:29 Conrad Kostecki
2024-09-21 15:47 Conrad Kostecki
2024-09-09 16:07 Matt Turner
2024-09-02 19:25 Sam James
2024-09-02 19:25 Sam James
2024-09-02 17:52 Matt Turner
2024-08-02  4:41 Matt Turner
2024-07-23 17:42 Sam James
2024-07-23 16:45 Jakov Smolić
2024-07-23 16:45 Jakov Smolić
2024-07-11 15:41 Matt Turner
2024-07-02 17:00 Matt Turner
2024-06-09 15:37 Matt Turner
2024-06-09  3:31 Ionen Wolkens
2024-06-07 21:59 Matt Turner
2024-04-25 19:17 Matt Turner
2024-04-02  6:09 Arthur Zamarin
2024-03-01 19:46 Arthur Zamarin
2024-02-08 21:50 Conrad Kostecki
2024-01-21 13:38 Conrad Kostecki
2023-12-17 13:18 Mart Raudsepp
2023-09-25 20:47 Matt Turner
2023-09-22 21:47 Conrad Kostecki
2023-08-14 17:57 Jakov Smolić
2023-06-17 23:22 Sam James
2023-05-23  2:58 Matt Turner
2023-05-23  2:58 Matt Turner
2023-05-23  2:58 Matt Turner
2023-05-23  2:58 Matt Turner
2023-05-23  2:58 Matt Turner
2023-05-23  2:58 Matt Turner
2023-05-23  2:58 Matt Turner
2023-05-04  3:41 Michał Górny
2023-04-25 18:48 Jakov Smolić
2023-03-25  0:11 Conrad Kostecki
2023-02-01  5:15 Michał Górny
2022-12-11 20:37 Arthur Zamarin
2022-11-11  7:04 Sam James
2022-10-26 20:09 Conrad Kostecki
2022-10-26 19:43 Conrad Kostecki
2022-09-25 23:12 Conrad Kostecki
2022-07-19  7:47 Michał Górny
2022-06-05 14:40 Conrad Kostecki
2022-04-29 21:08 Conrad Kostecki
2022-04-29 21:08 Conrad Kostecki
2022-04-25 21:35 Conrad Kostecki
2022-04-24 22:35 Conrad Kostecki
2022-04-24 22:35 Conrad Kostecki
2022-04-24 22:35 Conrad Kostecki
2022-04-24 14:41 Michał Górny
2022-04-23 15:27 Sam James
2021-12-27  1:38 Sam James
2021-10-08 21:46 Conrad Kostecki
2021-10-08 18:48 Agostino Sarubbo
2021-09-12  7:09 Agostino Sarubbo
2021-08-16 17:12 Conrad Kostecki
2021-07-16  9:39 Joonas Niilola
2021-02-27 14:39 Conrad Kostecki
2021-02-02 13:46 Joonas Niilola
2020-11-03 11:49 Marek Szuba
2020-11-03 11:40 Marek Szuba
2020-10-12 12:14 Marek Szuba
2020-09-13 13:12 Marek Szuba
2020-07-29 13:57 Marek Szuba
2020-06-19 14:31 Marek Szuba
2020-04-26 21:27 Marek Szuba
2020-03-11 19:18 Marek Szuba
2020-03-11 19:18 Marek Szuba
2020-01-27 11:31 Marek Szuba
2020-01-24 16:24 Marek Szuba
2019-10-08 14:57 Marek Szuba
2019-10-07 12:23 Marek Szuba
2019-10-07 12:23 Marek Szuba
2019-10-01 21:54 Marek Szuba
2019-08-30 14:40 Michał Górny
2019-07-08 11:44 Marek Szuba
2019-07-04 12:01 Marek Szuba
2019-07-03 16:12 Marek Szuba
2019-05-03 14:05 Marek Szuba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1640568956.12d9888238882ab0e9e0285664e488656f842424.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox