diff options
Diffstat (limited to 'net-wireless/liblms7002m/liblms7002m-9999.ebuild')
-rw-r--r-- | net-wireless/liblms7002m/liblms7002m-9999.ebuild | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/net-wireless/liblms7002m/liblms7002m-9999.ebuild b/net-wireless/liblms7002m/liblms7002m-9999.ebuild index edd808aede06..372c55ad3fc9 100644 --- a/net-wireless/liblms7002m/liblms7002m-9999.ebuild +++ b/net-wireless/liblms7002m/liblms7002m-9999.ebuild @@ -1,17 +1,17 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8} ) -inherit cmake python-single-r1 +PYTHON_COMPAT=( python3_{9..10} ) +inherit cmake python-any-r1 DESCRIPTION="Compact LMS7002M library suitable for resource-limited MCUs" HOMEPAGE="https://github.com/xtrx-sdr/liblms7002m" LICENSE="LGPL-2.1" SLOT="0/${PV}" -if [[ ${PV} =~ "9999" ]]; then +if [[ ${PV} == *9999 ]]; then EGIT_REPO_URI="https://github.com/xtrx-sdr/liblms7002m.git" inherit git-r3 else @@ -21,15 +21,18 @@ else KEYWORDS="~amd64 ~x86" fi -IUSE="" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" +BDEPEND=" + $(python_gen_any_dep ' + dev-python/cheetah3[${PYTHON_USEDEP}] + ') +" -RDEPEND="${PYTHON_DEPS} - $(python_gen_cond_dep 'dev-python/cheetah3[${PYTHON_USEDEP}]')" -DEPEND="${RDEPEND}" +python_check_deps() { + python_has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" +} src_configure() { - mycmakeargs=( + local mycmakeargs=( -DPYTHON_EXECUTABLE="${PYTHON}" ) cmake_src_configure |