diff --git a/sys-boot/limine/Manifest b/sys-boot/limine/Manifest new file mode 100644 index 0000000000000..c479ec43eb55d --- /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 0000000000000..9b2376e848bac --- /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 0000000000000..c33539c0e7332 --- /dev/null +++ b/sys-boot/limine/metadata.xml @@ -0,0 +1,49 @@ + + + + + kacper.slominski72@gmail.com + Kacper Słomiński + + + sam@gentoo.org + Sam James + + + limine-bootloader/limine + Limine/Limine + https://codeberg.org/Limine/Limine/issues + https://codeberg.org/Limine/Limine/src/branch/trunk/ChangeLog + + + + Enable 32-bit UEFI support. + + + Enable 64-bit UEFI support. + + + Enable AArch64 UEFI support. + + + Enable 64-bit RISC-V UEFI support. + + + Enable 64-bit LoongArch UEFI support. + + + Enable building cd-efi.bin using sys-fs/mtools. + This flag was previously known as eltorito-efi. + + + + Enable BIOS/MBR boot support. + + + Enables BIOS PXE boot support. + + + Enables BIOS boot support for CDs. + + +