From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/vexcl/
Date: Sun, 22 Aug 2021 02:00:57 +0000 (UTC) [thread overview]
Message-ID: <1629595058.8fe125e027df6d4a43b2e38c83e52c4fcb71060e.Alessandro-Barbieri@gentoo> (raw)
commit: 8fe125e027df6d4a43b2e38c83e52c4fcb71060e
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sun Aug 22 01:07:59 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sun Aug 22 01:17:38 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8fe125e0
dev-cpp/vexcl: always depend on boost, add IUSE_BACKEND
Closes: https://bugs.gentoo.org/799839
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-cpp/vexcl/metadata.xml | 8 ++++----
dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild | 29 +++++++++++++++++++----------
2 files changed, 23 insertions(+), 14 deletions(-)
diff --git a/dev-cpp/vexcl/metadata.xml b/dev-cpp/vexcl/metadata.xml
index 419b97cb5..eba4a282b 100644
--- a/dev-cpp/vexcl/metadata.xml
+++ b/dev-cpp/vexcl/metadata.xml
@@ -18,9 +18,9 @@
<flag name="amdsi">Implement workaround for AMD SI GPUs</flag>
<flag name="clhpp">Install the OpenCL C++ header provided by VexCL</flag>
<!--<flag name="clogs">Use clogs algorithms</flag>-->
- <flag name="compute">Use Boost.Compute algorithms</flag>
- <!--<flag name="cuda">Use CUDA as backend</flag>-->
- <flag name="jit">Use the JIT backend</flag>
- <flag name="opencl">Use OpenCL as backend</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.2-r1.ebuild b/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild
index b3c196c69..d5eac888d 100644
--- a/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild
+++ b/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild
@@ -20,18 +20,27 @@ SRC_URI="https://github.com/ddemidov/vexcl/archive/refs/tags/${PV}.tar.gz -> ${P
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="amdsi clhpp compute examples jit +opencl test" #cuda clogs
-REQUIRED_USE="^^ ( compute jit opencl )" #cuda
-RESTRICT="!test? ( test )"
+IUSE_BACKEND="
+ backend-compute
+ backend-jit
+ +backend-opencl
+"
+# backend-cuda
+IUSE_EXPAND="BACKEND"
+IUSE="${IUSE_BACKEND} amdsi clhpp examples test" #clogs
RDEPEND="
- compute? ( dev-libs/boost:= )
- jit? ( virtual/opencl )
- opencl? ( virtual/opencl )
+ dev-libs/boost:=
+ backend-jit? ( virtual/opencl )
+ backend-opencl? ( virtual/opencl )
"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/add-sphinx-ext-autodoc-to-conf-py.patch" )
+REQUIRED_USE="
+ ^^ ( ${IUSE_BACKEND//+/} )
+"
+RESTRICT="!test? ( test )"
src_prepare() {
sed -e "s|git_version()|\'${PV}\'|g" -i docs/conf.py || die
@@ -41,10 +50,10 @@ src_prepare() {
src_configure() {
local backend
# use && backend="All"
- use compute && backend="Compute"
-# use cuda && backend="CUDA"
- use jit && backend="JIT"
- use 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=(
-DVEXCL_BUILD_EXAMPLES=OFF
next reply other threads:[~2021-08-22 2:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-22 2:00 Alessandro Barbieri [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-12-26 9:34 [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/vexcl/ Takuya Wakazono
2023-03-08 19:40 Anna Vyalkova
2022-05-06 16:34 Alessandro Barbieri
2021-05-13 6:39 Andrew Ammerlaan
2021-05-12 14:59 Alessandro Barbieri
2021-05-12 10:23 Alessandro Barbieri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1629595058.8fe125e027df6d4a43b2e38c83e52c4fcb71060e.Alessandro-Barbieri@gentoo \
--to=lssndrbarbieri@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox