From 4aa26a203d1d8c584311b80123d98c3ad8cf6d73 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Tue, 1 Oct 2024 15:17:56 -0400 Subject: sys-boot/limine: new package --- sys-boot/limine/Manifest | 1 + sys-boot/limine/limine-8.0.13.ebuild | 47 ++++++++++++++++++++++++++++++++++++ sys-boot/limine/metadata.xml | 27 +++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 sys-boot/limine/Manifest create mode 100644 sys-boot/limine/limine-8.0.13.ebuild create mode 100644 sys-boot/limine/metadata.xml (limited to 'sys-boot') diff --git a/sys-boot/limine/Manifest b/sys-boot/limine/Manifest new file mode 100644 index 0000000..515aa98 --- /dev/null +++ b/sys-boot/limine/Manifest @@ -0,0 +1 @@ +DIST limine-8.0.13.tar.xz 407784 BLAKE2B 2722b6a644766b181bb456605a16fb957eecfa2808303443fc890b28074bfe11961f8f3ffa904c890b867ad7c4eca105bb6d727a98d405c075ad603ecea2e011 SHA512 116082e74e15a1f2cc0e13a14b215929902589da08ff2dc8617de1a87e9ae9ba9fe81f6e40f56f00860841034feac93609601fc2557df25ee602d71933784be3 diff --git a/sys-boot/limine/limine-8.0.13.ebuild b/sys-boot/limine/limine-8.0.13.ebuild new file mode 100644 index 0000000..5d41343 --- /dev/null +++ b/sys-boot/limine/limine-8.0.13.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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.xz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="abi_x86_32 abi_x86_64 bios bios-pxe bios-cd uefi uefi-cd" + +BDEPEND=" + app-alternatives/gzip + dev-lang/nasm + sys-apps/findutils + uefi-cd? ( sys-fs/mtools ) +" + +REQUIRED_USE=" + bios? ( || ( amd64 x86 ) ) + bios-cd? ( || ( amd64 x86 ) ) + bios-pxe? ( || ( amd64 x86 ) ) +" + +src_configure() { + local myconf=( + $(use_enable bios) + $(use_enable bios-cd) + $(use_enable bios-pxe) + + $(use_enable uefi-cd) + ) + + if use uefi; then + myconf+=( + $(use_enable abi_x86_32 uefi-ia32) + $(use_enable abi_x86_64 uefi-x86-64) + $(use_enable arm64 uefi-aarch64) + $(use_enable riscv uefi-riscv64) + ) + fi + + econf "${myconf[@]}" +} diff --git a/sys-boot/limine/metadata.xml b/sys-boot/limine/metadata.xml new file mode 100644 index 0000000..6b13f02 --- /dev/null +++ b/sys-boot/limine/metadata.xml @@ -0,0 +1,27 @@ + + + + + arsen@gentoo.org + Arsen Arsenović + + + limine-bootloader/limine + + + + 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. + + + -- cgit v1.2.3-70-g09d2