dev-embedded/libftdi: support Python 3.7+ in slot 0

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2020-12-27 20:26:16 +00:00
parent ba73404556
commit d098dae0d3

View File

@@ -1,10 +1,10 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
PYTHON_COMPAT=( python3_6 )
inherit cmake-utils python-single-r1
PYTHON_COMPAT=( python3_{6,7,8,9} )
inherit cmake python-single-r1
if [[ ${PV} == 9999* ]] ; then
inherit git-r3
@@ -22,12 +22,13 @@ SLOT="0"
IUSE="cxx doc examples python"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
BDEPEND="
doc? ( app-doc/doxygen )
python? ( dev-lang/swig )"
RDEPEND="virtual/libusb:0
cxx? ( dev-libs/boost )
python? ( ${PYTHON_DEPS} )"
DEPEND="${RDEPEND}
python? ( dev-lang/swig )
doc? ( app-doc/doxygen )"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-cmake-include.patch
@@ -48,7 +49,7 @@ src_prepare() {
-e '/SET(LIB_SUFFIX /d' \
CMakeLists.txt || die
cmake-utils_src_prepare
cmake_src_prepare
}
src_configure() {
@@ -59,11 +60,11 @@ src_configure() {
-DPYTHON_BINDINGS=$(usex python)
-DCMAKE_SKIP_BUILD_RPATH=ON
)
cmake-utils_src_configure
cmake_src_configure
}
src_install() {
cmake-utils_src_install
cmake_src_install
use python && python_optimize
dodoc ChangeLog README