mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
dev-cpp/vexcl: always depend on boost, add IUSE_BACKEND
Closes: https://bugs.gentoo.org/799839 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user