commit:     d5402132e52f817a7c2d046042f9c8c96951bcdf
Author:     John M. Harris Jr. <johnmh <AT> johnmh <DOT> me>
AuthorDate: Sun Sep 15 21:02:03 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 19 01:25:52 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5402132

sys-apps/fwupd-efi: add 1.6-r1

Update PYTHON_COMPAT for python3_13.

Signed-off-by: John M. Harris Jr. <johnmh <AT> johnmh.me>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/fwupd-efi/fwupd-efi-1.6-r1.ebuild | 64 ++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

diff --git a/sys-apps/fwupd-efi/fwupd-efi-1.6-r1.ebuild 
b/sys-apps/fwupd-efi/fwupd-efi-1.6-r1.ebuild
new file mode 100644
index 000000000000..7406eca63ae0
--- /dev/null
+++ b/sys-apps/fwupd-efi/fwupd-efi-1.6-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit meson python-any-r1 secureboot
+
+DESCRIPTION="EFI executable for fwupd"
+HOMEPAGE="https://fwupd.org";
+
+if [[ ${PV} = *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/fwupd/fwupd-efi.git";
+else
+       
SRC_URI="https://github.com/fwupd/${PN}/releases/download/${PV}/${P}.tar.xz";
+       KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+fi
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+
+# uswid is used as a CLI tool, hence no Pythonic stuff
+BDEPEND="$(python_gen_any_dep '
+               dev-python/pefile[${PYTHON_USEDEP}]
+       ')
+       sys-apps/uswid
+       virtual/pkgconfig"
+
+DEPEND=">=sys-boot/gnu-efi-3.0.18"
+
+python_check_deps() {
+       python_has_version "dev-python/pefile[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+       python-any-r1_pkg_setup
+       secureboot_pkg_setup
+}
+
+src_prepare() {
+       default
+
+       python_fix_shebang "${S}/efi"
+}
+
+src_configure() {
+       local emesonargs=(
+               -Defi-libdir="${EPREFIX}"/usr/$(get_libdir)
+               -Defi_sbat_distro_id="gentoo"
+               -Defi_sbat_distro_summary="Gentoo GNU/Linux"
+               -Defi_sbat_distro_pkgname="${PN}"
+               -Defi_sbat_distro_version="${PVR}"
+               
-Defi_sbat_distro_url="https://packages.gentoo.org/packages/${CATEGORY}/${PN}";
+       )
+
+       meson_src_configure
+}
+
+src_install() {
+       meson_src_install
+       secureboot_auto_sign
+}

Reply via email to