blob: 5d41343f77947444b20f289697df5b6b2b74706d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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[@]}"
}
|