Diff ugrd-1.29.0-r1 with a ugrd-2.2.0

/usr/portage/sys-kernel/ugrd/ugrd-2.2.0.ebuild 2026-06-10 19:17:07.276990630 +0300
1
# Copyright 2023-2025 Gentoo Authors
1
# Copyright 2023-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6 6
DISTUTILS_USE_PEP517=setuptools
7
PYTHON_COMPAT=( python3_{11..13} )
7
PYTHON_COMPAT=( python3_{11..14} )
8 8
inherit distutils-r1 optfeature shell-completion
9 9

  
10
DESCRIPTION="Python based initramfs generator with TOML definitions"
10
DESCRIPTION="Python based POSIX initramfs generator with TOML definitions"
11 11
HOMEPAGE="https://github.com/desultory/ugrd"
12 12
SRC_URI="https://github.com/desultory/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
13 13

  
14 14
LICENSE="GPL-2"
15 15
SLOT="0"
16
KEYWORDS="amd64 arm64"
16
KEYWORDS="amd64 arm64 ~riscv ~x86"
17 17
RESTRICT="test"
18 18
PROPERTIES="test_privileged"
19 19

  
20 20
RDEPEND="
21 21
	app-misc/pax-utils
22
	>=dev-python/zenlib-3.0.2[${PYTHON_USEDEP}]
23
	>=dev-python/pycpio-1.4.0[${PYTHON_USEDEP}]
24
	sys-apps/pciutils
22
	sys-apps/coreutils
23
	sys-apps/kmod
24
	sys-apps/util-linux
25
	sys-devel/bc
26
	>=dev-python/zenlib-3.3.0[${PYTHON_USEDEP}]
27
	>=dev-python/pycpio-1.7.0[${PYTHON_USEDEP}]
25 28
"
26 29

  
27 30
BDEPEND="
28 31
	test? (
32
		sys-fs/cryptsetup
29 33
		sys-fs/btrfs-progs
34
		sys-fs/e2fsprogs
35
		sys-fs/f2fs-tools
30 36
		sys-fs/xfsprogs
31
		sys-fs/cryptsetup
37
		sys-fs/squashfs-tools
38
		dev-python/zstandard
32 39
		amd64? ( app-emulation/qemu[qemu_softmmu_targets_x86_64] )
33 40
		arm64? ( app-emulation/qemu[qemu_softmmu_targets_aarch64] )
34 41
	)
35 42
"
36 43

  
44
distutils_enable_tests unittest
45

  
46
src_test() {
47
	addwrite /dev/kvm
48
	distutils-r1_src_test
49
}
50

  
51
python_test() {
52
	eunittest tests/
53
}
54

  
37 55
python_install_all() {
38 56
	# Call the distutils-r1_python_install_all function
39 57
	distutils-r1_python_install_all
......
56 74
	optfeature "ugrd.crypto.cryptsetup support" sys-fs/cryptsetup
57 75
	optfeature "ugrd.fs.btrfs support" sys-fs/btrfs-progs
58 76
	optfeature "ugrd.crypto.gpg support" app-crypt/gnupg
77
	optfeature "ugrd.fs.ext4 support" sys-fs/e2fsprogs
78
	optfeature "ugrd.fs.f2s support" sys-fs/f2fs-tools
59 79
	optfeature "ugrd.fs.lvm support" sys-fs/lvm2[lvm]
80
	optfeature "ugrd.fs.zfs support" sys-fs/zfs
60 81
	optfeature "ugrd.fs.mdraid support" sys-fs/mdadm
61 82
	optfeature "ugrd.base.plymouth support" sys-boot/plymouth
62
}
63

  
64
distutils_enable_tests unittest
65

  
66
src_test() {
67
	addwrite /dev/kvm
68
	distutils-r1_src_test
69
}
70

  
71
python_test() {
72
	eunittest tests/
83
	optfeature "ZSTD compression support" dev-python/zstandard
73 84
}
Thank you!