From 448f3842ef93bc25ba9c7abf45d14c77c0a62c7a Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Wed, 9 Mar 2022 01:26:40 +0100 Subject: [PATCH] dev-cpp/fbthrift: add python-six dependency Bug: https://bugs.gentoo.org/834745 Signed-off-by: Alessandro Barbieri --- ....00.ebuild => fbthrift-2022.02.28.00-r1.ebuild} | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) rename dev-cpp/fbthrift/{fbthrift-2022.02.28.00.ebuild => fbthrift-2022.02.28.00-r1.ebuild} (72%) 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 3320d823e2..d05d4ff9ac 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)