9 |
9 |
EGIT_BRANCH="master"
|
10 |
10 |
else
|
11 |
11 |
SRC_URI="https://gitweb.gentoo.org/proj/catalyst.git/snapshot/${P}.tar.bz2"
|
12 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
|
12 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
13 |
13 |
fi
|
14 |
14 |
|
15 |
15 |
PYTHON_COMPAT=( python3_{9..11} )
|
16 |
16 |
DISTUTILS_USE_PEP517=setuptools
|
17 |
17 |
|
18 |
|
inherit distutils-r1 ${SRC_ECLASS}
|
|
18 |
inherit distutils-r1 linux-info optfeature tmpfiles ${SRC_ECLASS}
|
19 |
19 |
|
20 |
20 |
DESCRIPTION="Release metatool used for creating releases based on Gentoo Linux"
|
21 |
21 |
HOMEPAGE="https://wiki.gentoo.org/wiki/Catalyst"
|
22 |
22 |
|
23 |
23 |
LICENSE="GPL-2+"
|
24 |
24 |
SLOT="0"
|
25 |
|
IUSE="ccache doc +iso system-bootloader"
|
|
25 |
IUSE="doc +iso"
|
26 |
26 |
|
27 |
|
DEPEND="
|
|
27 |
BDEPEND="
|
28 |
28 |
app-text/asciidoc
|
|
29 |
"
|
|
30 |
DEPEND="
|
|
31 |
sys-apps/portage[${PYTHON_USEDEP}]
|
29 |
32 |
>=dev-python/snakeoil-0.6.5[${PYTHON_USEDEP}]
|
30 |
33 |
dev-python/fasteners[${PYTHON_USEDEP}]
|
|
34 |
dev-python/tomli[${PYTHON_USEDEP}]
|
|
35 |
sys-apps/util-linux[python,${PYTHON_USEDEP}]
|
31 |
36 |
"
|
32 |
37 |
RDEPEND="
|
33 |
|
>=dev-python/snakeoil-0.6.5[${PYTHON_USEDEP}]
|
34 |
|
dev-python/fasteners[${PYTHON_USEDEP}]
|
|
38 |
${DEPEND}
|
35 |
39 |
>=dev-python/pydecomp-0.3[${PYTHON_USEDEP}]
|
36 |
40 |
app-arch/lbzip2
|
37 |
|
app-crypt/shash
|
|
41 |
app-arch/pixz
|
|
42 |
app-arch/tar[xattr]
|
|
43 |
dev-vcs/git
|
38 |
44 |
sys-fs/dosfstools
|
39 |
|
|| (
|
40 |
|
app-arch/tar[xattr]
|
41 |
|
app-arch/libarchive[xattr]
|
|
45 |
sys-fs/squashfs-tools-ng[tools]
|
|
46 |
|
|
47 |
iso? (
|
|
48 |
app-cdr/cdrtools
|
|
49 |
dev-libs/libisoburn
|
|
50 |
|
|
51 |
amd64? (
|
|
52 |
sys-boot/grub[grub_platforms_efi-32,grub_platforms_efi-64]
|
|
53 |
sys-fs/mtools
|
|
54 |
)
|
|
55 |
arm64? (
|
|
56 |
sys-boot/grub[grub_platforms_efi-64]
|
|
57 |
sys-fs/mtools
|
|
58 |
)
|
|
59 |
ia64? (
|
|
60 |
sys-boot/grub[grub_platforms_efi-64]
|
|
61 |
sys-fs/mtools
|
|
62 |
)
|
|
63 |
ppc? (
|
|
64 |
sys-boot/grub:2[grub_platforms_ieee1275]
|
|
65 |
)
|
|
66 |
ppc64? (
|
|
67 |
sys-boot/grub:2[grub_platforms_ieee1275]
|
|
68 |
)
|
|
69 |
sparc? (
|
|
70 |
sys-boot/grub:2[grub_platforms_ieee1275]
|
|
71 |
)
|
|
72 |
x86? (
|
|
73 |
sys-boot/grub[grub_platforms_efi-32]
|
|
74 |
)
|
42 |
75 |
)
|
43 |
|
amd64? ( >=sys-boot/syslinux-3.72 )
|
44 |
|
x86? ( >=sys-boot/syslinux-3.72 )
|
45 |
|
ccache? ( dev-util/ccache )
|
46 |
|
iso? ( app-cdr/cdrtools )
|
47 |
|
kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )
|
48 |
76 |
"
|
49 |
|
PDEPEND="system-bootloader? ( >=sys-apps/memtest86+-5.01-r4
|
50 |
|
sys-boot/grub:2
|
51 |
|
amd64? ( sys-boot/grub[grub_platforms_efi-32,grub_platforms_efi-64] )
|
52 |
|
x86? ( sys-boot/grub[grub_platforms_efi-32] )
|
53 |
|
sys-boot/syslinux
|
54 |
|
sys-boot/shim )"
|
|
77 |
|
|
78 |
pkg_setup() {
|
|
79 |
CONFIG_CHECK="
|
|
80 |
~UTS_NS ~IPC_NS
|
|
81 |
~SQUASHFS ~SQUASHFS_ZLIB
|
|
82 |
"
|
|
83 |
linux-info_pkg_setup
|
|
84 |
}
|
55 |
85 |
|
56 |
86 |
python_prepare_all() {
|
57 |
87 |
python_setup
|
... | ... | |
76 |
106 |
src_install() {
|
77 |
107 |
distutils-r1_src_install
|
78 |
108 |
|
|
109 |
echo 'd /var/tmp/catalyst 0755 root root' > "${T}"/catalyst-tmpdir.conf
|
|
110 |
dotmpfiles "${T}"/catalyst-tmpdir.conf
|
|
111 |
|
79 |
112 |
doman files/catalyst.1 files/catalyst-config.5 files/catalyst-spec.5
|
80 |
113 |
insinto /etc/catalyst
|
81 |
114 |
doins etc/*
|
82 |
115 |
}
|
|
116 |
|
|
117 |
pkg_postinst() {
|
|
118 |
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
|
119 |
optfeature "ccache support" dev-util/ccache
|
|
120 |
fi
|
|
121 |
tmpfiles_process catalyst-tmpdir.conf
|
|
122 |
}
|