about summary refs log tree commit diff
path: root/sys-kernel/genkernel-next/genkernel-next-70.ebuild
blob: 81d309c7474d56cfc00f6673d71cba18c66c5054 (plain) (blame)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit bash-completion-r1

DESCRIPTION="An improved and modern remake of Gentoo genkernel"
HOMEPAGE="https://github.com/Sabayon/genkernel-next"
SRC_URI="
	https://github.com/Sabayon/genkernel-next/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://www.busybox.net/downloads/busybox-1.32.0.tar.bz2
"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cryptsetup dmraid gpg iscsi mdadm plymouth selinux"

DEPEND="
	!sys-fs/eudev[-kmod,modutils]
	app-text/asciidoc
	selinux? ( sys-libs/libselinux )
	sys-fs/e2fsprogs
"
RDEPEND="${DEPEND}
	!<sys-apps/openrc-0.9.9
	!sys-kernel/genkernel
	>=app-misc/pax-utils-0.6
	app-arch/cpio
	app-portage/portage-utils
	cryptsetup? ( sys-fs/cryptsetup )
	dmraid? ( >=sys-fs/dmraid-1.0.0_rc16 )
	gpg? ( app-crypt/gnupg )
	iscsi? ( sys-block/open-iscsi )
	mdadm? ( sys-fs/mdadm )
	plymouth? ( sys-boot/plymouth )
	sys-apps/util-linux
	sys-block/thin-provisioning-tools
	sys-fs/lvm2
"
BDEPEND=""

PATCHES=(
	"${FILESDIR}/genkernel-next-70_old_busybox.patch"
)

src_prepare() {
	default
	sed -i "/^GK_V=/ s:GK_V=.*:GK_V=${PV}:g" "${S}/genkernel" || die

	portage_distdir=$(dirname $(readlink "${DISTDIR}"/${P}.tar.gz))
	sed -i 's:'"/usr/portage/distfiles"':'"${portage_distdir}"':g' "${S}/genkernel.conf" || die
}

src_install() {
	default

	doman "${S}"/genkernel.8

	newbashcomp "${S}"/genkernel.bash genkernel
}

Consider giving Nix/NixOS a try! <3