limine without useless deps

This commit is contained in:
TheK0tYaRa 2025-08-22 21:45:56 +00:00
parent c4c0cd1cea
commit 270e7ddb99
3 changed files with 92 additions and 0 deletions

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

@ -0,0 +1 @@
DIST limine-9.6.0.tar.gz 572260 BLAKE2B 67ea63ac546c0562f16039319e91fb1ff45b24fc4e351297fa0f4154c93ac8ff5415ad2ee70ecd2c8441412734de8b94937e4de7269f404d24b4054c4cf1c366 SHA512 3f32619cc53b80f53a24c031ff675854c8439dbf8a4c68b8d557f5a2cdee42bc76634175ae16183d146e8cd323e0c45bf612aaa0f1f3503907100a3940e2178d

View file

@ -0,0 +1,49 @@
# 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://github.com/limine-bootloader/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="X86"
#"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,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>kacper.slominski72@gmail.com</email>
<name>Kacper Słomiński</name>
</maintainer>
<upstream>
<remote-id type="github">limine-bootloader/limine</remote-id>
</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>