From 6bb9049215bcfa8406c1dc4e9bc188ddb0630ef5 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Wed, 25 Sep 2024 20:06:59 +0200 Subject: [PATCH] dev-cpp/xsimd: fix python version for doc Closes: https://bugs.gentoo.org/932821 Signed-off-by: Alfredo Tupone --- ...d-13.0.0.ebuild => xsimd-13.0.0-r1.ebuild} | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) rename dev-cpp/xsimd/{xsimd-13.0.0.ebuild => xsimd-13.0.0-r1.ebuild} (68%) diff --git a/dev-cpp/xsimd/xsimd-13.0.0.ebuild b/dev-cpp/xsimd/xsimd-13.0.0-r1.ebuild similarity index 68% rename from dev-cpp/xsimd/xsimd-13.0.0.ebuild rename to dev-cpp/xsimd/xsimd-13.0.0-r1.ebuild index f6fa6899c7161..167d9662c0cd0 100644 --- a/dev-cpp/xsimd/xsimd-13.0.0.ebuild +++ b/dev-cpp/xsimd/xsimd-13.0.0-r1.ebuild @@ -3,7 +3,8 @@ EAPI=8 -inherit cmake +PYTHON_COMPAT=( python3_{10..13} ) +inherit cmake python-any-r1 DESCRIPTION="C++ wrappers for SIMD intrinsics" HOMEPAGE="https://github.com/xtensor-stack/xsimd" @@ -19,9 +20,11 @@ RESTRICT="!test? ( test )" BDEPEND=" doc? ( app-text/doxygen - dev-python/breathe - dev-python/sphinx - dev-python/sphinx-rtd-theme + $(python_gen_any_dep ' + dev-python/breathe[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}] + ') ) test? ( dev-cpp/doctest )" @@ -32,6 +35,17 @@ PATCHES=( "${FILESDIR}"/${PN}-13.0.0-detection-simd-with-mitigations.patch ) +python_check_deps() { + python_has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && + python_has_version "dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]" && + python_has_version "dev-python/breathe[${PYTHON_USEDEP}]" + +} + +pkg_setup() { + use doc && python-any-r1_pkg_setup +} + src_prepare() { sed -i \ -e '/fPIC/d' \