gentoo-ebuilds/net-wireless/liblms7002m/liblms7002m-0.0_p20200518-r2.ebuild
Thomas Beierlein d16b9002e4
net-wireless/liblms7002m: iAdd Pyrthon3.13 support, fix build with cmake4
Closes: https://bugs.gentoo.org/952641
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
2025-04-28 17:23:52 +02:00

41 lines
962 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
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
EGIT_REPO_URI="https://github.com/xtrx-sdr/liblms7002m.git"
inherit git-r3
else
COMMIT="b07761b7386181f0e6a35158456b75bce14f2aca"
SRC_URI="https://github.com/xtrx-sdr/liblms7002m/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
KEYWORDS="~amd64 ~x86"
fi
BDEPEND="
$(python_gen_any_dep '
dev-python/cheetah3[${PYTHON_USEDEP}]
')
"
PATCHES=( "${FILESDIR}"/${PN}-cmake4.patch )
python_check_deps() {
python_has_version "dev-python/cheetah3[${PYTHON_USEDEP}]"
}
src_configure() {
local mycmakeargs=(
-DPYTHON_EXECUTABLE="${PYTHON}"
)
cmake_src_configure
}