sys-boot/limine: new package, add 10.0.1

Signed-off-by: Kacper Słomiński <kacper.slominski72@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@gentoo.org>
This commit is contained in:
Kacper Słomiński
2025-09-28 14:03:16 +02:00
committed by Sam James
parent 6e772d5755
commit 66f5d72b4e
3 changed files with 98 additions and 0 deletions

1
sys-boot/limine/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST limine-10.0.1.tar.gz 569294 BLAKE2B 34a559072c103e1d56c4b9d718198ba8591b51b9ef943266810c44067549e51cc3e5c002cd90aa8d075f04ecfc79d529b9b5f675a84796a04a4555088bddd9f5 SHA512 38de027c9f5dd242f77f30dfee22f0a8ebc7d8a5f8532329df0b892efb92b1c7e171b0385645ef1964c545139910d2ba2e217a2fb23258c54e000583abe1c5a1

View File

@@ -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[@]}"
}

View File

@@ -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>kacper.slominski72@gmail.com</email>
<name>Kacper Słomiński</name>
</maintainer>
<maintainer type="person" proxied="proxy">
<email>sam@gentoo.org</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>