summaryrefslogtreecommitdiff
path: root/app-admin/scout/scout-0.3.2.ebuild
blob: 2149c3b407a787d7f2a9c546b0591f6a0fe4f74f (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
# Copyright 2026 BaldEagleOS 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://git.baldeagleos.com/aerie"
SRC_URI="https://distfiles.baldeagleos.com/${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 )

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
}

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 for status or first-time setup; scout help lists commands."
	elog "The aerie command remains available for existing scripts."
}