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, 01 Oct 2025 20:15:31 +0000 (UTC) [thread overview]
Message-ID: <1759349726.47ddefb312f085914e9b8cc8c6d1712f81054bfd.mattst88@gentoo> (raw)
commit: 47ddefb312f085914e9b8cc8c6d1712f81054bfd
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 1 20:11:40 2025 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Oct 1 20:15:26 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47ddefb3
dev-util/mesa_clc: Version bump to 25.2.4
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
dev-util/mesa_clc/Manifest | 1 +
dev-util/mesa_clc/mesa_clc-25.2.4.ebuild | 123 +++++++++++++++++++++++++++++++
2 files changed, 124 insertions(+)
diff --git a/dev-util/mesa_clc/Manifest b/dev-util/mesa_clc/Manifest
index ba7272a57f64..6b85cb553837 100644
--- a/dev-util/mesa_clc/Manifest
+++ b/dev-util/mesa_clc/Manifest
@@ -6,3 +6,4 @@ DIST mesa-25.2.0.tar.xz 43549344 BLAKE2B 9473c68e890992a4d88430da5896b7d209461fe
DIST mesa-25.2.1.tar.xz 43580684 BLAKE2B f7dd9dd570bc21def5b829747854143eef5fed50bbe01d17c91a0b28ae71251001d8de116347ec62578aaf7381b5f12584995ff17dab3ed33f4f678246c431f7 SHA512 913ee1d00e13bafb7275740ba0883cf949a42d45595ef5bab60038064cb27aff36285ac9105269be5c0e3b4320fc7b70ca5c5f28e2cf79457882baff7e10620b
DIST mesa-25.2.2.tar.xz 43626716 BLAKE2B bed81e32c05ebff6f2a76bb14387882eed48556737e30e2da2f5a02fbe9e9973f5fa05303e10e624bb703ef56c4fe2f48ab69f3d2806191969d73d99920b5abb SHA512 69cd7ed33d0856e227a0219a9d09e5eb2fad28162276b5971bff4f7102cf58b0d914131ad6543562cba230ce6fb9b2076d3b156b1b8c375e74722a143aee5379
DIST mesa-25.2.3.tar.xz 43670524 BLAKE2B 1810c17e589f95f1e3b18f2562a0c193016a6b9aa260387d06b0750db7c1fb08e7ad1b2476caf79cde18fa919b320de2b12508228047e8ca3af13efb2046b3fe SHA512 e03c09de2a6482a87362c0bf4fab4f9b32ffa48935a8724eb83e75b246f1bfc59524d04ea7e8cbea34e5c6ad2a0793195a076fe2d27da8fb7e05f56c7662eac5
+DIST mesa-25.2.4.tar.xz 43697664 BLAKE2B 5f9e89efb11977c8d86f92e705280af7dc136f4031d192571518c6fb9d73eb31c269f383ac5c008bece15ccc522a9cdcde4522f60cb8a626bbd9949a25856c76 SHA512 ec74e1cc101b68ad2462399554273a9debb3d93a05c0a315cde3259b250d5828cbcef7771049b52beb01d07c34122fa5257451409b1d2b7fdcbf055c0f2c863d
diff --git a/dev-util/mesa_clc/mesa_clc-25.2.4.ebuild b/dev-util/mesa_clc/mesa_clc-25.2.4.ebuild
new file mode 100644
index 000000000000..06ac2597ae7f
--- /dev/null
+++ b/dev-util/mesa_clc/mesa_clc-25.2.4.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..20} )
+PYTHON_COMPAT=( python3_{11..14} )
+
+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 ~arm ~arm64 ~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
+}
next reply other threads:[~2025-10-01 20:15 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-01 20:15 Matt Turner [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-30 1:11 [gentoo-commits] repo/gentoo:master commit in: dev-util/mesa_clc/ Matt Turner
2025-10-16 22:29 Matt Turner
2025-10-16 22:29 Matt Turner
2025-10-16 22:29 Matt Turner
2025-10-15 2:43 Matt Turner
2025-09-17 18:58 Matt Turner
2025-09-03 20:34 Matt Turner
2025-09-03 20:24 Matt Turner
2025-09-01 15:10 Matt Turner
2025-09-01 15:10 Matt Turner
2025-08-13 15:48 Matt Turner
2025-08-09 3:26 Matt Turner
2025-08-07 7:16 Sam James
2025-08-07 7:16 Sam James
2025-08-06 17:35 Matt Turner
2025-07-30 23:04 Matt Turner
2025-07-30 23:04 Matt Turner
2025-07-23 16:19 Matt Turner
2025-07-17 17:16 Matt Turner
2025-07-16 17:16 Matt Turner
2025-07-02 21:02 Matt Turner
2025-06-18 19:08 Matt Turner
2025-06-10 14:27 Matt Turner
2025-06-10 14:27 Matt Turner
2025-06-09 15:28 Matt Turner
2025-06-04 19:26 Matt Turner
2025-05-28 18:06 Matt Turner
2025-05-21 15:11 Matt Turner
2025-05-15 12:32 Matt Turner
2025-05-13 17:18 Matt Turner
2025-05-13 17:18 Matt Turner
2025-05-13 17:18 Matt Turner
2025-05-11 4:05 Arthur Zamarin
2025-05-10 8:26 Arthur Zamarin
2025-05-08 6:23 Sam James
2025-05-07 18:12 Matt Turner
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=1759349726.47ddefb312f085914e9b8cc8c6d1712f81054bfd.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