public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: profiles/desc/, dev-cpp/vexcl/
@ 2022-05-28 10:10 Andrew Ammerlaan
  0 siblings, 0 replies; only message in thread
From: Andrew Ammerlaan @ 2022-05-28 10:10 UTC (permalink / raw
  To: gentoo-commits

commit:     a434bd558f408b2b3b7c5a0345a82dd884e433fd
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu May 26 22:58:24 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri May 27 11:28:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a434bd55

dev-cpp/vexcl: move backend use expand to profiles/desc

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-cpp/vexcl/metadata.xml          |  4 ----
 dev-cpp/vexcl/vexcl-1.4.3-r1.ebuild | 20 ++++++++++----------
 profiles/desc/backend.desc          |  9 +++++++++
 3 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/dev-cpp/vexcl/metadata.xml b/dev-cpp/vexcl/metadata.xml
index 7f8e3b02b..ef42cd3ea 100644
--- a/dev-cpp/vexcl/metadata.xml
+++ b/dev-cpp/vexcl/metadata.xml
@@ -17,9 +17,5 @@
 	<use>
 		<flag name="amdsi">Implement workaround for AMD SI GPUs</flag>
 		<!--<flag name="clogs">Use clogs algorithms</flag>-->
-		<flag name="backend-compute">Use Boost.Compute algorithms</flag>
-		<!--<flag name="backend-cuda">Use CUDA as backend</flag>-->
-		<flag name="backend-jit">Use the JIT backend</flag>
-		<flag name="backend-opencl">Use OpenCL as backend</flag>
 	</use>
 </pkgmetadata>

diff --git a/dev-cpp/vexcl/vexcl-1.4.3-r1.ebuild b/dev-cpp/vexcl/vexcl-1.4.3-r1.ebuild
index 3a30be60e..4d03273cb 100644
--- a/dev-cpp/vexcl/vexcl-1.4.3-r1.ebuild
+++ b/dev-cpp/vexcl/vexcl-1.4.3-r1.ebuild
@@ -21,18 +21,18 @@ LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE_BACKEND="
-	backend-compute
-	backend-jit
-	+backend-opencl
+	backend_compute
+	backend_jit
+	+backend_opencl
 "
-#	backend-cuda
+#	backend_cuda
 IUSE="${IUSE_BACKEND} amdsi examples test" #clogs
 
 RDEPEND="
 	dev-libs/boost:=
 	dev-libs/clhpp
-	backend-jit? ( virtual/opencl )
-	backend-opencl? ( virtual/opencl )
+	backend_jit? ( virtual/opencl )
+	backend_opencl? ( virtual/opencl )
 "
 DEPEND="${RDEPEND}"
 
@@ -47,10 +47,10 @@ src_prepare() {
 src_configure() {
 	local backend
 #	use  && backend="All"
-	use backend-compute && backend="Compute"
-#	use backend-cuda && backend="CUDA"
-	use backend-jit && backend="JIT"
-	use backend-opencl && backend="OpenCL"
+	use backend_compute && backend="Compute"
+#	use backend_cuda && backend="CUDA"
+	use backend_jit && backend="JIT"
+	use backend_opencl && backend="OpenCL"
 
 	local mycmakeargs=(
 		-DBoost_USE_STATIC_LIBS=OFF

diff --git a/profiles/desc/backend.desc b/profiles/desc/backend.desc
new file mode 100644
index 000000000..8a708023b
--- /dev/null
+++ b/profiles/desc/backend.desc
@@ -0,0 +1,9 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# This file contains descriptions of BACKEND USE_EXPAND flags.
+
+compute - Use Boost.Compute algorithms
+cuda - Use CUDA as backend
+jit - Use the JIT backend
+opencl - Use OpenCL as backend


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-28 10:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-28 10:10 [gentoo-commits] repo/proj/guru:master commit in: profiles/desc/, dev-cpp/vexcl/ Andrew Ammerlaan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox