[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-23 Thread Sam James
commit: 9897f940ba92eeaa4b10f5c3ddf9029be6ec093a
Author: Sam James  gentoo  org>
AuthorDate: Sun Jul 24 01:05:23 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul 24 01:05:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9897f940

dev-libs/pocl: keyword 3.0 for ~ppc64

Bug: https://bugs.gentoo.org/831859
Bug: https://bugs.gentoo.org/860288
Thanks-to: Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 629cf11a51ed..2b61340eae95 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 57925fae4d43aebf440329a1105c437883d43cfa
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:47 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57925fae

dev-libs/pocl: Stabilize 3.0 amd64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 2b61340eae95..5582d49d36b2 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64"
+KEYWORDS="amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 5a4f4f964207d51b630e290be0f522f0e3d315f7
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:53 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:53 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a4f4f96

dev-libs/pocl: Stabilize 3.0 ppc64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 5582d49d36b2..ea851bab85ab 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc64"
+KEYWORDS="amd64 ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-08-07 Thread Sam James
commit: 2df171bf2190f791dd6252ab787fb15164bc7df2
Author: Sam James  gentoo  org>
AuthorDate: Mon Aug  8 04:17:09 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Aug  8 06:08:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2df171bf

dev-libs/pocl: fix PythonHasVersionUsage

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r2.ebuild | 2 +-
 dev-libs/pocl/pocl-3.0.ebuild| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.8-r2.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
index 2c7536c0a22d..cba8d60fd806 100644
--- a/dev-libs/pocl/pocl-1.8-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -49,7 +49,7 @@ PATCHES=(
 )
 
 python_check_deps() {
-   has_version -b "

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-19 Thread Sam James
commit: 3b578343fd4bad730e2e0a331274cd5bba773e91
Author: Sam James  gentoo  org>
AuthorDate: Wed Jul 20 05:05:10 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jul 20 05:09:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b578343

dev-libs/pocl: add PPC64 support

No keyword yet as apparently virtual/opencl isn't keyworded on ppc64?

Closes: https://bugs.gentoo.org/831859
Thanks-to:  Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 14 +-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 4845b2e15a71..629cf11a51ed 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -69,6 +69,18 @@ pkg_setup() {
 }
 
 src_configure() {
+   local host_cpu_variants="generic"
+
+   if use amd64 ; then
+   # Use pocl's curated list of CPU variants which should contain 
a good match for any given amd64 CPU
+   host_cpu_variants="distro"
+   elif use ppc64 ; then
+   # A selection of architectures in which new Altivec / VSX 
features were added
+   # This attempts to recreate the amd64 "distro" option for ppc64
+   # See discussion in bug #831859
+   host_cpu_variants="pwr10;pwr9;pwr8;pwr7;pwr6;g5;a2;generic"
+   fi
+
local mycmakeargs=(
-DENABLE_HSA=OFF
 
@@ -79,7 +91,7 @@ src_configure() {
-DENABLE_IPO=$(usex lto)
 
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=distro
+   -DKERNELLIB_HOST_CPU_VARIANTS="${host_cpu_variants}"
 
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-02 Thread Sam James
commit: c127713269a116c187d54663e0523b9f79f11886
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 14 06:14:07 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 07:40:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1277132

dev-libs/pocl: use 'distro' option for built kernels

We can't know what CPU the user will run the
built package on (think of binpkgs) so let's
use the 'distro' option which builds for
most common SIMD instructions and chooses
the most appropriate kernel it built at runtime.

Closes: https://bugs.gentoo.org/829128
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
index 6ee4d704b519..13e8dd263413 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -73,7 +73,7 @@ src_configure() {
-DENABLE_HSA=OFF
-DENABLE_ICD=ON
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=native
+   -DKERNELLIB_HOST_CPU_VARIANTS=distro
-DPOCL_ICD_ABSOLUTE_PATH=ON
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-03 Thread Sam James
commit: 414a82e33c4bbe85f7b85bb2a982729087780794
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan  3 08:02:28 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 08:02:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414a82e3

dev-libs/pocl: revbump for installed (opencl) kernel change

Fixes: c127713269a116c187d54663e0523b9f79f11886
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.8-r1.ebuild => pocl-1.8-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.8-r1.ebuild
rename to dev-libs/pocl/pocl-1.8-r2.ebuild
index 13e8dd263413..2c7536c0a22d 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-04-17 Thread Sam James
commit: d40f792545629e12a42f3936ffe36d79129baa2d
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 17 16:35:07 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 17 16:35:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d40f7925

dev-libs/pocl: drop 1.7-r3

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest   |   1 -
 dev-libs/pocl/pocl-1.7-r3.ebuild | 120 ---
 2 files changed, 121 deletions(-)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4f3243ab7a6f..eacf11d34468 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1,2 +1 @@
-DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
 DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.7-r3.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
deleted file mode 100644
index 1bdb29346d53..
--- a/dev-libs/pocl/pocl-1.7-r3.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DOCS_AUTODOC=0
-DOCS_BUILDER="sphinx"
-DOCS_DIR="doc/sphinx/source"
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
-
-inherit cmake llvm python-any-r1 docs
-
-LLVM_MAX_SLOT=12
-
-DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
-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 test" #hsa tce
-
-RESTRICT="!test? ( test ) mirror"
-
-# TODO: add dependencies for cuda
-# Note: No := on LLVM because it pulls in Clang
-# see llvm.eclass for why
-CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-29 Thread Sam James
commit: b4e55fd0e3d94bc08786ed83a6a4183168ebfc30
Author: Sam James  gentoo  org>
AuthorDate: Fri Oct 29 22:43:02 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Oct 29 22:43:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4e55fd0

dev-libs/pocl: add hwloc subslot operator

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r2.ebuild => pocl-1.7-r3.ebuild} | 4 ++--
 dev-libs/pocl/{pocl-1.8.ebuild => pocl-1.8-r1.ebuild}| 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7-r2.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.7-r2.ebuild
rename to dev-libs/pocl/pocl-1.7-r3.ebuild
index be663cd6f58..1bdb29346d5 100644
--- a/dev-libs/pocl/pocl-1.7-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r3.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.8.ebuild
rename to dev-libs/pocl/pocl-1.8-r1.ebuild
index 6f112bf4913..6ee4d704b51 100644
--- a/dev-libs/pocl/pocl-1.8.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-12 Thread Sam James
commit: e9b38e06367dd47eb4500f847f9348013c160268
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 13 01:09:48 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 13 01:12:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b38e06

dev-libs/pocl: add 1.8

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest|   1 +
 dev-libs/pocl/pocl-1.8.ebuild | 126 ++
 2 files changed, 127 insertions(+)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4ac613d41bb..4f3243ab7a6 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1 +1,2 @@
 DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
+DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8.ebuild
new file mode 100644
index 000..6f112bf4913
--- /dev/null
+++ b/dev-libs/pocl/pocl-1.8.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DOCS_AUTODOC=0
+DOCS_BUILDER="sphinx"
+DOCS_DIR="doc/sphinx/source"
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+LLVM_MAX_SLOT=13
+
+inherit cmake llvm python-any-r1 docs
+
+DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
+SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+# TODO: hsa tce
+IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening 
+hwloc memmanager test"
+# Tests not yet passing, fragile in Portage environment(?)
+RESTRICT="!test? ( test ) test"
+
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( https://github.com/pocl/pocl/blob/master/.drone.yml
+   # But couldn't seem to get tests working yet
+   cmake_src_test
+}
+
+src_install() {
+   cmake_src_install
+
+   dodoc CREDITS README CHANGES
+
+   if use doc; then
+   dodoc -r _build/html
+   docompress -x /usr/share/doc/${P}/html
+   fi
+
+   if use examples; then
+   dodoc -r examples
+   docompress -x /usr/share/doc/${P}/examples
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: a47d0fd7fd70bfdf59853f5ae4b34c9d36c9dbca
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:25:43 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:36:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a47d0fd7

dev-libs/pocl: various fixups

Mostly fixups I missed when importing from GURU earlier:
- LLVM deps
- General tidying

Signed-off-by: Sam James  gentoo.org>

 .../pocl/{pocl-1.7.ebuild => pocl-1.7-r1.ebuild}   | 47 +++---
 1 file changed, 32 insertions(+), 15 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7.ebuild b/dev-libs/pocl/pocl-1.7-r1.ebuild
similarity index 66%
rename from dev-libs/pocl/pocl-1.7.ebuild
rename to dev-libs/pocl/pocl-1.7-r1.ebuild
index 74100b13bb3..d5f2724b962 100644
--- a/dev-libs/pocl/pocl-1.7.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI=7
 
 DOCS_AUTODOC=0
 DOCS_BUILDER="sphinx"
@@ -13,10 +13,7 @@ inherit cmake llvm python-any-r1 docs
 LLVM_MAX_SLOT=12
 
 DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="
-   http://portablecl.org
-   https://github.com/pocl/pocl
-"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
 SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
@@ -26,35 +23,51 @@ IUSE="accel cl20 +conformance cuda debug examples 
float-conversion hardening +hw
 
 RESTRICT="!test? ( test ) mirror"
 
-#TODO: add dependencies for cuda
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: d3869995dd4cd8903dd9ceb5b85d45dd57c3a8e6
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:38:19 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:38:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3869995

dev-libs/pocl: fix MissingSlotDep on LLVM

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r1.ebuild => pocl-1.7-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.7-r1.ebuild b/dev-libs/pocl/pocl-1.7-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.7-r1.ebuild
rename to dev-libs/pocl/pocl-1.7-r2.ebuild
index d5f2724b962..be663cd6f58 100644
--- a/dev-libs/pocl/pocl-1.7-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r2.ebuild
@@ -30,7 +30,7 @@ CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-02 Thread Sam James
commit: c127713269a116c187d54663e0523b9f79f11886
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 14 06:14:07 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 07:40:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1277132

dev-libs/pocl: use 'distro' option for built kernels

We can't know what CPU the user will run the
built package on (think of binpkgs) so let's
use the 'distro' option which builds for
most common SIMD instructions and chooses
the most appropriate kernel it built at runtime.

Closes: https://bugs.gentoo.org/829128
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
index 6ee4d704b519..13e8dd263413 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -73,7 +73,7 @@ src_configure() {
-DENABLE_HSA=OFF
-DENABLE_ICD=ON
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=native
+   -DKERNELLIB_HOST_CPU_VARIANTS=distro
-DPOCL_ICD_ABSOLUTE_PATH=ON
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-03 Thread Sam James
commit: 414a82e33c4bbe85f7b85bb2a982729087780794
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan  3 08:02:28 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 08:02:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414a82e3

dev-libs/pocl: revbump for installed (opencl) kernel change

Fixes: c127713269a116c187d54663e0523b9f79f11886
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.8-r1.ebuild => pocl-1.8-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.8-r1.ebuild
rename to dev-libs/pocl/pocl-1.8-r2.ebuild
index 13e8dd263413..2c7536c0a22d 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-08-07 Thread Sam James
commit: 2df171bf2190f791dd6252ab787fb15164bc7df2
Author: Sam James  gentoo  org>
AuthorDate: Mon Aug  8 04:17:09 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Aug  8 06:08:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2df171bf

dev-libs/pocl: fix PythonHasVersionUsage

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r2.ebuild | 2 +-
 dev-libs/pocl/pocl-3.0.ebuild| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.8-r2.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
index 2c7536c0a22d..cba8d60fd806 100644
--- a/dev-libs/pocl/pocl-1.8-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -49,7 +49,7 @@ PATCHES=(
 )
 
 python_check_deps() {
-   has_version -b "

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-08-07 Thread Sam James
commit: 2df171bf2190f791dd6252ab787fb15164bc7df2
Author: Sam James  gentoo  org>
AuthorDate: Mon Aug  8 04:17:09 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Aug  8 06:08:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2df171bf

dev-libs/pocl: fix PythonHasVersionUsage

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r2.ebuild | 2 +-
 dev-libs/pocl/pocl-3.0.ebuild| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.8-r2.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
index 2c7536c0a22d..cba8d60fd806 100644
--- a/dev-libs/pocl/pocl-1.8-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -49,7 +49,7 @@ PATCHES=(
 )
 
 python_check_deps() {
-   has_version -b "

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-19 Thread Sam James
commit: 3b578343fd4bad730e2e0a331274cd5bba773e91
Author: Sam James  gentoo  org>
AuthorDate: Wed Jul 20 05:05:10 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jul 20 05:09:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b578343

dev-libs/pocl: add PPC64 support

No keyword yet as apparently virtual/opencl isn't keyworded on ppc64?

Closes: https://bugs.gentoo.org/831859
Thanks-to:  Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 14 +-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 4845b2e15a71..629cf11a51ed 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -69,6 +69,18 @@ pkg_setup() {
 }
 
 src_configure() {
+   local host_cpu_variants="generic"
+
+   if use amd64 ; then
+   # Use pocl's curated list of CPU variants which should contain 
a good match for any given amd64 CPU
+   host_cpu_variants="distro"
+   elif use ppc64 ; then
+   # A selection of architectures in which new Altivec / VSX 
features were added
+   # This attempts to recreate the amd64 "distro" option for ppc64
+   # See discussion in bug #831859
+   host_cpu_variants="pwr10;pwr9;pwr8;pwr7;pwr6;g5;a2;generic"
+   fi
+
local mycmakeargs=(
-DENABLE_HSA=OFF
 
@@ -79,7 +91,7 @@ src_configure() {
-DENABLE_IPO=$(usex lto)
 
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=distro
+   -DKERNELLIB_HOST_CPU_VARIANTS="${host_cpu_variants}"
 
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-04-17 Thread Sam James
commit: d40f792545629e12a42f3936ffe36d79129baa2d
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 17 16:35:07 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 17 16:35:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d40f7925

dev-libs/pocl: drop 1.7-r3

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest   |   1 -
 dev-libs/pocl/pocl-1.7-r3.ebuild | 120 ---
 2 files changed, 121 deletions(-)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4f3243ab7a6f..eacf11d34468 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1,2 +1 @@
-DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
 DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.7-r3.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
deleted file mode 100644
index 1bdb29346d53..
--- a/dev-libs/pocl/pocl-1.7-r3.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DOCS_AUTODOC=0
-DOCS_BUILDER="sphinx"
-DOCS_DIR="doc/sphinx/source"
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
-
-inherit cmake llvm python-any-r1 docs
-
-LLVM_MAX_SLOT=12
-
-DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
-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 test" #hsa tce
-
-RESTRICT="!test? ( test ) mirror"
-
-# TODO: add dependencies for cuda
-# Note: No := on LLVM because it pulls in Clang
-# see llvm.eclass for why
-CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-02 Thread Sam James
commit: c127713269a116c187d54663e0523b9f79f11886
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 14 06:14:07 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 07:40:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1277132

dev-libs/pocl: use 'distro' option for built kernels

We can't know what CPU the user will run the
built package on (think of binpkgs) so let's
use the 'distro' option which builds for
most common SIMD instructions and chooses
the most appropriate kernel it built at runtime.

Closes: https://bugs.gentoo.org/829128
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
index 6ee4d704b519..13e8dd263413 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -73,7 +73,7 @@ src_configure() {
-DENABLE_HSA=OFF
-DENABLE_ICD=ON
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=native
+   -DKERNELLIB_HOST_CPU_VARIANTS=distro
-DPOCL_ICD_ABSOLUTE_PATH=ON
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-03 Thread Sam James
commit: 414a82e33c4bbe85f7b85bb2a982729087780794
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan  3 08:02:28 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 08:02:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414a82e3

dev-libs/pocl: revbump for installed (opencl) kernel change

Fixes: c127713269a116c187d54663e0523b9f79f11886
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.8-r1.ebuild => pocl-1.8-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.8-r1.ebuild
rename to dev-libs/pocl/pocl-1.8-r2.ebuild
index 13e8dd263413..2c7536c0a22d 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-29 Thread Sam James
commit: b4e55fd0e3d94bc08786ed83a6a4183168ebfc30
Author: Sam James  gentoo  org>
AuthorDate: Fri Oct 29 22:43:02 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Oct 29 22:43:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4e55fd0

dev-libs/pocl: add hwloc subslot operator

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r2.ebuild => pocl-1.7-r3.ebuild} | 4 ++--
 dev-libs/pocl/{pocl-1.8.ebuild => pocl-1.8-r1.ebuild}| 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7-r2.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.7-r2.ebuild
rename to dev-libs/pocl/pocl-1.7-r3.ebuild
index be663cd6f58..1bdb29346d5 100644
--- a/dev-libs/pocl/pocl-1.7-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r3.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.8.ebuild
rename to dev-libs/pocl/pocl-1.8-r1.ebuild
index 6f112bf4913..6ee4d704b51 100644
--- a/dev-libs/pocl/pocl-1.8.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-12 Thread Sam James
commit: e9b38e06367dd47eb4500f847f9348013c160268
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 13 01:09:48 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 13 01:12:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b38e06

dev-libs/pocl: add 1.8

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest|   1 +
 dev-libs/pocl/pocl-1.8.ebuild | 126 ++
 2 files changed, 127 insertions(+)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4ac613d41bb..4f3243ab7a6 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1 +1,2 @@
 DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
+DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8.ebuild
new file mode 100644
index 000..6f112bf4913
--- /dev/null
+++ b/dev-libs/pocl/pocl-1.8.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DOCS_AUTODOC=0
+DOCS_BUILDER="sphinx"
+DOCS_DIR="doc/sphinx/source"
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+LLVM_MAX_SLOT=13
+
+inherit cmake llvm python-any-r1 docs
+
+DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
+SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+# TODO: hsa tce
+IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening 
+hwloc memmanager test"
+# Tests not yet passing, fragile in Portage environment(?)
+RESTRICT="!test? ( test ) test"
+
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( https://github.com/pocl/pocl/blob/master/.drone.yml
+   # But couldn't seem to get tests working yet
+   cmake_src_test
+}
+
+src_install() {
+   cmake_src_install
+
+   dodoc CREDITS README CHANGES
+
+   if use doc; then
+   dodoc -r _build/html
+   docompress -x /usr/share/doc/${P}/html
+   fi
+
+   if use examples; then
+   dodoc -r examples
+   docompress -x /usr/share/doc/${P}/examples
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: a47d0fd7fd70bfdf59853f5ae4b34c9d36c9dbca
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:25:43 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:36:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a47d0fd7

dev-libs/pocl: various fixups

Mostly fixups I missed when importing from GURU earlier:
- LLVM deps
- General tidying

Signed-off-by: Sam James  gentoo.org>

 .../pocl/{pocl-1.7.ebuild => pocl-1.7-r1.ebuild}   | 47 +++---
 1 file changed, 32 insertions(+), 15 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7.ebuild b/dev-libs/pocl/pocl-1.7-r1.ebuild
similarity index 66%
rename from dev-libs/pocl/pocl-1.7.ebuild
rename to dev-libs/pocl/pocl-1.7-r1.ebuild
index 74100b13bb3..d5f2724b962 100644
--- a/dev-libs/pocl/pocl-1.7.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI=7
 
 DOCS_AUTODOC=0
 DOCS_BUILDER="sphinx"
@@ -13,10 +13,7 @@ inherit cmake llvm python-any-r1 docs
 LLVM_MAX_SLOT=12
 
 DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="
-   http://portablecl.org
-   https://github.com/pocl/pocl
-"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
 SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
@@ -26,35 +23,51 @@ IUSE="accel cl20 +conformance cuda debug examples 
float-conversion hardening +hw
 
 RESTRICT="!test? ( test ) mirror"
 
-#TODO: add dependencies for cuda
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: d3869995dd4cd8903dd9ceb5b85d45dd57c3a8e6
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:38:19 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:38:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3869995

dev-libs/pocl: fix MissingSlotDep on LLVM

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r1.ebuild => pocl-1.7-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.7-r1.ebuild b/dev-libs/pocl/pocl-1.7-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.7-r1.ebuild
rename to dev-libs/pocl/pocl-1.7-r2.ebuild
index d5f2724b962..be663cd6f58 100644
--- a/dev-libs/pocl/pocl-1.7-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r2.ebuild
@@ -30,7 +30,7 @@ CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-29 Thread Sam James
commit: b4e55fd0e3d94bc08786ed83a6a4183168ebfc30
Author: Sam James  gentoo  org>
AuthorDate: Fri Oct 29 22:43:02 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Oct 29 22:43:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4e55fd0

dev-libs/pocl: add hwloc subslot operator

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r2.ebuild => pocl-1.7-r3.ebuild} | 4 ++--
 dev-libs/pocl/{pocl-1.8.ebuild => pocl-1.8-r1.ebuild}| 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7-r2.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.7-r2.ebuild
rename to dev-libs/pocl/pocl-1.7-r3.ebuild
index be663cd6f58..1bdb29346d5 100644
--- a/dev-libs/pocl/pocl-1.7-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r3.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.8.ebuild
rename to dev-libs/pocl/pocl-1.8-r1.ebuild
index 6f112bf4913..6ee4d704b51 100644
--- a/dev-libs/pocl/pocl-1.8.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-12 Thread Sam James
commit: e9b38e06367dd47eb4500f847f9348013c160268
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 13 01:09:48 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 13 01:12:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b38e06

dev-libs/pocl: add 1.8

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest|   1 +
 dev-libs/pocl/pocl-1.8.ebuild | 126 ++
 2 files changed, 127 insertions(+)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4ac613d41bb..4f3243ab7a6 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1 +1,2 @@
 DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
+DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8.ebuild
new file mode 100644
index 000..6f112bf4913
--- /dev/null
+++ b/dev-libs/pocl/pocl-1.8.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DOCS_AUTODOC=0
+DOCS_BUILDER="sphinx"
+DOCS_DIR="doc/sphinx/source"
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+LLVM_MAX_SLOT=13
+
+inherit cmake llvm python-any-r1 docs
+
+DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
+SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+# TODO: hsa tce
+IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening 
+hwloc memmanager test"
+# Tests not yet passing, fragile in Portage environment(?)
+RESTRICT="!test? ( test ) test"
+
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( https://github.com/pocl/pocl/blob/master/.drone.yml
+   # But couldn't seem to get tests working yet
+   cmake_src_test
+}
+
+src_install() {
+   cmake_src_install
+
+   dodoc CREDITS README CHANGES
+
+   if use doc; then
+   dodoc -r _build/html
+   docompress -x /usr/share/doc/${P}/html
+   fi
+
+   if use examples; then
+   dodoc -r examples
+   docompress -x /usr/share/doc/${P}/examples
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: a47d0fd7fd70bfdf59853f5ae4b34c9d36c9dbca
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:25:43 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:36:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a47d0fd7

dev-libs/pocl: various fixups

Mostly fixups I missed when importing from GURU earlier:
- LLVM deps
- General tidying

Signed-off-by: Sam James  gentoo.org>

 .../pocl/{pocl-1.7.ebuild => pocl-1.7-r1.ebuild}   | 47 +++---
 1 file changed, 32 insertions(+), 15 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7.ebuild b/dev-libs/pocl/pocl-1.7-r1.ebuild
similarity index 66%
rename from dev-libs/pocl/pocl-1.7.ebuild
rename to dev-libs/pocl/pocl-1.7-r1.ebuild
index 74100b13bb3..d5f2724b962 100644
--- a/dev-libs/pocl/pocl-1.7.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI=7
 
 DOCS_AUTODOC=0
 DOCS_BUILDER="sphinx"
@@ -13,10 +13,7 @@ inherit cmake llvm python-any-r1 docs
 LLVM_MAX_SLOT=12
 
 DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="
-   http://portablecl.org
-   https://github.com/pocl/pocl
-"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
 SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
@@ -26,35 +23,51 @@ IUSE="accel cl20 +conformance cuda debug examples 
float-conversion hardening +hw
 
 RESTRICT="!test? ( test ) mirror"
 
-#TODO: add dependencies for cuda
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: d3869995dd4cd8903dd9ceb5b85d45dd57c3a8e6
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:38:19 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:38:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3869995

dev-libs/pocl: fix MissingSlotDep on LLVM

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r1.ebuild => pocl-1.7-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.7-r1.ebuild b/dev-libs/pocl/pocl-1.7-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.7-r1.ebuild
rename to dev-libs/pocl/pocl-1.7-r2.ebuild
index d5f2724b962..be663cd6f58 100644
--- a/dev-libs/pocl/pocl-1.7-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r2.ebuild
@@ -30,7 +30,7 @@ CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-04-17 Thread Sam James
commit: d40f792545629e12a42f3936ffe36d79129baa2d
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 17 16:35:07 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 17 16:35:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d40f7925

dev-libs/pocl: drop 1.7-r3

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest   |   1 -
 dev-libs/pocl/pocl-1.7-r3.ebuild | 120 ---
 2 files changed, 121 deletions(-)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4f3243ab7a6f..eacf11d34468 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1,2 +1 @@
-DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
 DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.7-r3.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
deleted file mode 100644
index 1bdb29346d53..
--- a/dev-libs/pocl/pocl-1.7-r3.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DOCS_AUTODOC=0
-DOCS_BUILDER="sphinx"
-DOCS_DIR="doc/sphinx/source"
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
-
-inherit cmake llvm python-any-r1 docs
-
-LLVM_MAX_SLOT=12
-
-DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
-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 test" #hsa tce
-
-RESTRICT="!test? ( test ) mirror"
-
-# TODO: add dependencies for cuda
-# Note: No := on LLVM because it pulls in Clang
-# see llvm.eclass for why
-CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-19 Thread Sam James
commit: 3b578343fd4bad730e2e0a331274cd5bba773e91
Author: Sam James  gentoo  org>
AuthorDate: Wed Jul 20 05:05:10 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jul 20 05:09:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b578343

dev-libs/pocl: add PPC64 support

No keyword yet as apparently virtual/opencl isn't keyworded on ppc64?

Closes: https://bugs.gentoo.org/831859
Thanks-to:  Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 14 +-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 4845b2e15a71..629cf11a51ed 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -69,6 +69,18 @@ pkg_setup() {
 }
 
 src_configure() {
+   local host_cpu_variants="generic"
+
+   if use amd64 ; then
+   # Use pocl's curated list of CPU variants which should contain 
a good match for any given amd64 CPU
+   host_cpu_variants="distro"
+   elif use ppc64 ; then
+   # A selection of architectures in which new Altivec / VSX 
features were added
+   # This attempts to recreate the amd64 "distro" option for ppc64
+   # See discussion in bug #831859
+   host_cpu_variants="pwr10;pwr9;pwr8;pwr7;pwr6;g5;a2;generic"
+   fi
+
local mycmakeargs=(
-DENABLE_HSA=OFF
 
@@ -79,7 +91,7 @@ src_configure() {
-DENABLE_IPO=$(usex lto)
 
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=distro
+   -DKERNELLIB_HOST_CPU_VARIANTS="${host_cpu_variants}"
 
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-23 Thread Sam James
commit: 9897f940ba92eeaa4b10f5c3ddf9029be6ec093a
Author: Sam James  gentoo  org>
AuthorDate: Sun Jul 24 01:05:23 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul 24 01:05:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9897f940

dev-libs/pocl: keyword 3.0 for ~ppc64

Bug: https://bugs.gentoo.org/831859
Bug: https://bugs.gentoo.org/860288
Thanks-to: Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 629cf11a51ed..2b61340eae95 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 57925fae4d43aebf440329a1105c437883d43cfa
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:47 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57925fae

dev-libs/pocl: Stabilize 3.0 amd64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 2b61340eae95..5582d49d36b2 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64"
+KEYWORDS="amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 5a4f4f964207d51b630e290be0f522f0e3d315f7
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:53 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:53 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a4f4f96

dev-libs/pocl: Stabilize 3.0 ppc64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 5582d49d36b2..ea851bab85ab 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc64"
+KEYWORDS="amd64 ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-12 Thread Sam James
commit: e9b38e06367dd47eb4500f847f9348013c160268
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 13 01:09:48 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 13 01:12:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b38e06

dev-libs/pocl: add 1.8

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest|   1 +
 dev-libs/pocl/pocl-1.8.ebuild | 126 ++
 2 files changed, 127 insertions(+)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4ac613d41bb..4f3243ab7a6 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1 +1,2 @@
 DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
+DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8.ebuild
new file mode 100644
index 000..6f112bf4913
--- /dev/null
+++ b/dev-libs/pocl/pocl-1.8.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DOCS_AUTODOC=0
+DOCS_BUILDER="sphinx"
+DOCS_DIR="doc/sphinx/source"
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+LLVM_MAX_SLOT=13
+
+inherit cmake llvm python-any-r1 docs
+
+DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
+SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+# TODO: hsa tce
+IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening 
+hwloc memmanager test"
+# Tests not yet passing, fragile in Portage environment(?)
+RESTRICT="!test? ( test ) test"
+
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( https://github.com/pocl/pocl/blob/master/.drone.yml
+   # But couldn't seem to get tests working yet
+   cmake_src_test
+}
+
+src_install() {
+   cmake_src_install
+
+   dodoc CREDITS README CHANGES
+
+   if use doc; then
+   dodoc -r _build/html
+   docompress -x /usr/share/doc/${P}/html
+   fi
+
+   if use examples; then
+   dodoc -r examples
+   docompress -x /usr/share/doc/${P}/examples
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: a47d0fd7fd70bfdf59853f5ae4b34c9d36c9dbca
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:25:43 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:36:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a47d0fd7

dev-libs/pocl: various fixups

Mostly fixups I missed when importing from GURU earlier:
- LLVM deps
- General tidying

Signed-off-by: Sam James  gentoo.org>

 .../pocl/{pocl-1.7.ebuild => pocl-1.7-r1.ebuild}   | 47 +++---
 1 file changed, 32 insertions(+), 15 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7.ebuild b/dev-libs/pocl/pocl-1.7-r1.ebuild
similarity index 66%
rename from dev-libs/pocl/pocl-1.7.ebuild
rename to dev-libs/pocl/pocl-1.7-r1.ebuild
index 74100b13bb3..d5f2724b962 100644
--- a/dev-libs/pocl/pocl-1.7.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI=7
 
 DOCS_AUTODOC=0
 DOCS_BUILDER="sphinx"
@@ -13,10 +13,7 @@ inherit cmake llvm python-any-r1 docs
 LLVM_MAX_SLOT=12
 
 DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="
-   http://portablecl.org
-   https://github.com/pocl/pocl
-"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
 SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
@@ -26,35 +23,51 @@ IUSE="accel cl20 +conformance cuda debug examples 
float-conversion hardening +hw
 
 RESTRICT="!test? ( test ) mirror"
 
-#TODO: add dependencies for cuda
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: d3869995dd4cd8903dd9ceb5b85d45dd57c3a8e6
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:38:19 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:38:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3869995

dev-libs/pocl: fix MissingSlotDep on LLVM

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r1.ebuild => pocl-1.7-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.7-r1.ebuild b/dev-libs/pocl/pocl-1.7-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.7-r1.ebuild
rename to dev-libs/pocl/pocl-1.7-r2.ebuild
index d5f2724b962..be663cd6f58 100644
--- a/dev-libs/pocl/pocl-1.7-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r2.ebuild
@@ -30,7 +30,7 @@ CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-02 Thread Sam James
commit: c127713269a116c187d54663e0523b9f79f11886
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 14 06:14:07 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 07:40:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1277132

dev-libs/pocl: use 'distro' option for built kernels

We can't know what CPU the user will run the
built package on (think of binpkgs) so let's
use the 'distro' option which builds for
most common SIMD instructions and chooses
the most appropriate kernel it built at runtime.

Closes: https://bugs.gentoo.org/829128
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
index 6ee4d704b519..13e8dd263413 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -73,7 +73,7 @@ src_configure() {
-DENABLE_HSA=OFF
-DENABLE_ICD=ON
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=native
+   -DKERNELLIB_HOST_CPU_VARIANTS=distro
-DPOCL_ICD_ABSOLUTE_PATH=ON
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-03 Thread Sam James
commit: 414a82e33c4bbe85f7b85bb2a982729087780794
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan  3 08:02:28 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 08:02:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414a82e3

dev-libs/pocl: revbump for installed (opencl) kernel change

Fixes: c127713269a116c187d54663e0523b9f79f11886
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.8-r1.ebuild => pocl-1.8-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.8-r1.ebuild
rename to dev-libs/pocl/pocl-1.8-r2.ebuild
index 13e8dd263413..2c7536c0a22d 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-29 Thread Sam James
commit: b4e55fd0e3d94bc08786ed83a6a4183168ebfc30
Author: Sam James  gentoo  org>
AuthorDate: Fri Oct 29 22:43:02 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Oct 29 22:43:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4e55fd0

dev-libs/pocl: add hwloc subslot operator

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r2.ebuild => pocl-1.7-r3.ebuild} | 4 ++--
 dev-libs/pocl/{pocl-1.8.ebuild => pocl-1.8-r1.ebuild}| 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7-r2.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.7-r2.ebuild
rename to dev-libs/pocl/pocl-1.7-r3.ebuild
index be663cd6f58..1bdb29346d5 100644
--- a/dev-libs/pocl/pocl-1.7-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r3.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.8.ebuild
rename to dev-libs/pocl/pocl-1.8-r1.ebuild
index 6f112bf4913..6ee4d704b51 100644
--- a/dev-libs/pocl/pocl-1.8.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-23 Thread Sam James
commit: 9897f940ba92eeaa4b10f5c3ddf9029be6ec093a
Author: Sam James  gentoo  org>
AuthorDate: Sun Jul 24 01:05:23 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul 24 01:05:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9897f940

dev-libs/pocl: keyword 3.0 for ~ppc64

Bug: https://bugs.gentoo.org/831859
Bug: https://bugs.gentoo.org/860288
Thanks-to: Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 629cf11a51ed..2b61340eae95 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 57925fae4d43aebf440329a1105c437883d43cfa
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:47 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57925fae

dev-libs/pocl: Stabilize 3.0 amd64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 2b61340eae95..5582d49d36b2 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64"
+KEYWORDS="amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 5a4f4f964207d51b630e290be0f522f0e3d315f7
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:53 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:53 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a4f4f96

dev-libs/pocl: Stabilize 3.0 ppc64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 5582d49d36b2..ea851bab85ab 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc64"
+KEYWORDS="amd64 ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-02 Thread Sam James
commit: c127713269a116c187d54663e0523b9f79f11886
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 14 06:14:07 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 07:40:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1277132

dev-libs/pocl: use 'distro' option for built kernels

We can't know what CPU the user will run the
built package on (think of binpkgs) so let's
use the 'distro' option which builds for
most common SIMD instructions and chooses
the most appropriate kernel it built at runtime.

Closes: https://bugs.gentoo.org/829128
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
index 6ee4d704b519..13e8dd263413 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -73,7 +73,7 @@ src_configure() {
-DENABLE_HSA=OFF
-DENABLE_ICD=ON
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=native
+   -DKERNELLIB_HOST_CPU_VARIANTS=distro
-DPOCL_ICD_ABSOLUTE_PATH=ON
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-03 Thread Sam James
commit: 414a82e33c4bbe85f7b85bb2a982729087780794
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan  3 08:02:28 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 08:02:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414a82e3

dev-libs/pocl: revbump for installed (opencl) kernel change

Fixes: c127713269a116c187d54663e0523b9f79f11886
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.8-r1.ebuild => pocl-1.8-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.8-r1.ebuild
rename to dev-libs/pocl/pocl-1.8-r2.ebuild
index 13e8dd263413..2c7536c0a22d 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-08-07 Thread Sam James
commit: 2df171bf2190f791dd6252ab787fb15164bc7df2
Author: Sam James  gentoo  org>
AuthorDate: Mon Aug  8 04:17:09 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Aug  8 06:08:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2df171bf

dev-libs/pocl: fix PythonHasVersionUsage

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r2.ebuild | 2 +-
 dev-libs/pocl/pocl-3.0.ebuild| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.8-r2.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
index 2c7536c0a22d..cba8d60fd806 100644
--- a/dev-libs/pocl/pocl-1.8-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -49,7 +49,7 @@ PATCHES=(
 )
 
 python_check_deps() {
-   has_version -b "

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-04-17 Thread Sam James
commit: d40f792545629e12a42f3936ffe36d79129baa2d
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 17 16:35:07 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 17 16:35:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d40f7925

dev-libs/pocl: drop 1.7-r3

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest   |   1 -
 dev-libs/pocl/pocl-1.7-r3.ebuild | 120 ---
 2 files changed, 121 deletions(-)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4f3243ab7a6f..eacf11d34468 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1,2 +1 @@
-DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
 DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.7-r3.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
deleted file mode 100644
index 1bdb29346d53..
--- a/dev-libs/pocl/pocl-1.7-r3.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DOCS_AUTODOC=0
-DOCS_BUILDER="sphinx"
-DOCS_DIR="doc/sphinx/source"
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
-
-inherit cmake llvm python-any-r1 docs
-
-LLVM_MAX_SLOT=12
-
-DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
-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 test" #hsa tce
-
-RESTRICT="!test? ( test ) mirror"
-
-# TODO: add dependencies for cuda
-# Note: No := on LLVM because it pulls in Clang
-# see llvm.eclass for why
-CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-19 Thread Sam James
commit: 3b578343fd4bad730e2e0a331274cd5bba773e91
Author: Sam James  gentoo  org>
AuthorDate: Wed Jul 20 05:05:10 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jul 20 05:09:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b578343

dev-libs/pocl: add PPC64 support

No keyword yet as apparently virtual/opencl isn't keyworded on ppc64?

Closes: https://bugs.gentoo.org/831859
Thanks-to:  Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 14 +-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 4845b2e15a71..629cf11a51ed 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -69,6 +69,18 @@ pkg_setup() {
 }
 
 src_configure() {
+   local host_cpu_variants="generic"
+
+   if use amd64 ; then
+   # Use pocl's curated list of CPU variants which should contain 
a good match for any given amd64 CPU
+   host_cpu_variants="distro"
+   elif use ppc64 ; then
+   # A selection of architectures in which new Altivec / VSX 
features were added
+   # This attempts to recreate the amd64 "distro" option for ppc64
+   # See discussion in bug #831859
+   host_cpu_variants="pwr10;pwr9;pwr8;pwr7;pwr6;g5;a2;generic"
+   fi
+
local mycmakeargs=(
-DENABLE_HSA=OFF
 
@@ -79,7 +91,7 @@ src_configure() {
-DENABLE_IPO=$(usex lto)
 
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=distro
+   -DKERNELLIB_HOST_CPU_VARIANTS="${host_cpu_variants}"
 
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-23 Thread Sam James
commit: 9897f940ba92eeaa4b10f5c3ddf9029be6ec093a
Author: Sam James  gentoo  org>
AuthorDate: Sun Jul 24 01:05:23 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul 24 01:05:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9897f940

dev-libs/pocl: keyword 3.0 for ~ppc64

Bug: https://bugs.gentoo.org/831859
Bug: https://bugs.gentoo.org/860288
Thanks-to: Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 629cf11a51ed..2b61340eae95 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 57925fae4d43aebf440329a1105c437883d43cfa
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:47 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57925fae

dev-libs/pocl: Stabilize 3.0 amd64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 2b61340eae95..5582d49d36b2 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64"
+KEYWORDS="amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 5a4f4f964207d51b630e290be0f522f0e3d315f7
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:53 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:53 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a4f4f96

dev-libs/pocl: Stabilize 3.0 ppc64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 5582d49d36b2..ea851bab85ab 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc64"
+KEYWORDS="amd64 ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-08-07 Thread Sam James
commit: 2df171bf2190f791dd6252ab787fb15164bc7df2
Author: Sam James  gentoo  org>
AuthorDate: Mon Aug  8 04:17:09 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Aug  8 06:08:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2df171bf

dev-libs/pocl: fix PythonHasVersionUsage

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r2.ebuild | 2 +-
 dev-libs/pocl/pocl-3.0.ebuild| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.8-r2.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
index 2c7536c0a22d..cba8d60fd806 100644
--- a/dev-libs/pocl/pocl-1.8-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -49,7 +49,7 @@ PATCHES=(
 )
 
 python_check_deps() {
-   has_version -b "

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-19 Thread Sam James
commit: 3b578343fd4bad730e2e0a331274cd5bba773e91
Author: Sam James  gentoo  org>
AuthorDate: Wed Jul 20 05:05:10 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jul 20 05:09:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b578343

dev-libs/pocl: add PPC64 support

No keyword yet as apparently virtual/opencl isn't keyworded on ppc64?

Closes: https://bugs.gentoo.org/831859
Thanks-to:  Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 14 +-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 4845b2e15a71..629cf11a51ed 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -69,6 +69,18 @@ pkg_setup() {
 }
 
 src_configure() {
+   local host_cpu_variants="generic"
+
+   if use amd64 ; then
+   # Use pocl's curated list of CPU variants which should contain 
a good match for any given amd64 CPU
+   host_cpu_variants="distro"
+   elif use ppc64 ; then
+   # A selection of architectures in which new Altivec / VSX 
features were added
+   # This attempts to recreate the amd64 "distro" option for ppc64
+   # See discussion in bug #831859
+   host_cpu_variants="pwr10;pwr9;pwr8;pwr7;pwr6;g5;a2;generic"
+   fi
+
local mycmakeargs=(
-DENABLE_HSA=OFF
 
@@ -79,7 +91,7 @@ src_configure() {
-DENABLE_IPO=$(usex lto)
 
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=distro
+   -DKERNELLIB_HOST_CPU_VARIANTS="${host_cpu_variants}"
 
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-23 Thread Sam James
commit: 9897f940ba92eeaa4b10f5c3ddf9029be6ec093a
Author: Sam James  gentoo  org>
AuthorDate: Sun Jul 24 01:05:23 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul 24 01:05:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9897f940

dev-libs/pocl: keyword 3.0 for ~ppc64

Bug: https://bugs.gentoo.org/831859
Bug: https://bugs.gentoo.org/860288
Thanks-to: Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 629cf11a51ed..2b61340eae95 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 57925fae4d43aebf440329a1105c437883d43cfa
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:47 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57925fae

dev-libs/pocl: Stabilize 3.0 amd64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 2b61340eae95..5582d49d36b2 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64"
+KEYWORDS="amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 5a4f4f964207d51b630e290be0f522f0e3d315f7
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:53 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:53 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a4f4f96

dev-libs/pocl: Stabilize 3.0 ppc64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 5582d49d36b2..ea851bab85ab 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc64"
+KEYWORDS="amd64 ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-02 Thread Sam James
commit: c127713269a116c187d54663e0523b9f79f11886
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 14 06:14:07 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 07:40:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1277132

dev-libs/pocl: use 'distro' option for built kernels

We can't know what CPU the user will run the
built package on (think of binpkgs) so let's
use the 'distro' option which builds for
most common SIMD instructions and chooses
the most appropriate kernel it built at runtime.

Closes: https://bugs.gentoo.org/829128
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
index 6ee4d704b519..13e8dd263413 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -73,7 +73,7 @@ src_configure() {
-DENABLE_HSA=OFF
-DENABLE_ICD=ON
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=native
+   -DKERNELLIB_HOST_CPU_VARIANTS=distro
-DPOCL_ICD_ABSOLUTE_PATH=ON
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-03 Thread Sam James
commit: 414a82e33c4bbe85f7b85bb2a982729087780794
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan  3 08:02:28 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 08:02:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414a82e3

dev-libs/pocl: revbump for installed (opencl) kernel change

Fixes: c127713269a116c187d54663e0523b9f79f11886
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.8-r1.ebuild => pocl-1.8-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.8-r1.ebuild
rename to dev-libs/pocl/pocl-1.8-r2.ebuild
index 13e8dd263413..2c7536c0a22d 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-29 Thread Sam James
commit: b4e55fd0e3d94bc08786ed83a6a4183168ebfc30
Author: Sam James  gentoo  org>
AuthorDate: Fri Oct 29 22:43:02 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Oct 29 22:43:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4e55fd0

dev-libs/pocl: add hwloc subslot operator

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r2.ebuild => pocl-1.7-r3.ebuild} | 4 ++--
 dev-libs/pocl/{pocl-1.8.ebuild => pocl-1.8-r1.ebuild}| 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7-r2.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.7-r2.ebuild
rename to dev-libs/pocl/pocl-1.7-r3.ebuild
index be663cd6f58..1bdb29346d5 100644
--- a/dev-libs/pocl/pocl-1.7-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r3.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.8.ebuild
rename to dev-libs/pocl/pocl-1.8-r1.ebuild
index 6f112bf4913..6ee4d704b51 100644
--- a/dev-libs/pocl/pocl-1.8.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-04-17 Thread Sam James
commit: d40f792545629e12a42f3936ffe36d79129baa2d
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 17 16:35:07 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 17 16:35:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d40f7925

dev-libs/pocl: drop 1.7-r3

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest   |   1 -
 dev-libs/pocl/pocl-1.7-r3.ebuild | 120 ---
 2 files changed, 121 deletions(-)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4f3243ab7a6f..eacf11d34468 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1,2 +1 @@
-DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
 DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.7-r3.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
deleted file mode 100644
index 1bdb29346d53..
--- a/dev-libs/pocl/pocl-1.7-r3.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DOCS_AUTODOC=0
-DOCS_BUILDER="sphinx"
-DOCS_DIR="doc/sphinx/source"
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
-
-inherit cmake llvm python-any-r1 docs
-
-LLVM_MAX_SLOT=12
-
-DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
-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 test" #hsa tce
-
-RESTRICT="!test? ( test ) mirror"
-
-# TODO: add dependencies for cuda
-# Note: No := on LLVM because it pulls in Clang
-# see llvm.eclass for why
-CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-12 Thread Sam James
commit: e9b38e06367dd47eb4500f847f9348013c160268
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 13 01:09:48 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 13 01:12:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b38e06

dev-libs/pocl: add 1.8

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest|   1 +
 dev-libs/pocl/pocl-1.8.ebuild | 126 ++
 2 files changed, 127 insertions(+)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4ac613d41bb..4f3243ab7a6 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1 +1,2 @@
 DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
+DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8.ebuild
new file mode 100644
index 000..6f112bf4913
--- /dev/null
+++ b/dev-libs/pocl/pocl-1.8.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DOCS_AUTODOC=0
+DOCS_BUILDER="sphinx"
+DOCS_DIR="doc/sphinx/source"
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+LLVM_MAX_SLOT=13
+
+inherit cmake llvm python-any-r1 docs
+
+DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
+SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+# TODO: hsa tce
+IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening 
+hwloc memmanager test"
+# Tests not yet passing, fragile in Portage environment(?)
+RESTRICT="!test? ( test ) test"
+
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( https://github.com/pocl/pocl/blob/master/.drone.yml
+   # But couldn't seem to get tests working yet
+   cmake_src_test
+}
+
+src_install() {
+   cmake_src_install
+
+   dodoc CREDITS README CHANGES
+
+   if use doc; then
+   dodoc -r _build/html
+   docompress -x /usr/share/doc/${P}/html
+   fi
+
+   if use examples; then
+   dodoc -r examples
+   docompress -x /usr/share/doc/${P}/examples
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: a47d0fd7fd70bfdf59853f5ae4b34c9d36c9dbca
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:25:43 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:36:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a47d0fd7

dev-libs/pocl: various fixups

Mostly fixups I missed when importing from GURU earlier:
- LLVM deps
- General tidying

Signed-off-by: Sam James  gentoo.org>

 .../pocl/{pocl-1.7.ebuild => pocl-1.7-r1.ebuild}   | 47 +++---
 1 file changed, 32 insertions(+), 15 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7.ebuild b/dev-libs/pocl/pocl-1.7-r1.ebuild
similarity index 66%
rename from dev-libs/pocl/pocl-1.7.ebuild
rename to dev-libs/pocl/pocl-1.7-r1.ebuild
index 74100b13bb3..d5f2724b962 100644
--- a/dev-libs/pocl/pocl-1.7.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI=7
 
 DOCS_AUTODOC=0
 DOCS_BUILDER="sphinx"
@@ -13,10 +13,7 @@ inherit cmake llvm python-any-r1 docs
 LLVM_MAX_SLOT=12
 
 DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="
-   http://portablecl.org
-   https://github.com/pocl/pocl
-"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
 SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
@@ -26,35 +23,51 @@ IUSE="accel cl20 +conformance cuda debug examples 
float-conversion hardening +hw
 
 RESTRICT="!test? ( test ) mirror"
 
-#TODO: add dependencies for cuda
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: d3869995dd4cd8903dd9ceb5b85d45dd57c3a8e6
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:38:19 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:38:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3869995

dev-libs/pocl: fix MissingSlotDep on LLVM

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r1.ebuild => pocl-1.7-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.7-r1.ebuild b/dev-libs/pocl/pocl-1.7-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.7-r1.ebuild
rename to dev-libs/pocl/pocl-1.7-r2.ebuild
index d5f2724b962..be663cd6f58 100644
--- a/dev-libs/pocl/pocl-1.7-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r2.ebuild
@@ -30,7 +30,7 @@ CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-04-17 Thread Sam James
commit: d40f792545629e12a42f3936ffe36d79129baa2d
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 17 16:35:07 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 17 16:35:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d40f7925

dev-libs/pocl: drop 1.7-r3

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest   |   1 -
 dev-libs/pocl/pocl-1.7-r3.ebuild | 120 ---
 2 files changed, 121 deletions(-)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4f3243ab7a6f..eacf11d34468 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1,2 +1 @@
-DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
 DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.7-r3.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
deleted file mode 100644
index 1bdb29346d53..
--- a/dev-libs/pocl/pocl-1.7-r3.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DOCS_AUTODOC=0
-DOCS_BUILDER="sphinx"
-DOCS_DIR="doc/sphinx/source"
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
-
-inherit cmake llvm python-any-r1 docs
-
-LLVM_MAX_SLOT=12
-
-DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
-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 test" #hsa tce
-
-RESTRICT="!test? ( test ) mirror"
-
-# TODO: add dependencies for cuda
-# Note: No := on LLVM because it pulls in Clang
-# see llvm.eclass for why
-CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-19 Thread Sam James
commit: 3b578343fd4bad730e2e0a331274cd5bba773e91
Author: Sam James  gentoo  org>
AuthorDate: Wed Jul 20 05:05:10 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jul 20 05:09:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b578343

dev-libs/pocl: add PPC64 support

No keyword yet as apparently virtual/opencl isn't keyworded on ppc64?

Closes: https://bugs.gentoo.org/831859
Thanks-to:  Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 14 +-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 4845b2e15a71..629cf11a51ed 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -69,6 +69,18 @@ pkg_setup() {
 }
 
 src_configure() {
+   local host_cpu_variants="generic"
+
+   if use amd64 ; then
+   # Use pocl's curated list of CPU variants which should contain 
a good match for any given amd64 CPU
+   host_cpu_variants="distro"
+   elif use ppc64 ; then
+   # A selection of architectures in which new Altivec / VSX 
features were added
+   # This attempts to recreate the amd64 "distro" option for ppc64
+   # See discussion in bug #831859
+   host_cpu_variants="pwr10;pwr9;pwr8;pwr7;pwr6;g5;a2;generic"
+   fi
+
local mycmakeargs=(
-DENABLE_HSA=OFF
 
@@ -79,7 +91,7 @@ src_configure() {
-DENABLE_IPO=$(usex lto)
 
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=distro
+   -DKERNELLIB_HOST_CPU_VARIANTS="${host_cpu_variants}"
 
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-08-07 Thread Sam James
commit: 2df171bf2190f791dd6252ab787fb15164bc7df2
Author: Sam James  gentoo  org>
AuthorDate: Mon Aug  8 04:17:09 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Aug  8 06:08:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2df171bf

dev-libs/pocl: fix PythonHasVersionUsage

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r2.ebuild | 2 +-
 dev-libs/pocl/pocl-3.0.ebuild| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.8-r2.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
index 2c7536c0a22d..cba8d60fd806 100644
--- a/dev-libs/pocl/pocl-1.8-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -49,7 +49,7 @@ PATCHES=(
 )
 
 python_check_deps() {
-   has_version -b "

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-23 Thread Sam James
commit: 9897f940ba92eeaa4b10f5c3ddf9029be6ec093a
Author: Sam James  gentoo  org>
AuthorDate: Sun Jul 24 01:05:23 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul 24 01:05:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9897f940

dev-libs/pocl: keyword 3.0 for ~ppc64

Bug: https://bugs.gentoo.org/831859
Bug: https://bugs.gentoo.org/860288
Thanks-to: Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 629cf11a51ed..2b61340eae95 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 57925fae4d43aebf440329a1105c437883d43cfa
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:47 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57925fae

dev-libs/pocl: Stabilize 3.0 amd64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 2b61340eae95..5582d49d36b2 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64"
+KEYWORDS="amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 5a4f4f964207d51b630e290be0f522f0e3d315f7
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:53 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:53 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a4f4f96

dev-libs/pocl: Stabilize 3.0 ppc64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 5582d49d36b2..ea851bab85ab 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc64"
+KEYWORDS="amd64 ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-29 Thread Sam James
commit: b4e55fd0e3d94bc08786ed83a6a4183168ebfc30
Author: Sam James  gentoo  org>
AuthorDate: Fri Oct 29 22:43:02 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Oct 29 22:43:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4e55fd0

dev-libs/pocl: add hwloc subslot operator

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r2.ebuild => pocl-1.7-r3.ebuild} | 4 ++--
 dev-libs/pocl/{pocl-1.8.ebuild => pocl-1.8-r1.ebuild}| 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7-r2.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.7-r2.ebuild
rename to dev-libs/pocl/pocl-1.7-r3.ebuild
index be663cd6f58..1bdb29346d5 100644
--- a/dev-libs/pocl/pocl-1.7-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r3.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.8.ebuild
rename to dev-libs/pocl/pocl-1.8-r1.ebuild
index 6f112bf4913..6ee4d704b51 100644
--- a/dev-libs/pocl/pocl-1.8.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-12 Thread Sam James
commit: e9b38e06367dd47eb4500f847f9348013c160268
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 13 01:09:48 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 13 01:12:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b38e06

dev-libs/pocl: add 1.8

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest|   1 +
 dev-libs/pocl/pocl-1.8.ebuild | 126 ++
 2 files changed, 127 insertions(+)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4ac613d41bb..4f3243ab7a6 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1 +1,2 @@
 DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
+DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8.ebuild
new file mode 100644
index 000..6f112bf4913
--- /dev/null
+++ b/dev-libs/pocl/pocl-1.8.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DOCS_AUTODOC=0
+DOCS_BUILDER="sphinx"
+DOCS_DIR="doc/sphinx/source"
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+LLVM_MAX_SLOT=13
+
+inherit cmake llvm python-any-r1 docs
+
+DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
+SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+# TODO: hsa tce
+IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening 
+hwloc memmanager test"
+# Tests not yet passing, fragile in Portage environment(?)
+RESTRICT="!test? ( test ) test"
+
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( https://github.com/pocl/pocl/blob/master/.drone.yml
+   # But couldn't seem to get tests working yet
+   cmake_src_test
+}
+
+src_install() {
+   cmake_src_install
+
+   dodoc CREDITS README CHANGES
+
+   if use doc; then
+   dodoc -r _build/html
+   docompress -x /usr/share/doc/${P}/html
+   fi
+
+   if use examples; then
+   dodoc -r examples
+   docompress -x /usr/share/doc/${P}/examples
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: a47d0fd7fd70bfdf59853f5ae4b34c9d36c9dbca
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:25:43 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:36:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a47d0fd7

dev-libs/pocl: various fixups

Mostly fixups I missed when importing from GURU earlier:
- LLVM deps
- General tidying

Signed-off-by: Sam James  gentoo.org>

 .../pocl/{pocl-1.7.ebuild => pocl-1.7-r1.ebuild}   | 47 +++---
 1 file changed, 32 insertions(+), 15 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7.ebuild b/dev-libs/pocl/pocl-1.7-r1.ebuild
similarity index 66%
rename from dev-libs/pocl/pocl-1.7.ebuild
rename to dev-libs/pocl/pocl-1.7-r1.ebuild
index 74100b13bb3..d5f2724b962 100644
--- a/dev-libs/pocl/pocl-1.7.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI=7
 
 DOCS_AUTODOC=0
 DOCS_BUILDER="sphinx"
@@ -13,10 +13,7 @@ inherit cmake llvm python-any-r1 docs
 LLVM_MAX_SLOT=12
 
 DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="
-   http://portablecl.org
-   https://github.com/pocl/pocl
-"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
 SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
@@ -26,35 +23,51 @@ IUSE="accel cl20 +conformance cuda debug examples 
float-conversion hardening +hw
 
 RESTRICT="!test? ( test ) mirror"
 
-#TODO: add dependencies for cuda
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: d3869995dd4cd8903dd9ceb5b85d45dd57c3a8e6
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:38:19 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:38:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3869995

dev-libs/pocl: fix MissingSlotDep on LLVM

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r1.ebuild => pocl-1.7-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.7-r1.ebuild b/dev-libs/pocl/pocl-1.7-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.7-r1.ebuild
rename to dev-libs/pocl/pocl-1.7-r2.ebuild
index d5f2724b962..be663cd6f58 100644
--- a/dev-libs/pocl/pocl-1.7-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r2.ebuild
@@ -30,7 +30,7 @@ CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-04-17 Thread Sam James
commit: d40f792545629e12a42f3936ffe36d79129baa2d
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 17 16:35:07 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 17 16:35:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d40f7925

dev-libs/pocl: drop 1.7-r3

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest   |   1 -
 dev-libs/pocl/pocl-1.7-r3.ebuild | 120 ---
 2 files changed, 121 deletions(-)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4f3243ab7a6f..eacf11d34468 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1,2 +1 @@
-DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
 DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.7-r3.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
deleted file mode 100644
index 1bdb29346d53..
--- a/dev-libs/pocl/pocl-1.7-r3.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DOCS_AUTODOC=0
-DOCS_BUILDER="sphinx"
-DOCS_DIR="doc/sphinx/source"
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
-
-inherit cmake llvm python-any-r1 docs
-
-LLVM_MAX_SLOT=12
-
-DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
-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 test" #hsa tce
-
-RESTRICT="!test? ( test ) mirror"
-
-# TODO: add dependencies for cuda
-# Note: No := on LLVM because it pulls in Clang
-# see llvm.eclass for why
-CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-19 Thread Sam James
commit: 3b578343fd4bad730e2e0a331274cd5bba773e91
Author: Sam James  gentoo  org>
AuthorDate: Wed Jul 20 05:05:10 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jul 20 05:09:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b578343

dev-libs/pocl: add PPC64 support

No keyword yet as apparently virtual/opencl isn't keyworded on ppc64?

Closes: https://bugs.gentoo.org/831859
Thanks-to:  Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 14 +-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 4845b2e15a71..629cf11a51ed 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -69,6 +69,18 @@ pkg_setup() {
 }
 
 src_configure() {
+   local host_cpu_variants="generic"
+
+   if use amd64 ; then
+   # Use pocl's curated list of CPU variants which should contain 
a good match for any given amd64 CPU
+   host_cpu_variants="distro"
+   elif use ppc64 ; then
+   # A selection of architectures in which new Altivec / VSX 
features were added
+   # This attempts to recreate the amd64 "distro" option for ppc64
+   # See discussion in bug #831859
+   host_cpu_variants="pwr10;pwr9;pwr8;pwr7;pwr6;g5;a2;generic"
+   fi
+
local mycmakeargs=(
-DENABLE_HSA=OFF
 
@@ -79,7 +91,7 @@ src_configure() {
-DENABLE_IPO=$(usex lto)
 
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=distro
+   -DKERNELLIB_HOST_CPU_VARIANTS="${host_cpu_variants}"
 
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-23 Thread Sam James
commit: 9897f940ba92eeaa4b10f5c3ddf9029be6ec093a
Author: Sam James  gentoo  org>
AuthorDate: Sun Jul 24 01:05:23 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul 24 01:05:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9897f940

dev-libs/pocl: keyword 3.0 for ~ppc64

Bug: https://bugs.gentoo.org/831859
Bug: https://bugs.gentoo.org/860288
Thanks-to: Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 629cf11a51ed..2b61340eae95 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 57925fae4d43aebf440329a1105c437883d43cfa
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:47 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57925fae

dev-libs/pocl: Stabilize 3.0 amd64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 2b61340eae95..5582d49d36b2 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64"
+KEYWORDS="amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 5a4f4f964207d51b630e290be0f522f0e3d315f7
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:53 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:53 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a4f4f96

dev-libs/pocl: Stabilize 3.0 ppc64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 5582d49d36b2..ea851bab85ab 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc64"
+KEYWORDS="amd64 ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: a47d0fd7fd70bfdf59853f5ae4b34c9d36c9dbca
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:25:43 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:36:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a47d0fd7

dev-libs/pocl: various fixups

Mostly fixups I missed when importing from GURU earlier:
- LLVM deps
- General tidying

Signed-off-by: Sam James  gentoo.org>

 .../pocl/{pocl-1.7.ebuild => pocl-1.7-r1.ebuild}   | 47 +++---
 1 file changed, 32 insertions(+), 15 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7.ebuild b/dev-libs/pocl/pocl-1.7-r1.ebuild
similarity index 66%
rename from dev-libs/pocl/pocl-1.7.ebuild
rename to dev-libs/pocl/pocl-1.7-r1.ebuild
index 74100b13bb3..d5f2724b962 100644
--- a/dev-libs/pocl/pocl-1.7.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI=7
 
 DOCS_AUTODOC=0
 DOCS_BUILDER="sphinx"
@@ -13,10 +13,7 @@ inherit cmake llvm python-any-r1 docs
 LLVM_MAX_SLOT=12
 
 DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="
-   http://portablecl.org
-   https://github.com/pocl/pocl
-"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
 SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
@@ -26,35 +23,51 @@ IUSE="accel cl20 +conformance cuda debug examples 
float-conversion hardening +hw
 
 RESTRICT="!test? ( test ) mirror"
 
-#TODO: add dependencies for cuda
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: d3869995dd4cd8903dd9ceb5b85d45dd57c3a8e6
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:38:19 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:38:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3869995

dev-libs/pocl: fix MissingSlotDep on LLVM

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r1.ebuild => pocl-1.7-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.7-r1.ebuild b/dev-libs/pocl/pocl-1.7-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.7-r1.ebuild
rename to dev-libs/pocl/pocl-1.7-r2.ebuild
index d5f2724b962..be663cd6f58 100644
--- a/dev-libs/pocl/pocl-1.7-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r2.ebuild
@@ -30,7 +30,7 @@ CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-08-07 Thread Sam James
commit: 2df171bf2190f791dd6252ab787fb15164bc7df2
Author: Sam James  gentoo  org>
AuthorDate: Mon Aug  8 04:17:09 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Aug  8 06:08:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2df171bf

dev-libs/pocl: fix PythonHasVersionUsage

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r2.ebuild | 2 +-
 dev-libs/pocl/pocl-3.0.ebuild| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.8-r2.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
index 2c7536c0a22d..cba8d60fd806 100644
--- a/dev-libs/pocl/pocl-1.8-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -49,7 +49,7 @@ PATCHES=(
 )
 
 python_check_deps() {
-   has_version -b "

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-02 Thread Sam James
commit: c127713269a116c187d54663e0523b9f79f11886
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 14 06:14:07 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 07:40:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1277132

dev-libs/pocl: use 'distro' option for built kernels

We can't know what CPU the user will run the
built package on (think of binpkgs) so let's
use the 'distro' option which builds for
most common SIMD instructions and chooses
the most appropriate kernel it built at runtime.

Closes: https://bugs.gentoo.org/829128
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
index 6ee4d704b519..13e8dd263413 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -73,7 +73,7 @@ src_configure() {
-DENABLE_HSA=OFF
-DENABLE_ICD=ON
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=native
+   -DKERNELLIB_HOST_CPU_VARIANTS=distro
-DPOCL_ICD_ABSOLUTE_PATH=ON
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-03 Thread Sam James
commit: 414a82e33c4bbe85f7b85bb2a982729087780794
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan  3 08:02:28 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 08:02:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414a82e3

dev-libs/pocl: revbump for installed (opencl) kernel change

Fixes: c127713269a116c187d54663e0523b9f79f11886
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.8-r1.ebuild => pocl-1.8-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.8-r1.ebuild
rename to dev-libs/pocl/pocl-1.8-r2.ebuild
index 13e8dd263413..2c7536c0a22d 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-29 Thread Sam James
commit: b4e55fd0e3d94bc08786ed83a6a4183168ebfc30
Author: Sam James  gentoo  org>
AuthorDate: Fri Oct 29 22:43:02 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Oct 29 22:43:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4e55fd0

dev-libs/pocl: add hwloc subslot operator

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r2.ebuild => pocl-1.7-r3.ebuild} | 4 ++--
 dev-libs/pocl/{pocl-1.8.ebuild => pocl-1.8-r1.ebuild}| 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7-r2.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.7-r2.ebuild
rename to dev-libs/pocl/pocl-1.7-r3.ebuild
index be663cd6f58..1bdb29346d5 100644
--- a/dev-libs/pocl/pocl-1.7-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r3.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.8.ebuild
rename to dev-libs/pocl/pocl-1.8-r1.ebuild
index 6f112bf4913..6ee4d704b51 100644
--- a/dev-libs/pocl/pocl-1.8.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-12 Thread Sam James
commit: e9b38e06367dd47eb4500f847f9348013c160268
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 13 01:09:48 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 13 01:12:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b38e06

dev-libs/pocl: add 1.8

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest|   1 +
 dev-libs/pocl/pocl-1.8.ebuild | 126 ++
 2 files changed, 127 insertions(+)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4ac613d41bb..4f3243ab7a6 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1 +1,2 @@
 DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
+DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8.ebuild
new file mode 100644
index 000..6f112bf4913
--- /dev/null
+++ b/dev-libs/pocl/pocl-1.8.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DOCS_AUTODOC=0
+DOCS_BUILDER="sphinx"
+DOCS_DIR="doc/sphinx/source"
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+LLVM_MAX_SLOT=13
+
+inherit cmake llvm python-any-r1 docs
+
+DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
+SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+# TODO: hsa tce
+IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening 
+hwloc memmanager test"
+# Tests not yet passing, fragile in Portage environment(?)
+RESTRICT="!test? ( test ) test"
+
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( https://github.com/pocl/pocl/blob/master/.drone.yml
+   # But couldn't seem to get tests working yet
+   cmake_src_test
+}
+
+src_install() {
+   cmake_src_install
+
+   dodoc CREDITS README CHANGES
+
+   if use doc; then
+   dodoc -r _build/html
+   docompress -x /usr/share/doc/${P}/html
+   fi
+
+   if use examples; then
+   dodoc -r examples
+   docompress -x /usr/share/doc/${P}/examples
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-04-17 Thread Sam James
commit: d40f792545629e12a42f3936ffe36d79129baa2d
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 17 16:35:07 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 17 16:35:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d40f7925

dev-libs/pocl: drop 1.7-r3

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest   |   1 -
 dev-libs/pocl/pocl-1.7-r3.ebuild | 120 ---
 2 files changed, 121 deletions(-)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4f3243ab7a6f..eacf11d34468 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1,2 +1 @@
-DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
 DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.7-r3.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
deleted file mode 100644
index 1bdb29346d53..
--- a/dev-libs/pocl/pocl-1.7-r3.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DOCS_AUTODOC=0
-DOCS_BUILDER="sphinx"
-DOCS_DIR="doc/sphinx/source"
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
-
-inherit cmake llvm python-any-r1 docs
-
-LLVM_MAX_SLOT=12
-
-DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
-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 test" #hsa tce
-
-RESTRICT="!test? ( test ) mirror"
-
-# TODO: add dependencies for cuda
-# Note: No := on LLVM because it pulls in Clang
-# see llvm.eclass for why
-CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-19 Thread Sam James
commit: 3b578343fd4bad730e2e0a331274cd5bba773e91
Author: Sam James  gentoo  org>
AuthorDate: Wed Jul 20 05:05:10 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jul 20 05:09:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b578343

dev-libs/pocl: add PPC64 support

No keyword yet as apparently virtual/opencl isn't keyworded on ppc64?

Closes: https://bugs.gentoo.org/831859
Thanks-to:  Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 14 +-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 4845b2e15a71..629cf11a51ed 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -69,6 +69,18 @@ pkg_setup() {
 }
 
 src_configure() {
+   local host_cpu_variants="generic"
+
+   if use amd64 ; then
+   # Use pocl's curated list of CPU variants which should contain 
a good match for any given amd64 CPU
+   host_cpu_variants="distro"
+   elif use ppc64 ; then
+   # A selection of architectures in which new Altivec / VSX 
features were added
+   # This attempts to recreate the amd64 "distro" option for ppc64
+   # See discussion in bug #831859
+   host_cpu_variants="pwr10;pwr9;pwr8;pwr7;pwr6;g5;a2;generic"
+   fi
+
local mycmakeargs=(
-DENABLE_HSA=OFF
 
@@ -79,7 +91,7 @@ src_configure() {
-DENABLE_IPO=$(usex lto)
 
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=distro
+   -DKERNELLIB_HOST_CPU_VARIANTS="${host_cpu_variants}"
 
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-23 Thread Sam James
commit: 9897f940ba92eeaa4b10f5c3ddf9029be6ec093a
Author: Sam James  gentoo  org>
AuthorDate: Sun Jul 24 01:05:23 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul 24 01:05:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9897f940

dev-libs/pocl: keyword 3.0 for ~ppc64

Bug: https://bugs.gentoo.org/831859
Bug: https://bugs.gentoo.org/860288
Thanks-to: Chris Kerr  mykolab.ch>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 629cf11a51ed..2b61340eae95 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 57925fae4d43aebf440329a1105c437883d43cfa
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:47 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57925fae

dev-libs/pocl: Stabilize 3.0 amd64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 2b61340eae95..5582d49d36b2 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64"
+KEYWORDS="amd64 ~ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-07-25 Thread Sam James
commit: 5a4f4f964207d51b630e290be0f522f0e3d315f7
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:48:53 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:48:53 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a4f4f96

dev-libs/pocl: Stabilize 3.0 ppc64, #861113

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-3.0.ebuild b/dev-libs/pocl/pocl-3.0.ebuild
index 5582d49d36b2..ea851bab85ab 100644
--- a/dev-libs/pocl/pocl-3.0.ebuild
+++ b/dev-libs/pocl/pocl-3.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc64"
+KEYWORDS="amd64 ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-29 Thread Sam James
commit: b4e55fd0e3d94bc08786ed83a6a4183168ebfc30
Author: Sam James  gentoo  org>
AuthorDate: Fri Oct 29 22:43:02 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Oct 29 22:43:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4e55fd0

dev-libs/pocl: add hwloc subslot operator

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r2.ebuild => pocl-1.7-r3.ebuild} | 4 ++--
 dev-libs/pocl/{pocl-1.8.ebuild => pocl-1.8-r1.ebuild}| 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7-r2.ebuild b/dev-libs/pocl/pocl-1.7-r3.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.7-r2.ebuild
rename to dev-libs/pocl/pocl-1.7-r3.ebuild
index be663cd6f58..1bdb29346d5 100644
--- a/dev-libs/pocl/pocl-1.7-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r3.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
similarity index 97%
rename from dev-libs/pocl/pocl-1.8.ebuild
rename to dev-libs/pocl/pocl-1.8-r1.ebuild
index 6f112bf4913..6ee4d704b51 100644
--- a/dev-libs/pocl/pocl-1.8.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -34,8 +34,8 @@ RDEPEND="
virtual/opencl
 
${CLANG_DEPS}
-   debug? ( dev-util/lttng-ust )
-   hwloc? ( sys-apps/hwloc[cuda?] )
+   debug? ( dev-util/lttng-ust:= )
+   hwloc? ( sys-apps/hwloc:=[cuda?] )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="${CLANG_DEPS}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-10-12 Thread Sam James
commit: e9b38e06367dd47eb4500f847f9348013c160268
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 13 01:09:48 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 13 01:12:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b38e06

dev-libs/pocl: add 1.8

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/Manifest|   1 +
 dev-libs/pocl/pocl-1.8.ebuild | 126 ++
 2 files changed, 127 insertions(+)

diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest
index 4ac613d41bb..4f3243ab7a6 100644
--- a/dev-libs/pocl/Manifest
+++ b/dev-libs/pocl/Manifest
@@ -1 +1,2 @@
 DIST pocl-1.7.tar.gz 1577676 BLAKE2B 
50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65
 SHA512 
23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38
+DIST pocl-1.8.tar.gz 1614545 BLAKE2B 
b0ccc08d1f899719f5def731c61727440035a879ebeebae89dd406423eba6c12b866f34cd47dd0e0f944b7f0c4569c57c44a9a62bf02552de5c4c3b8c9fb3b48
 SHA512 
bcbb3fa3d2234d4c5b0c17863eba0bc4c8f13f863cc58cfd1de49e21fa7bf0aec82b81aec143c81885e3a39274c8ae783b2f03b9a12846e024204d6ed0e59a9d

diff --git a/dev-libs/pocl/pocl-1.8.ebuild b/dev-libs/pocl/pocl-1.8.ebuild
new file mode 100644
index 000..6f112bf4913
--- /dev/null
+++ b/dev-libs/pocl/pocl-1.8.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DOCS_AUTODOC=0
+DOCS_BUILDER="sphinx"
+DOCS_DIR="doc/sphinx/source"
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+LLVM_MAX_SLOT=13
+
+inherit cmake llvm python-any-r1 docs
+
+DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
+SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+# TODO: hsa tce
+IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening 
+hwloc memmanager test"
+# Tests not yet passing, fragile in Portage environment(?)
+RESTRICT="!test? ( test ) test"
+
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( https://github.com/pocl/pocl/blob/master/.drone.yml
+   # But couldn't seem to get tests working yet
+   cmake_src_test
+}
+
+src_install() {
+   cmake_src_install
+
+   dodoc CREDITS README CHANGES
+
+   if use doc; then
+   dodoc -r _build/html
+   docompress -x /usr/share/doc/${P}/html
+   fi
+
+   if use examples; then
+   dodoc -r examples
+   docompress -x /usr/share/doc/${P}/examples
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: a47d0fd7fd70bfdf59853f5ae4b34c9d36c9dbca
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:25:43 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:36:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a47d0fd7

dev-libs/pocl: various fixups

Mostly fixups I missed when importing from GURU earlier:
- LLVM deps
- General tidying

Signed-off-by: Sam James  gentoo.org>

 .../pocl/{pocl-1.7.ebuild => pocl-1.7-r1.ebuild}   | 47 +++---
 1 file changed, 32 insertions(+), 15 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.7.ebuild b/dev-libs/pocl/pocl-1.7-r1.ebuild
similarity index 66%
rename from dev-libs/pocl/pocl-1.7.ebuild
rename to dev-libs/pocl/pocl-1.7-r1.ebuild
index 74100b13bb3..d5f2724b962 100644
--- a/dev-libs/pocl/pocl-1.7.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI=7
 
 DOCS_AUTODOC=0
 DOCS_BUILDER="sphinx"
@@ -13,10 +13,7 @@ inherit cmake llvm python-any-r1 docs
 LLVM_MAX_SLOT=12
 
 DESCRIPTION="Portable Computing Language (an implementation of OpenCL)"
-HOMEPAGE="
-   http://portablecl.org
-   https://github.com/pocl/pocl
-"
+HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl";
 SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
@@ -26,35 +23,51 @@ IUSE="accel cl20 +conformance cuda debug examples 
float-conversion hardening +hw
 
 RESTRICT="!test? ( test ) mirror"
 
-#TODO: add dependencies for cuda
+# TODO: add dependencies for cuda
+# Note: No := on LLVM because it pulls in Clang
+# see llvm.eclass for why
+CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2021-09-22 Thread Sam James
commit: d3869995dd4cd8903dd9ceb5b85d45dd57c3a8e6
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 23 06:38:19 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 23 06:38:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3869995

dev-libs/pocl: fix MissingSlotDep on LLVM

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.7-r1.ebuild => pocl-1.7-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.7-r1.ebuild b/dev-libs/pocl/pocl-1.7-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.7-r1.ebuild
rename to dev-libs/pocl/pocl-1.7-r2.ebuild
index d5f2724b962..be663cd6f58 100644
--- a/dev-libs/pocl/pocl-1.7-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.7-r2.ebuild
@@ -30,7 +30,7 @@ CLANG_DEPS="!cuda? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-02 Thread Sam James
commit: c127713269a116c187d54663e0523b9f79f11886
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 14 06:14:07 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 07:40:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1277132

dev-libs/pocl: use 'distro' option for built kernels

We can't know what CPU the user will run the
built package on (think of binpkgs) so let's
use the 'distro' option which builds for
most common SIMD instructions and chooses
the most appropriate kernel it built at runtime.

Closes: https://bugs.gentoo.org/829128
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
index 6ee4d704b519..13e8dd263413 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -73,7 +73,7 @@ src_configure() {
-DENABLE_HSA=OFF
-DENABLE_ICD=ON
-DENABLE_POCL_BUILDING=ON
-   -DKERNELLIB_HOST_CPU_VARIANTS=native
+   -DKERNELLIB_HOST_CPU_VARIANTS=distro
-DPOCL_ICD_ABSOLUTE_PATH=ON
-DSTATIC_LLVM=OFF
-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-01-03 Thread Sam James
commit: 414a82e33c4bbe85f7b85bb2a982729087780794
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan  3 08:02:28 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 08:02:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414a82e3

dev-libs/pocl: revbump for installed (opencl) kernel change

Fixes: c127713269a116c187d54663e0523b9f79f11886
Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/{pocl-1.8-r1.ebuild => pocl-1.8-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
similarity index 98%
rename from dev-libs/pocl/pocl-1.8-r1.ebuild
rename to dev-libs/pocl/pocl-1.8-r2.ebuild
index 13e8dd263413..2c7536c0a22d 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2022-08-07 Thread Sam James
commit: 2df171bf2190f791dd6252ab787fb15164bc7df2
Author: Sam James  gentoo  org>
AuthorDate: Mon Aug  8 04:17:09 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Aug  8 06:08:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2df171bf

dev-libs/pocl: fix PythonHasVersionUsage

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-1.8-r2.ebuild | 2 +-
 dev-libs/pocl/pocl-3.0.ebuild| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/pocl/pocl-1.8-r2.ebuild b/dev-libs/pocl/pocl-1.8-r2.ebuild
index 2c7536c0a22d..cba8d60fd806 100644
--- a/dev-libs/pocl/pocl-1.8-r2.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r2.ebuild
@@ -49,7 +49,7 @@ PATCHES=(
 )
 
 python_check_deps() {
-   has_version -b "

[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2024-07-14 Thread Sam James
commit: 7919d6b616bf8a05e389d0f50aae4ce583cf689a
Author: Sam James  gentoo  org>
AuthorDate: Mon Jul 15 00:19:58 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jul 15 00:19:58 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7919d6b6

dev-libs/pocl: Stabilize 6.0 ppc64, #935992

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-6.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-6.0.ebuild b/dev-libs/pocl/pocl-6.0.ebuild
index c16b713bd7c3..06498cb0fbc0 100644
--- a/dev-libs/pocl/pocl-6.0.ebuild
+++ b/dev-libs/pocl/pocl-6.0.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64"
+KEYWORDS="~amd64 ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2024-07-14 Thread Sam James
commit: 6146047b7c8f510c0bb0ee1fe8a50dad9c36c681
Author: Sam James  gentoo  org>
AuthorDate: Mon Jul 15 01:38:58 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jul 15 01:38:58 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6146047b

dev-libs/pocl: Stabilize 6.0 amd64, #935992

Signed-off-by: Sam James  gentoo.org>

 dev-libs/pocl/pocl-6.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-6.0.ebuild b/dev-libs/pocl/pocl-6.0.ebuild
index 06498cb0fbc0..2ae9dfbe316d 100644
--- a/dev-libs/pocl/pocl-6.0.ebuild
+++ b/dev-libs/pocl/pocl-6.0.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ppc64"
+KEYWORDS="amd64 ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager test"
 # Tests not yet passing, fragile in Portage environment(?)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2024-01-07 Thread Michał Górny
commit: e9276f91166f047f67d5987bf1f7c24f9e1793da
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Dec 26 16:52:21 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Jan  7 11:37:44 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9276f91

dev-libs/pocl: [QA] Remove invalid USE=lto

USE=lto in this package only appends -flto flag.  This is not a valid
use of the USE flag, as lto in Gentoo is enabled via setting flags
manually.

Signed-off-by: Michał Górny  gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/34490
Signed-off-by: Michał Górny  gentoo.org>

 dev-libs/pocl/pocl-4.0.ebuild | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dev-libs/pocl/pocl-4.0.ebuild b/dev-libs/pocl/pocl-4.0.ebuild
index 2ffb95bda051..e8e313759963 100644
--- a/dev-libs/pocl/pocl-4.0.ebuild
+++ b/dev-libs/pocl/pocl-4.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -14,7 +14,7 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc64"
 # TODO: hsa tce
-IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
+IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager test"
 # Tests not yet passing, fragile in Portage environment(?)
 RESTRICT="!test? ( test ) test"
 
@@ -69,7 +69,8 @@ src_configure() {
-DPOCL_ICD_ABSOLUTE_PATH=ON

-DPOCL_INSTALL_PUBLIC_LIBDIR="${EPREFIX}/usr/$(get_libdir)/OpenCL/vendors/pocl"
 
-   -DENABLE_IPO=$(usex lto)
+   # only appends -flto
+   -DENABLE_IPO=OFF
 
-DENABLE_POCL_BUILDING=ON
-DKERNELLIB_HOST_CPU_VARIANTS="${host_cpu_variants}"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/

2023-09-27 Thread Arthur Zamarin
commit: 8cfe817722e34f8de3473e74287ae01353d9935e
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Wed Sep 27 13:28:08 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Wed Sep 27 13:28:08 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cfe8177

dev-libs/pocl: Stabilize 4.0 amd64, #914786

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-libs/pocl/pocl-4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-4.0.ebuild b/dev-libs/pocl/pocl-4.0.ebuild
index 91b17547627a..2ffb95bda051 100644
--- a/dev-libs/pocl/pocl-4.0.ebuild
+++ b/dev-libs/pocl/pocl-4.0.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ppc64"
+KEYWORDS="amd64 ppc64"
 # TODO: hsa tce
 IUSE="accel +conformance cuda debug examples float-conversion hardening +hwloc 
memmanager lto test"
 # Tests not yet passing, fragile in Portage environment(?)



  1   2   >