commit: 66f5d72b4e4344bfffc1691f916e80729128f38c Author: Kacper Słomiński <kacper.slominski72 <AT> gmail <DOT> com> AuthorDate: Sun Sep 28 12:03:16 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Oct 3 00:43:20 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66f5d72b
sys-boot/limine: new package, add 10.0.1 Signed-off-by: Kacper Słomiński <kacper.slominski72 <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43971 Closes: https://github.com/gentoo/gentoo/pull/43971 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-boot/limine/Manifest | 1 + sys-boot/limine/limine-10.0.1.ebuild | 48 +++++++++++++++++++++++++++++++++++ sys-boot/limine/metadata.xml | 49 ++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+) diff --git a/sys-boot/limine/Manifest b/sys-boot/limine/Manifest new file mode 100644 index 000000000000..c479ec43eb55 --- /dev/null +++ b/sys-boot/limine/Manifest @@ -0,0 +1 @@ +DIST limine-10.0.1.tar.gz 569294 BLAKE2B 34a559072c103e1d56c4b9d718198ba8591b51b9ef943266810c44067549e51cc3e5c002cd90aa8d075f04ecfc79d529b9b5f675a84796a04a4555088bddd9f5 SHA512 38de027c9f5dd242f77f30dfee22f0a8ebc7d8a5f8532329df0b892efb92b1c7e171b0385645ef1964c545139910d2ba2e217a2fb23258c54e000583abe1c5a1 diff --git a/sys-boot/limine/limine-10.0.1.ebuild b/sys-boot/limine/limine-10.0.1.ebuild new file mode 100644 index 000000000000..9b2376e848ba --- /dev/null +++ b/sys-boot/limine/limine-10.0.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( {16..20} ) +inherit llvm-r1 + +DESCRIPTION="Limine is a modern, advanced, and portable BIOS/UEFI multiprotocol bootloader" +HOMEPAGE="https://limine-bootloader.org/" +SRC_URI="https://codeberg.org/Limine/Limine/releases/download/v${PV}/limine-${PV}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+bios +bios-pxe +bios-cd +cd-efi +uefi32 +uefi64 +uefiaa64 +uefirv64 +uefiloong64" + +MY_LLVM_TARGETS="AArch64 ARM X86 RISCV LoongArch" +MY_LLVM_FLAGS="llvm_targets_${MY_LLVM_TARGETS// /(-),llvm_targets_}(-)" + +BDEPEND=" + app-alternatives/gzip + dev-lang/nasm + sys-apps/findutils + $(llvm_gen_dep " + llvm-core/llvm:\${LLVM_SLOT}[${MY_LLVM_FLAGS}] + llvm-core/clang:\${LLVM_SLOT}[${MY_LLVM_FLAGS}] + llvm-core/lld:\${LLVM_SLOT} + ") + cd-efi? ( sys-fs/mtools ) +" + +src_configure() { + local myconf=( + "$(use_enable bios)" + "$(use_enable bios-cd)" + "$(use_enable bios-pxe)" + + "$(use_enable uefi32 uefi-ia32)" + "$(use_enable uefi64 uefi-x86-64)" + "$(use_enable uefiaa64 uefi-aarch64)" + "$(use_enable uefirv64 uefi-riscv64)" + "$(use_enable uefiloong64 uefi-loongarch64)" + "$(use_enable cd-efi uefi-cd)" + ) + + econf "${myconf[@]}" +} diff --git a/sys-boot/limine/metadata.xml b/sys-boot/limine/metadata.xml new file mode 100644 index 000000000000..c33539c0e733 --- /dev/null +++ b/sys-boot/limine/metadata.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>[email protected]</email> + <name>Kacper Słomiński</name> + </maintainer> + <maintainer type="person" proxied="proxy"> + <email>[email protected]</email> + <name>Sam James</name> + </maintainer> + <upstream> + <remote-id type="github">limine-bootloader/limine</remote-id> + <remote-id type="codeberg">Limine/Limine</remote-id> + <bugs-to>https://codeberg.org/Limine/Limine/issues</bugs-to> + <changelog>https://codeberg.org/Limine/Limine/src/branch/trunk/ChangeLog</changelog> + </upstream> + <use> + <flag name="uefi32"> + Enable 32-bit UEFI support. + </flag> + <flag name="uefi64"> + Enable 64-bit UEFI support. + </flag> + <flag name="uefiaa64"> + Enable AArch64 UEFI support. + </flag> + <flag name="uefirv64"> + Enable 64-bit RISC-V UEFI support. + </flag> + <flag name="uefiloong64"> + Enable 64-bit LoongArch UEFI support. + </flag> + <flag name="cd-efi"> + Enable building cd-efi.bin using <pkg>sys-fs/mtools</pkg>. + This flag was previously known as eltorito-efi. + </flag> + + <flag name="bios"> + Enable BIOS/MBR boot support. + </flag> + <flag name="bios-pxe"> + Enables BIOS PXE boot support. + </flag> + <flag name="bios-cd"> + Enables BIOS boot support for CDs. + </flag> + </use> +</pkgmetadata>
