mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user