From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B4ACA158083 for ; Thu, 19 Sep 2024 01:26:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E06EE29AE; Thu, 19 Sep 2024 01:26:42 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E95A4E29AE for ; Thu, 19 Sep 2024 01:26:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3D0FA34300A for ; Thu, 19 Sep 2024 01:26:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4312227F1 for ; Thu, 19 Sep 2024 01:26:38 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1726709152.d5402132e52f817a7c2d046042f9c8c96951bcdf.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/fwupd-efi/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/fwupd-efi/fwupd-efi-1.6-r1.ebuild X-VCS-Directories: sys-apps/fwupd-efi/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d5402132e52f817a7c2d046042f9c8c96951bcdf X-VCS-Branch: master Date: Thu, 19 Sep 2024 01:26:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bf73646a-e7c8-4a5a-8f22-3487540f9130 X-Archives-Hash: 3632f2489ad535c1a4a4998d27825d4b commit: d5402132e52f817a7c2d046042f9c8c96951bcdf Author: John M. Harris Jr. johnmh me> AuthorDate: Sun Sep 15 21:02:03 2024 +0000 Commit: Sam James gentoo 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.me> Signed-off-by: Sam James 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 +}