dev-util/mesa_clc: Version bump to 25.2.8

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner 2025-12-04 04:37:43 -05:00
parent 06a2b9d193
commit 86fd08395e
No known key found for this signature in database
GPG Key ID: ACEB29740C9A4E97
2 changed files with 124 additions and 0 deletions

View File

@ -3,4 +3,5 @@ DIST mesa-25.1.9.tar.xz 47219748 BLAKE2B df326ae261fb417022af48b6edc1a5dc512c46a
DIST mesa-25.2.5.tar.xz 43723176 BLAKE2B 375237d23918e09b7dab4f4abd2c3b24a046521d6e247043c5fbeb7d8a33d71471b23572d254f0ad489a2533094568ef6f067a57977a7ccc1805aa735c3f8b7d SHA512 29e61b5ecb467a706e3279c0e79ddd8d55109c08f7856d35c4042f518a70622fb19cdd208a82317654e0396835cb3117b756a96d9a0693bfa33730a50bbbd1d0
DIST mesa-25.2.6.tar.xz 43752752 BLAKE2B 40ce74df4049787ed56fc1605f9e2c9e77d0f157b006381493e11f518db977a7d02c33c7d1dc50c9700fe02478877ca240b526cdddea24a8602c0ae88081e087 SHA512 c34f55132ee9097a7c4961745bf07a08fc612bf0f7c570c023fedb16c8eafbefdc1cc022f722c345780bb14ec4ce25d9a206a9196d9d51c97b389db5160de9cc
DIST mesa-25.2.7.tar.xz 43783492 BLAKE2B 7e834275fc23760e76c944cd83440e26bbc6286bb4bad75d7344a62934dc472e9f9f24a756e3b7488a617c2934dbdefd91bf79847ea09b5767ea3ccc2fdf5173 SHA512 87dd815e0d11d6ec0eb969ee93d3f376103bb899d90599e0b7902394e41c58139384df79f89633e132ca969348d3320f55308a74651d409b454d51f1bcda27bc
DIST mesa-25.2.8.tar.xz 43813260 BLAKE2B 953b87f36d8bffc1bc5a5eef3f14da8ec8735bc0b7916e0bd9b7766bf71a574cc7c17054f6bb638f769d122356713c7617c661599c41cfb37144e66a8dcdd92f SHA512 a238965ee235bd9178d26b210fc3996b77927dab31964b76cd1e1e72cfffbefbd96e4a57ec4f5018205a58354cd41d6cf99bbc712b275a7518710a34511dfb13
DIST mesa-25.3.0.tar.xz 43281808 BLAKE2B 54cd99f9a4f14bf070f5525a91a776f0b7042ce7c056bf8db388baa5c98e0065799cdc376c0c42205b08eff18f252b6e7be5987e44fb628b97a360a7e89c300f SHA512 46df9e5e27f9a36cf893a68ad4a465fcc6efe1bcb46ad8d4b015699ad1a11e582b8d41f4157326556af603fe454b2ff34ecc17a0c742b5fd9ce5f0097106fec5

View File

@ -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
>=virtual/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
}