1 |
commit: a36be1970f39fd087a00dacd1405342b7d80f711 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jul 3 02:07:21 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 3 02:07:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a36be197 |
7 |
|
8 |
dev-libs/pocl: enable py3.10, pypy3 and disable py3.7 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-libs/pocl/pocl-1.7.ebuild | 14 +++++++++++--- |
13 |
1 file changed, 11 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/dev-libs/pocl/pocl-1.7.ebuild b/dev-libs/pocl/pocl-1.7.ebuild |
16 |
index f1106a718..5da955b15 100644 |
17 |
--- a/dev-libs/pocl/pocl-1.7.ebuild |
18 |
+++ b/dev-libs/pocl/pocl-1.7.ebuild |
19 |
@@ -6,7 +6,7 @@ EAPI="7" |
20 |
DOCS_AUTODOC=0 |
21 |
DOCS_BUILDER="sphinx" |
22 |
DOCS_DIR="doc/sphinx/source" |
23 |
-PYTHON_COMPAT=( python3_{7..9} ) |
24 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
25 |
|
26 |
inherit cmake llvm python-any-r1 docs |
27 |
|
28 |
@@ -22,7 +22,9 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
29 |
LICENSE="GPL-2" |
30 |
SLOT="0" |
31 |
KEYWORDS="~amd64" |
32 |
-IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening +hwloc memmanager" #hsa tce |
33 |
+IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening +hwloc memmanager test" #hsa tce |
34 |
+ |
35 |
+RESTRICT="!test? ( test )" |
36 |
|
37 |
#TODO: add dependencies for cuda |
38 |
RDEPEND=" |
39 |
@@ -49,7 +51,7 @@ src_configure() { |
40 |
-DBUILD_SHARED_LIBS=ON |
41 |
-DENABLE_HSA=OFF |
42 |
-DENABLE_ICD=ON |
43 |
- -DENABLE_POCL_BUILDING=OFF |
44 |
+ -DENABLE_POCL_BUILDING=ON |
45 |
-DKERNELLIB_HOST_CPU_VARIANTS=native |
46 |
-DPOCL_ICD_ABSOLUTE_PATH=ON |
47 |
-DSTATIC_LLVM=OFF |
48 |
@@ -85,3 +87,9 @@ src_install() { |
49 |
docompress -x "/usr/share/doc/${P}/examples" |
50 |
fi |
51 |
} |
52 |
+ |
53 |
+src_test() { |
54 |
+ export POCL_BUILDING=1 |
55 |
+ export CTEST_OUTPUT_ON_FAILURE=1 |
56 |
+ cmake_src_test |
57 |
+} |