View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
_DEFSCOMMIT="fbc63f24b53198cd1dd604fff0d2989c185bb207"
DESCRIPTION="Minimal implementation of a UKI compatible efi stub."
HOMEPAGE="https://git.pinkro.se/Rose/gardenhouse/stem.git/about/"
SRC_URI="https://git.pinkro.se/Rose/gardenhouse/${PN}.git/snapshot/${P}.tar.gz
https://git.pinkro.se/Rose/gardenhouse/efi-defs.git/snapshot/efi-defs-${_DEFSCOMMIT}.tar.bz2 -> efidefs-${PV}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="* -~*"
IUSE=""
BDEPEND="dev-python/pyelftools"
src_unpack() {
unpack ${P}.tar.gz
unpack efidefs-${PV}.tar.bz2
mv efi-defs-* ${P}/subprojects/efi-defs
}
src_configure() {
local emesonargs=(
-Dc_link_args="-Wl,-z,norelro"
-Dcpp_link_args="-Wl,-z,norelro"
)
meson_src_configure
}
src_compile() {
meson_src_compile
}
src_install() {
meson_src_install
}