From cb211b5067be4f8189a2c7e6522454c884b39824 Mon Sep 17 00:00:00 2001 From: James Calligeros Date: Fri, 15 Nov 2024 10:45:15 +1000 Subject: [PATCH] media-libs/mesa-asahi-flatpak: add 24.3.0_pre20241111 Signed-off-by: James Calligeros --- media-libs/mesa-asahi-flatpak/Manifest | 2 + ...sa-asahi-flatpak-24.3.0_pre20241111.ebuild | 71 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 media-libs/mesa-asahi-flatpak/mesa-asahi-flatpak-24.3.0_pre20241111.ebuild diff --git a/media-libs/mesa-asahi-flatpak/Manifest b/media-libs/mesa-asahi-flatpak/Manifest index dbce545..cd7b3ee 100644 --- a/media-libs/mesa-asahi-flatpak/Manifest +++ b/media-libs/mesa-asahi-flatpak/Manifest @@ -1,2 +1,4 @@ DIST mesa-asahi-flatpak-24.3.0_pre20241104-2308.rpm 32919674 BLAKE2B fbd06b46ae6672680b307fab7b715f2cfe51c28d5d7ecad4d2f256e98ca02b266584dbc7533b0c264817c1ac7c789cff91f9891fc308ea5c7c7cd44b78b5dac7 SHA512 42f6a43954c96870a9bb778dffa0522935413bd0a4a7c1e7c8bbe7295f0ca7707ab9a31d047590b737136e995d000df5d1f687a602a85f8bf1dcec4a30a32e46 DIST mesa-asahi-flatpak-24.3.0_pre20241104-2408.rpm 33115928 BLAKE2B 9f462f51bf9a0ca1293002c136ab1f8f49db9f9c8236c07bf6caa00feca1230b72915c68cf62460ec70e778d646dbace77d9bc4c344a9c704bbe40887b44fa77 SHA512 d5db1a94e08796ab3a321afb957f2fc05326639488b8aa29af5fa82ee4e3351732e07a1344d5310bc86d049aedbe94f16dcd94b7df569be42be202d2a38520ce +DIST mesa-asahi-flatpak-24.3.0_pre20241111-2308.rpm 32931738 BLAKE2B dbbb7ef50d2d7d64da2e266be7b33df2faf5fd857b884db261afc5112f4aafb9c847571771cf78674d1fb8e64bafe79b76c65a393b73cba2bae4ece679cb439e SHA512 2b2a60c61bd0adc2b8c8de0aa5ce8dcb22585aab53eb6bdcff1e586c8b52b00b47a8d3345e3394759881947b9c4c37471cf02921d5c7fbd01165b3616f1ca6ba +DIST mesa-asahi-flatpak-24.3.0_pre20241111-2408.rpm 33119170 BLAKE2B 05d373c5a23c74de7a89abe0fd23876d63090b1c8bbf2a9a0cf7e21fab6799e38d9f1ca2888b3478684e7eea68ba6d708728785a06d9fd2c77c6b7d23d521a55 SHA512 3e16dd85ec3cd0d918c443060d23578f77806391cce0ec4ca64affc124e3a2b236a2b86686671fc78470c2cfe2971cd8bdff89da3adf32c280597e499ebf1002 diff --git a/media-libs/mesa-asahi-flatpak/mesa-asahi-flatpak-24.3.0_pre20241111.ebuild b/media-libs/mesa-asahi-flatpak/mesa-asahi-flatpak-24.3.0_pre20241111.ebuild new file mode 100644 index 0000000..25177cd --- /dev/null +++ b/media-libs/mesa-asahi-flatpak/mesa-asahi-flatpak-24.3.0_pre20241111.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( 18 ) + +inherit rpm + +DESCRIPTION="Asahi OpenGL Extension for Flatpak" +HOMEPAGE="https://asahilinux.org https://flatpak.org" + +SRC_URI=" +2308? ( + https://download.copr.fedorainfracloud.org/results/@asahi/flatpak/fedora-41-aarch64/08243876-mesa-asahi-23.08-flatpak/mesa-asahi-23.08-flatpak-24.3.0~asahipre20241111-1.aarch64.rpm -> ${P}-2308.rpm +) + +2408? ( + https://download.copr.fedorainfracloud.org/results/@asahi/flatpak/fedora-41-aarch64/08261719-mesa-asahi-24.08-flatpak/mesa-asahi-24.08-flatpak-24.3.0~asahipre20241111-1.aarch64.rpm -> ${P}-2408.rpm +) +" + +S="${WORKDIR}" + +LICENSE="MIT SGI-B-2.0" +SLOT="0" + +KEYWORDS="~arm64" + +IUSE="+2308 +2408" +REQUIRED_USE="|| ( 2308 2408 )" + +RDEPEND=" + sys-apps/flatpak + ~media-libs/mesa-${PV} +" + +DEPEND="${RDEPEND} +" +BDEPEND=" + app-arch/rpm2targz +" + +src_unpack() { + use 2308 && ( + mkdir "${WORKDIR}/${P}-2308" || die + cd "${WORKDIR}/${P}-2308" || die + rpm_unpack ${P}-2308.rpm + ) + + use 2408 && ( + mkdir "${WORKDIR}/${P}-2408" || die + cd "${WORKDIR}/${P}-2408" || die + rpm_unpack ${P}-2408.rpm + ) +} + +src_prepare() { + default +} + +mesa-asahi-flatpak_install() { + local ver="${1}" + insinto / + doins -r "${WORKDIR}/${P}-${ver}/var/" +} + +src_install() { + use 2308 && mesa-asahi-flatpak_install "2308" + use 2408 && mesa-asahi-flatpak_install "2408" +}