logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: bda85bd518370d2e6559242e96cc766d7fc23417
parent a27f7dbb779240f59e46524bc146ee43cc99aecd
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 16 Aug 2023 00:35:05 +0200

sys-firmware/edk2-tools: new package, add 202305

Diffstat:

Asys-firmware/edk2-tools/Manifest1+
Asys-firmware/edk2-tools/edk2-tools-202305.ebuild44++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/sys-firmware/edk2-tools/Manifest b/sys-firmware/edk2-tools/Manifest @@ -0,0 +1 @@ +DIST edk2-stable202305.tar.gz 15351015 BLAKE2B 8f9e126d9e7a394cf0e31f0ef812af812bae3c056c9988879f1c144aa291de9b5fd762e74db646163d2c486e7a5ee154b647fb01ffa8933a6f69f9bdc68082b0 SHA512 7eaf1b05ef7653333c0a74bc051a3946ee672dfc1af25923540e5fef9c01951acd0e4d81e71f6965ae643454c88cc4b8c4ac8d217d47c9babce1fffcf8a6e382 diff --git a/sys-firmware/edk2-tools/edk2-tools-202305.ebuild b/sys-firmware/edk2-tools/edk2-tools-202305.ebuild @@ -0,0 +1,44 @@ +# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="tools for processing UEFI firmware content (EfiRom, GenFfs, ...)" +HOMEPAGE="https://github.com/tianocore/edk2" +SRC_URI="https://github.com/tianocore/edk2/archive/edk2-stable${PV}.tar.gz" +S="${WORKDIR}/edk2-edk2-stable${PV}/BaseTools" +LICENSE="BSD-2 MIT" +SLOT="0" +KEYWORDS="-* ~amd64" +IUSE="" + +# util-linux for libuuid.so +DEPEND="sys-apps/util-linux" +RDEPEND="${DEPEND}" + +# Includes manuals but RTF-formatted +BDEPEND="sys-apps/help2man" + +src_prepare() { + default + + # Remove brotli which pulls submodules + sed -i -e '/BrotliCompress/d' Source/C/GNUmakefile || die +} + +src_compile() { + emake -C Source/C \ + BUILD_CC="${CC}" \ + BUILD_CXX="${CXX}" \ + BUILD_AS="${AS}" \ + BUILD_AR="${AR}" \ + BUILD_LD="${LD}" +} + +src_install() { + dobin Source/C/bin/* + for bin in Source/C/bin/*; do + help2man -s1 -n "$(basename "$bin")" -N -o "$bin".1 $bin + doman "$bin".1 + done +}