commit: a36be1970f39fd087a00dacd1405342b7d80f711 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> AuthorDate: Sat Jul 3 02:07:21 2021 +0000 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> CommitDate: Sat Jul 3 02:07:21 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a36be197
dev-libs/pocl: enable py3.10, pypy3 and disable py3.7 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> dev-libs/pocl/pocl-1.7.ebuild | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/dev-libs/pocl/pocl-1.7.ebuild b/dev-libs/pocl/pocl-1.7.ebuild index f1106a718..5da955b15 100644 --- a/dev-libs/pocl/pocl-1.7.ebuild +++ b/dev-libs/pocl/pocl-1.7.ebuild @@ -6,7 +6,7 @@ EAPI="7" DOCS_AUTODOC=0 DOCS_BUILDER="sphinx" DOCS_DIR="doc/sphinx/source" -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{8..10} pypy3 ) inherit cmake llvm python-any-r1 docs @@ -22,7 +22,9 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" -IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening +hwloc memmanager" #hsa tce +IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening +hwloc memmanager test" #hsa tce + +RESTRICT="!test? ( test )" #TODO: add dependencies for cuda RDEPEND=" @@ -49,7 +51,7 @@ src_configure() { -DBUILD_SHARED_LIBS=ON -DENABLE_HSA=OFF -DENABLE_ICD=ON - -DENABLE_POCL_BUILDING=OFF + -DENABLE_POCL_BUILDING=ON -DKERNELLIB_HOST_CPU_VARIANTS=native -DPOCL_ICD_ABSOLUTE_PATH=ON -DSTATIC_LLVM=OFF @@ -85,3 +87,9 @@ src_install() { docompress -x "/usr/share/doc/${P}/examples" fi } + +src_test() { + export POCL_BUILDING=1 + export CTEST_OUTPUT_ON_FAILURE=1 + cmake_src_test +}