blob: 4593c4008b120d000889352e5ab59ef9a1f7735c (
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
57
58
59
60
61
62
|
# Copyright 2026 Srcux Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{13..14} )
inherit python-single-r1
DESCRIPTION="Repository and installed-system profile management"
HOMEPAGE="https://srcux.com/"
SRC_URI="https://www.srcux.com/distfiles/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm64"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
app-admin/eselect
app-portage/gentoolkit
dev-vcs/git
!<app-admin/aerie-0.3.2"
BDEPEND="test? ( dev-vcs/git )"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS=( README.md Changelog )
PATCHES=( "${FILESDIR}/scout-0.4.0-srcux-path-endpoints.patch" )
src_prepare() {
default
}
src_compile() {
:
}
src_test() {
PYTHONPATH=src "${EPYTHON}" -m unittest discover -s tests || die
}
src_install() {
python_domodule src/aerie
python_newscript bin/scout scout
python_newscript bin/aerie aerie
einstalldocs
# Keep ownership of the old config paths through the package transition.
# New interactive setup writes /etc/scout/scout.yml separately.
insinto /etc/aerie
doins etc/aerie.yml etc/baldeagleos.conf.example etc/parent.example
insinto /etc/scout
doins etc/srcux.conf.example
newins etc/srcux-parent.example parent.example
newins etc/scout.yml.example scout.yml.example
}
pkg_postinst() {
elog "Scout now owns the client runtime and does not depend on app-admin/aerie."
elog "Keep the Aerie compatibility package while other packages require its name."
elog "Existing repository settings and profiles remain usable without setup."
elog "Run scout init for new systems; scout migrate srcux moves an existing client."
elog "Use scout migrate srcux --check to validate first, without switching settings."
elog "The aerie command remains available for existing scripts."
}
|