Gentoo Archives: gentoo-commits

From: Arsen Arsenovic <arsen@××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-boot/limine/
Date: Sat, 02 Apr 2022 13:42:09
Message-Id: 1648906623.56f1071e006524602929ee00350954baa64dc5ce.arsen@gentoo
1 commit: 56f1071e006524602929ee00350954baa64dc5ce
2 Author: Arsen Arsenović <arsen <AT> aarsen <DOT> me>
3 AuthorDate: Sat Apr 2 13:35:31 2022 +0000
4 Commit: Arsen Arsenovic <arsen <AT> aarsen <DOT> me>
5 CommitDate: Sat Apr 2 13:37:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=56f1071e
7
8 sys-boot/limine: add 3.0
9
10 Signed-off-by: Arsen Arsenović <arsen <AT> aarsen.me>
11
12 sys-boot/limine/Manifest | 1 +
13 sys-boot/limine/limine-3.0.ebuild | 51 +++++++++++++++++++++++++++++++++++++++
14 sys-boot/limine/metadata.xml | 8 ++++++
15 3 files changed, 60 insertions(+)
16
17 diff --git a/sys-boot/limine/Manifest b/sys-boot/limine/Manifest
18 index 814e4b804..1825a83b4 100644
19 --- a/sys-boot/limine/Manifest
20 +++ b/sys-boot/limine/Manifest
21 @@ -2,3 +2,4 @@ DIST limine-2.85.1.tar.xz 1562640 BLAKE2B 3f2070023d73c904db5fb7404168230be6a9f8
22 DIST limine-2.85.4.tar.xz 1562124 BLAKE2B 611be229e0467838ccaba575d8afc06db1e6497173fbe48fdba2d5b6401163ee097fd61bab411b7e2ae4e1dd0476e4ee5b604f47bcefac9fbba1505464c32814 SHA512 a61da3ffc7e1aed1c080d534250424594b67acfcc1502694d6d1b73a5b18143985ed3f5ef23dffa904a6aba30d46e229dc590affd333511bc2a5c30b48f62b61
23 DIST limine-2.85.tar.xz 1562456 BLAKE2B 00b0b5efd793f8ca32948529d2f06804fbae70604419c80b6a70f282b48a5a259ba9677ada81bca152fbcf86bdddac33fb63e4b8792d9cd5619649d9ff1523ee SHA512 84af1613aa335c34afcc118d0a5a4307c0a82352ea68036fbf2c5be52d156b6254688cf417f47c1685a5f84d596cb7ed8dbebc4243bdd6070039847a5dc69e02
24 DIST limine-2.88.tar.xz 3154252 BLAKE2B d3e7b081245010c7fe5218ea364a4bb825ef6b7505b33db37bdc6a0e61a43f273c443d00df6ae7b61901420704d0368b5bcad59797f3eeb403c3bb9388193927 SHA512 53bb81e1261a5a6ae45c525cb2724871a11544c2d8236d421e6cde42c34cbf4c6b4a1a322a86e8064abadf5c124525149cecd93339a748a925673fc581805cee
25 +DIST limine-3.0.tar.xz 3164168 BLAKE2B fedd161ec8957fd2b3245d8a7a6bffaeab4fa7629b5c07671287f964b8dd78396b530299a0b3f9de0c4ea0010624590ec505308b0612cfd419cbb4bc57b21496 SHA512 c92c5a6f094f7dd90bebbbaf5be59843897a66771550805e70536793549e42bdc49f4763a0eda9491235ace801ca3644697276de381240654b9cc95ea5c2e353
26
27 diff --git a/sys-boot/limine/limine-3.0.ebuild b/sys-boot/limine/limine-3.0.ebuild
28 new file mode 100644
29 index 000000000..d054a12ed
30 --- /dev/null
31 +++ b/sys-boot/limine/limine-3.0.ebuild
32 @@ -0,0 +1,51 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +WANT_LIBTOOL=none
39 +inherit autotools
40 +
41 +DESCRIPTION="Limine is a modern, advanced x86/x86_64 BIOS/UEFI multiprotocol bootloader."
42 +HOMEPAGE="https://limine-bootloader.org/"
43 +SRC_URI="https://github.com/limine-bootloader/limine/releases/download/v${PV}/limine-${PV}.tar.xz"
44 +
45 +LICENSE="BSD-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE="+bios +bios-pxe +bios-cd +limine-deploy +uefi +cd-efi +uefi32 +uefi64"
49 +REQUIRED_USE="
50 + uefi32? ( uefi )
51 + uefi64? ( uefi )
52 + cd-efi? ( uefi )
53 + uefi? ( || ( uefi32 uefi64 cd-efi ) )
54 +
55 + bios-pxe? ( bios )
56 + bios-cd? ( bios )
57 + limine-deploy? ( bios )
58 + bios? ( || ( bios-pxe bios-cd limine-deploy ) )
59 +"
60 +
61 +BDEPEND="
62 + sys-apps/findutils
63 + dev-lang/nasm
64 + app-arch/gzip
65 + cd-efi? ( sys-fs/mtools )
66 +"
67 +
68 +src_configure() {
69 + local myconf=(
70 + "$(use_enable bios)"
71 + "$(use_enable bios-cd)"
72 + "$(use_enable bios-pxe)"
73 + "$(use_enable limine-deploy)"
74 +
75 + "$(use_enable uefi)"
76 + "$(use_enable uefi32)"
77 + "$(use_enable uefi64)"
78 + "$(use_enable cd-efi)"
79 + )
80 +
81 + TOOLCHAIN="${CHOST}" \
82 + econf "${myconf[@]}"
83 +}
84
85 diff --git a/sys-boot/limine/metadata.xml b/sys-boot/limine/metadata.xml
86 index 2d767a936..76cd6a3b4 100644
87 --- a/sys-boot/limine/metadata.xml
88 +++ b/sys-boot/limine/metadata.xml
89 @@ -18,6 +18,10 @@
90 <flag name="eltorito-efi">
91 Enable building eltorito-efi.bin using <pkg>sys-fs/mtools</pkg>.
92 </flag>
93 + <flag name="cd-efi">
94 + Enable building cd-efi.bin using <pkg>sys-fs/mtools</pkg>.
95 + This flag was previously known as eltorito-efi.
96 + </flag>
97
98 <flag name="bios">
99 Enable BIOS/MBR boot support.
100 @@ -31,5 +35,9 @@
101 <flag name="limine-install">
102 Enables building the limine-install program.
103 </flag>
104 + <flag name="limine-deploy">
105 + Enables building the limine-deploy program.
106 + This flag was previously known as limine-deploy.
107 + </flag>
108 </use>
109 </pkgmetadata>