commit: 079a605885d08aa1bfaa8a952eb0491a0253f106 Author: Rick Farina <zerochaos <AT> gentoo <DOT> org> AuthorDate: Wed Jun 3 19:19:30 2020 +0000 Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org> CommitDate: Wed Jun 3 19:20:01 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=079a6058
dev-python/pybind11: dep fixup dep fixup reported by waebbl I tried to fix tests by gave up I hate the doc handling but I don't know how to do better Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org> dev-python/pybind11/pybind11-2.5.0.ebuild | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/dev-python/pybind11/pybind11-2.5.0.ebuild b/dev-python/pybind11/pybind11-2.5.0.ebuild index 9f4ad379f84..4cbab835b55 100644 --- a/dev-python/pybind11/pybind11-2.5.0.ebuild +++ b/dev-python/pybind11/pybind11-2.5.0.ebuild @@ -14,13 +14,14 @@ SRC_URI="https://github.com/pybind/pybind11/archive/v${PV}.tar.gz -> ${P}.tar.gz LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" -IUSE="doc" +IUSE="doc test" DEPEND=" ${PYTHON_DEPS} doc? ( dev-python/breathe[${PYTHON_USEDEP}] - dev-python/sphinx[${PYTHON_USEDEP}] + <dev-python/sphinx-3[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] ) " RDEPEND=" @@ -32,8 +33,11 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}" DOCS=( README.md CONTRIBUTING.md ISSUE_TEMPLATE.md ) +#I can't make tests do anything +RESTRICT=test + pkg_setup() { - use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python3_6' ) + use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python3_7' ) } python_prepare_all() { @@ -45,19 +49,19 @@ python_prepare_all() { python_configure_all() { local mycmakeargs=( -DPYBIND11_INSTALL=ON - -DPYBIND11_TEST=OFF + -DPYBIND11_TEST=$(usex test) ) - cmake_src_configure } python_compile_all() { - # No compilation has to be done by cmake + # Compilation only does anything for tests + use test && cmake_src_compile # documentation is not covered by cmake, but has it's own makefile # using sphinx if use doc; then - python_setup 'python3_6' + python_setup 'python3_7' pushd "${S}"/docs || die emake info man html popd || die @@ -77,3 +81,7 @@ python_install_all() { distutils-r1_python_install_all } + +python_test_all() { + cmake_src_test +}