2022-09-28 14:40:28 +03:00
|
|
|
# Copyright 1999-2022 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2022-09-28 14:48:37 +03:00
|
|
|
inherit meson
|
2022-09-28 14:40:28 +03:00
|
|
|
|
|
|
|
DESCRIPTION="Backend-agnostic network configuration in YAML"
|
|
|
|
HOMEPAGE="https://netplan.io/"
|
|
|
|
SRC_URI="https://github.com/CanonicalLtd/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
|
2023-05-25 09:56:07 +03:00
|
|
|
IUSE="doc +systemd +bash-completion test"
|
2022-09-28 14:40:28 +03:00
|
|
|
REQUIRED_USE="systemd bash-completion"
|
|
|
|
|
|
|
|
DEPEND=">=dev-libs/glib-2.64.3
|
|
|
|
>=dev-libs/libyaml-0.2.5
|
|
|
|
sys-apps/systemd
|
|
|
|
sys-apps/util-linux
|
|
|
|
app-shells/bash-completion
|
|
|
|
doc? ( >=app-text/pandoc-1.19.2.1-r1 )
|
|
|
|
"
|
|
|
|
|
|
|
|
BDEPEND="${DEPEND}
|
2023-02-24 17:15:33 +03:00
|
|
|
dev-python/pytest
|
2022-09-28 14:48:37 +03:00
|
|
|
dev-python/pyflakes
|
2023-05-25 09:56:07 +03:00
|
|
|
dev-python/coverage
|
|
|
|
test? ( dev-util/cmocka
|
|
|
|
dev-python/pycodestyle
|
|
|
|
)
|
2022-09-28 14:40:28 +03:00
|
|
|
"
|
|
|
|
|
|
|
|
RDEPEND=">=dev-python/netifaces-0.10.9
|
2022-09-28 14:48:37 +03:00
|
|
|
>=dev-libs/libyaml-0.2.5
|
2023-05-25 10:00:48 +03:00
|
|
|
>=dev-python/pyyaml-5.3.1
|
2023-05-25 09:56:07 +03:00
|
|
|
dev-python/rich
|
2022-09-28 14:40:28 +03:00
|
|
|
"
|
|
|
|
|
|
|
|
PATCHES=(
|
2023-05-25 09:56:07 +03:00
|
|
|
"${FILESDIR}/0001-build-add-Gentoo-compat.patch"
|
2022-09-28 14:40:28 +03:00
|
|
|
)
|
2023-05-25 09:56:07 +03:00
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local emesonargs=(
|
|
|
|
$(meson_use test unit_testing)
|
|
|
|
$(meson_use test b_coverage)
|
|
|
|
"${myconf[@]}"
|
|
|
|
)
|
|
|
|
meson_src_configure
|
|
|
|
}
|