commit:     448f3842ef93bc25ba9c7abf45d14c77c0a62c7a
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Mar  9 00:26:40 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Wed Mar  9 00:26:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=448f3842

dev-cpp/fbthrift: add python-six dependency

Bug: https://bugs.gentoo.org/834745
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 ...22.02.28.00.ebuild => fbthrift-2022.02.28.00-r1.ebuild} | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/dev-cpp/fbthrift/fbthrift-2022.02.28.00.ebuild 
b/dev-cpp/fbthrift/fbthrift-2022.02.28.00-r1.ebuild
similarity index 72%
rename from dev-cpp/fbthrift/fbthrift-2022.02.28.00.ebuild
rename to dev-cpp/fbthrift/fbthrift-2022.02.28.00-r1.ebuild
index 3320d823e..d05d4ff9a 100644
--- a/dev-cpp/fbthrift/fbthrift-2022.02.28.00.ebuild
+++ b/dev-cpp/fbthrift/fbthrift-2022.02.28.00-r1.ebuild
@@ -1,9 +1,11 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit cmake
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+
+inherit cmake python-single-r1
 
 DESCRIPTION="Facebook's branch of Apache Thrift, including a new C++ server"
 HOMEPAGE="https://github.com/facebook/fbthrift";
@@ -23,13 +25,19 @@ RDEPEND="
        dev-libs/libfmt
        dev-libs/openssl:0=
        sys-libs/zlib
+       ${PYTHON_DEPS}
+"
+DEPEND="
+       ${RDEPEND}
+       $(python_gen_cond_dep 'dev-python/six[${PYTHON_USEDEP}]')
 "
-DEPEND="${RDEPEND}"
 BDEPEND="
        sys-devel/bison
        sys-devel/flex
 "
 
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
 src_configure() {
        local mycmakeargs=(
                -DLIB_INSTALL_DIR=$(get_libdir)

Reply via email to