public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Turner" <mattst88@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/mesa_clc/
Date: Wed, 07 May 2025 18:12:27 +0000 (UTC)	[thread overview]
Message-ID: <1746640047.9c93b70d95f3e06a499b0eeda01a68c74e08a19a.mattst88@gentoo> (raw)

commit:     9c93b70d95f3e06a499b0eeda01a68c74e08a19a
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Wed May  7 17:39:42 2025 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed May  7 17:47:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c93b70d

dev-util/mesa_clc: Version bump to 25.1.0

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

 dev-util/mesa_clc/Manifest               |   1 +
 dev-util/mesa_clc/mesa_clc-25.1.0.ebuild | 123 +++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)

diff --git a/dev-util/mesa_clc/Manifest b/dev-util/mesa_clc/Manifest
index 57141ede10b0..0d0d47674bc6 100644
--- a/dev-util/mesa_clc/Manifest
+++ b/dev-util/mesa_clc/Manifest
@@ -5,3 +5,4 @@ DIST mesa-25.0.3.tar.xz 46736740 BLAKE2B 8b32119756c422b780b466ed4ba60660d2c91f8
 DIST mesa-25.0.4.tar.xz 46770664 BLAKE2B b661bc1534bff848c32c559ecc790fd7770682aa7f35403c2fb50b899ad83dbbafb2baecf0e372972849378a4a539eeafe5e9c9e1497ab4313ebcafa89f6e248 SHA512 562a97bd0374ff2a76f71c848df4fe542f1fc66c420a9101eb4bb1947d00eee4417d9c6f2d1be19638663753785c19384f8a6dc078c3187448ab79413d906152
 DIST mesa-25.0.5.tar.xz 46793824 BLAKE2B f17f8c2a733fd3c37f346b9304241dc1d13e01df9c8c723b73b10279dd3c2ebed062ec1f15cdbc8b9936bae840a087b23ac38cae7d8982228d582d468ab8c9c9 SHA512 d65e027829e3bef60bc0e3e71160e6b3721e797e2157c71dbeef0cd6e202f8f8098b3cd41159cd0e96e520eaf92ea49c2c9bb1af1a54867b6a7c551c2197c068
 DIST mesa-25.1.0-rc3.tar.xz 46891124 BLAKE2B 3f9733b70b0b0e547421cc14a510a7d4dc8f41da44eed485b7fbba96a015cf80540e32bcfd798e4f6e0e3cc9cefdfd8bd0ef8c23c146e770fbbf4b39d7690a31 SHA512 ddea755adad0434dccdbe6f42d17a8f755e99dea0130be883a45f49aeb63612942ea0a15d15027ece788ab44dd99d78bf96235e6af4d93ab05f2a545097d1467
+DIST mesa-25.1.0.tar.xz 46937848 BLAKE2B 5057c6664ca135177d0ccf9cc0c6e0c6ea7efa4cff7ee626050bec1682c9e864dc684c5579eff6a9df77ac0f7280bf10e6e93474d0369de250ccf38c9dc7d104 SHA512 40298370727fa1ad6d59be8692dfef01c42e41780816e9b951a05f779c7acca127162d2d3cedfccb7bfe3834b9e917c2b9bc6cb76887488d919cb61741a1da1a

diff --git a/dev-util/mesa_clc/mesa_clc-25.1.0.ebuild b/dev-util/mesa_clc/mesa_clc-25.1.0.ebuild
new file mode 100644
index 000000000000..a93de2d73bce
--- /dev/null
+++ b/dev-util/mesa_clc/mesa_clc-25.1.0.ebuild
@@ -0,0 +1,123 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( {18..19} )
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit llvm-r1 meson python-any-r1
+
+MY_PV="${PV/_/-}"
+
+DESCRIPTION="mesa_clc tool used for building OpenCL C to SPIR-V"
+HOMEPAGE="https://mesa3d.org/"
+
+if [[ ${PV} == 9999 ]]; then
+	S="${WORKDIR}/mesa_clc-${MY_PV}"
+	EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
+	inherit git-r3
+else
+	S="${WORKDIR}/mesa-${MY_PV}"
+	SRC_URI="https://archive.mesa3d.org/mesa-${MY_PV}.tar.xz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+VIDEO_CARDS="asahi panfrost"
+for card in ${VIDEO_CARDS}; do
+	IUSE_VIDEO_CARDS+=" video_cards_${card}"
+done
+IUSE="${IUSE_VIDEO_CARDS} debug"
+
+RDEPEND="
+	dev-util/spirv-tools
+	$(llvm_gen_dep '
+		dev-util/spirv-llvm-translator:${LLVM_SLOT}
+		llvm-core/clang:${LLVM_SLOT}=
+		=llvm-core/libclc-${LLVM_SLOT}*
+		llvm-core/llvm:${LLVM_SLOT}=
+	')
+"
+DEPEND="${RDEPEND}
+	dev-libs/expat
+	>=sys-libs/zlib-1.2.8:=
+	x11-libs/libdrm
+"
+BDEPEND="
+	${PYTHON_DEPS}
+	$(python_gen_any_dep "
+		>=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]
+		dev-python/packaging[\${PYTHON_USEDEP}]
+		dev-python/pyyaml[\${PYTHON_USEDEP}]
+	")
+	virtual/pkgconfig
+"
+
+python_check_deps() {
+	python_has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]" &&
+	python_has_version -b "dev-python/packaging[${PYTHON_USEDEP}]" &&
+	python_has_version -b "dev-python/pyyaml[${PYTHON_USEDEP}]" || return 1
+}
+
+pkg_setup() {
+	llvm-r1_pkg_setup
+	python-any-r1_pkg_setup
+}
+
+src_configure() {
+	tools_enable video_cards_asahi asahi
+	tools_enable video_cards_panfrost panfrost
+
+	tools_list() {
+		local tools="$(sort -u <<< "${1// /$'\n'}")"
+		echo "${tools//$'\n'/,}"
+	}
+
+	PKG_CONFIG_PATH="$(get_llvm_prefix)/$(get_libdir)/pkgconfig"
+
+	use debug && EMESON_BUILDTYPE=debug
+
+	local emesonargs=(
+		-Dllvm=enabled
+		-Dshared-llvm=enabled
+		-Dmesa-clc=enabled
+		-Dinstall-mesa-clc=true
+		-Dprecomp-compiler=enabled
+		-Dinstall-precomp-compiler=true
+		-Dtools=$(tools_list "${TOOLS[*]}")
+
+		-Dgallium-drivers=''
+		-Dvulkan-drivers=''
+
+		# Set platforms empty to avoid the default "auto" setting. If
+		# platforms is empty meson.build will add surfaceless.
+		-Dplatforms=''
+
+		-Dglx=disabled
+		-Dlibunwind=disabled
+		-Dzstd=disabled
+
+		-Db_ndebug=$(usex debug false true)
+	)
+
+	meson_src_configure
+}
+
+src_install() {
+	dobin "${BUILD_DIR}"/src/compiler/clc/mesa_clc
+	dobin "${BUILD_DIR}"/src/compiler/spirv/vtn_bindgen2
+	use video_cards_asahi && dobin "${BUILD_DIR}"/src/asahi/clc/asahi_clc
+	use video_cards_panfrost && dobin "${BUILD_DIR}"/src/panfrost/clc/panfrost_compile
+}
+
+# $1 - VIDEO_CARDS flag (check skipped for "--")
+# other args - names of tools to enable
+tools_enable() {
+	if [[ $1 == -- ]] || use $1; then
+		shift
+		TOOLS+=("$@")
+	fi
+}


             reply	other threads:[~2025-05-07 18:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-07 18:12 Matt Turner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-11  4:05 [gentoo-commits] repo/gentoo:master commit in: dev-util/mesa_clc/ Arthur Zamarin
2025-05-10  8:26 Arthur Zamarin
2025-05-08  6:23 Sam James
2025-05-02 17:33 Matt Turner
2025-04-30 18:02 Matt Turner
2025-04-17  2:56 Matt Turner
2025-04-02 17:36 Matt Turner
2025-03-21  2:00 Matt Turner
2025-03-10 16:18 Matt Turner
2025-02-19 17:35 Matt Turner
2025-02-19 17:35 Matt Turner
2025-02-12 17:46 Matt Turner
2025-02-05 21:54 Matt Turner
2025-02-05 21:54 Matt Turner
2025-02-05  1:35 Matt Turner

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=1746640047.9c93b70d95f3e06a499b0eeda01a68c74e08a19a.mattst88@gentoo \
    --to=mattst88@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