blob: 71d9764d7f04904d4a28e888df69dd2e2bd6dc36 (
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 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 optfeature
DESCRIPTION="Setup tool for bitbake based projects"
HOMEPAGE="
https://github.com/siemens/kas
https://kas.readthedocs.io/en/latest/
https://pypi.org/project/kas/
"
# pypi does not package tests
SRC_URI="
https://github.com/siemens/kas/archive/refs/tags/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/pyyaml-3.0.0[${PYTHON_USEDEP}]
>=dev-python/distro-1.0.0[${PYTHON_USEDEP}]
>=dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}]
>=dev-python/kconfiglib-14.1.0[${PYTHON_USEDEP}]
>=dev-python/GitPython-3.1.0[${PYTHON_USEDEP}]
dev-libs/newt[${PYTHON_USEDEP}]
"
BDEPEND="
${RDEPEND}
test? (
dev-vcs/git
dev-vcs/mercurial
)
"
# unable to pre-download test repositories as the required
# environment variable KAS_REPO_REF_DIR is deleted during
# testing
PROPERTIES="test_network"
RESTRICT="test"
distutils_enable_tests pytest
pkg_postinst() {
optfeature_header "Install optional tools to clone repositories:"
optfeature "git repository support" dev-vcs/git
optfeature "mercurial repository support" dev-vcs/mercurial
}
|