From 1633b821e2d81378798462e4ed606bc8f5e25b64 Mon Sep 17 00:00:00 2001 From: TheK0tYaRa Date: Sun, 5 Apr 2026 01:48:48 +0300 Subject: [PATCH] limine build llvm deps were ass --- sys-boot/limine/Manifest | 1 + sys-boot/limine/limine-10.8.4.ebuild | 54 ++++++++++++++++++++++++++++ sys-boot/limine/metadata.xml | 48 +++++++++++++++++++++++++ 3 files changed, 103 insertions(+) create mode 100644 sys-boot/limine/Manifest create mode 100644 sys-boot/limine/limine-10.8.4.ebuild create mode 100644 sys-boot/limine/metadata.xml diff --git a/sys-boot/limine/Manifest b/sys-boot/limine/Manifest new file mode 100644 index 0000000..0c48d40 --- /dev/null +++ b/sys-boot/limine/Manifest @@ -0,0 +1 @@ +DIST limine-10.8.4.tar.gz 607662 BLAKE2B e2aed179b9f88750e5829c8c4b7693c64fd296b0a1f3f182340330e750e955306f648cccee649560a9e111ccc8978421b9da9e702e694da24cd62830110943d1 SHA512 4ef18e78b2f483722be23e19870e15217f90e5a6c72b53a925654971fe1cdee8f036aca057821e8d2e9a24e1c9b815fbdd20b639850b08b2c8c7e72dfec4db42 diff --git a/sys-boot/limine/limine-10.8.4.ebuild b/sys-boot/limine/limine-10.8.4.ebuild new file mode 100644 index 0000000..64bd62a --- /dev/null +++ b/sys-boot/limine/limine-10.8.4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( {19..21} ) +inherit llvm-r2 + +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 uefi-cd uefi-ia32 uefi-x86-64 uefi-aarch64 uefi-riscv64 uefi-loongarch64" + +#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 + uefi-cd? ( sys-fs/mtools ) + uefi-aarch64? ( llvm-core/clang[llvm_targets_AArch64] ) + uefi-ia32? ( llvm-core/clang[llvm_targets_ARM] ) + uefi-loongarch64? ( llvm-core/clang[llvm_targets_LoongArch] ) + uefi-riscv64? ( llvm-core/clang[llvm_targets_RISCV] ) + uefi-x86-64? ( llvm-core/clang[llvm_targets_X86] ) +" +# $(llvm_gen_dep " +# llvm-core/llvm:\${LLVM_SLOT}[${MY_LLVM_FLAGS}] +# llvm-core/clang:\${LLVM_SLOT}[${MY_LLVM_FLAGS}] +# llvm-core/lld:\${LLVM_SLOT} +# ") + +src_configure() { + local myconf=( + "$(use_enable bios)" + "$(use_enable bios-cd)" + "$(use_enable bios-pxe)" + + "$(use_enable uefi-ia32)" + "$(use_enable uefi-x86-64)" + "$(use_enable uefi-aarch64)" + "$(use_enable uefi-riscv64)" + "$(use_enable uefi-loongarch64)" + "$(use_enable uefi-cd)" + ) + + econf "${myconf[@]}" +} diff --git a/sys-boot/limine/metadata.xml b/sys-boot/limine/metadata.xml new file mode 100644 index 0000000..e9caf53 --- /dev/null +++ b/sys-boot/limine/metadata.xml @@ -0,0 +1,48 @@ + + + + + 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 IA32 (32-bit x86) UEFI support. + + + Enable x86-64 UEFI support. + + + Enable AArch64 UEFI support. + + + Enable 64-bit RISC-V UEFI support. + + + Enable 64-bit LoongArch UEFI support. + + + Enable building limine-uefi-cd.bin using sys-fs/mtools. + + + + Enable legacy x86 BIOS/MBR boot support. + + + Enables legacy x86 BIOS PXE boot support. + + + Enables legacy x86 BIOS boot support for CDs. + + +