summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-12-27 20:26:16 +0000
committerSam James <sam@gentoo.org>2020-12-27 20:26:19 +0000
commitd098dae0d3a33eba074c1cfd46b086625867037c (patch)
tree05c8c4c9f0b002be960e3bd1306c109c2c4b3eaf /dev-embedded/libftdi
parentprofiles: mask dev-embedded/urjtag[ftd2xx] where no libftd2xx (diff)
downloadgentoo-d098dae0d3a33eba074c1cfd46b086625867037c.tar.gz
gentoo-d098dae0d3a33eba074c1cfd46b086625867037c.tar.bz2
gentoo-d098dae0d3a33eba074c1cfd46b086625867037c.zip
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>
Diffstat (limited to 'dev-embedded/libftdi')
-rw-r--r--dev-embedded/libftdi/libftdi-0.20-r1.ebuild19
1 files changed, 10 insertions, 9 deletions
diff --git a/dev-embedded/libftdi/libftdi-0.20-r1.ebuild b/dev-embedded/libftdi/libftdi-0.20-r1.ebuild
index 86d328f790e2..4da9cd2541f5 100644
--- a/dev-embedded/libftdi/libftdi-0.20-r1.ebuild
+++ b/dev-embedded/libftdi/libftdi-0.20-r1.ebuild
@@ -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