blob: 824fc43a9231fff5d406a369fb526cf6a87e1224 (
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
48
49
50
51
52
53
54
55
56
|
# Copyright 2026 Srcux Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{13..14} )
inherit distutils-r1
DESCRIPTION="Shared Foundry and Crucible runtime with OSForge compatibility"
HOMEPAGE="https://git.srcux.com/osforge"
SRC_URI="https://www.srcux.com/distfiles/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="usb-writer"
RDEPEND="
${PYTHON_DEPS}
acct-group/osforge
app-arch/tar
dev-python/prompt-toolkit[${PYTHON_USEDEP}]
dev-vcs/git
net-misc/rsync
sys-apps/portage
usb-writer? (
sys-apps/gptfdisk
sys-block/parted
sys-boot/grub
sys-fs/dosfstools
sys-fs/e2fsprogs
)
"
BDEPEND="test? ( app-arch/tar dev-vcs/git net-misc/rsync )"
distutils_enable_tests unittest
python_test() {
eunittest -s tests
}
python_install_all() {
distutils-r1_python_install_all
newinitd src/osforge/data/openrc/osforged osforged
newconfd src/osforge/data/openrc/osforged.confd osforged
dodoc -r examples docs
if use usb-writer; then
dosbin scripts/osforge-write-usb
fi
}
pkg_postinst() {
elog "Foundry and Crucible share the OSForge runtime and existing job history."
elog "Existing configurations and roots are adopted in place."
elog "Start the compatible daemon with: rc-service osforged start"
elog "Enable it at boot with: rc-update add osforged default"
}
|