mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -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="amdsi">Implement workaround for AMD SI GPUs</flag>
|
||||||
<flag name="clhpp">Install the OpenCL C++ header provided by VexCL</flag>
|
<flag name="clhpp">Install the OpenCL C++ header provided by VexCL</flag>
|
||||||
<!--<flag name="clogs">Use clogs algorithms</flag>-->
|
<!--<flag name="clogs">Use clogs algorithms</flag>-->
|
||||||
<flag name="compute">Use Boost.Compute algorithms</flag>
|
<flag name="backend-compute">Use Boost.Compute algorithms</flag>
|
||||||
<!--<flag name="cuda">Use CUDA as backend</flag>-->
|
<!--<flag name="backend-cuda">Use CUDA as backend</flag>-->
|
||||||
<flag name="jit">Use the JIT backend</flag>
|
<flag name="backend-jit">Use the JIT backend</flag>
|
||||||
<flag name="opencl">Use OpenCL as backend</flag>
|
<flag name="backend-opencl">Use OpenCL as backend</flag>
|
||||||
</use>
|
</use>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
|||||||
@@ -20,18 +20,27 @@ SRC_URI="https://github.com/ddemidov/vexcl/archive/refs/tags/${PV}.tar.gz -> ${P
|
|||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
IUSE="amdsi clhpp compute examples jit +opencl test" #cuda clogs
|
IUSE_BACKEND="
|
||||||
REQUIRED_USE="^^ ( compute jit opencl )" #cuda
|
backend-compute
|
||||||
RESTRICT="!test? ( test )"
|
backend-jit
|
||||||
|
+backend-opencl
|
||||||
|
"
|
||||||
|
# backend-cuda
|
||||||
|
IUSE_EXPAND="BACKEND"
|
||||||
|
IUSE="${IUSE_BACKEND} amdsi clhpp examples test" #clogs
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
compute? ( dev-libs/boost:= )
|
dev-libs/boost:=
|
||||||
jit? ( virtual/opencl )
|
backend-jit? ( virtual/opencl )
|
||||||
opencl? ( virtual/opencl )
|
backend-opencl? ( virtual/opencl )
|
||||||
"
|
"
|
||||||
DEPEND="${RDEPEND}"
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}/add-sphinx-ext-autodoc-to-conf-py.patch" )
|
PATCHES=( "${FILESDIR}/add-sphinx-ext-autodoc-to-conf-py.patch" )
|
||||||
|
REQUIRED_USE="
|
||||||
|
^^ ( ${IUSE_BACKEND//+/} )
|
||||||
|
"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
sed -e "s|git_version()|\'${PV}\'|g" -i docs/conf.py || die
|
sed -e "s|git_version()|\'${PV}\'|g" -i docs/conf.py || die
|
||||||
@@ -41,10 +50,10 @@ src_prepare() {
|
|||||||
src_configure() {
|
src_configure() {
|
||||||
local backend
|
local backend
|
||||||
# use && backend="All"
|
# use && backend="All"
|
||||||
use compute && backend="Compute"
|
use backend-compute && backend="Compute"
|
||||||
# use cuda && backend="CUDA"
|
# use backend-cuda && backend="CUDA"
|
||||||
use jit && backend="JIT"
|
use backend-jit && backend="JIT"
|
||||||
use opencl && backend="OpenCL"
|
use backend-opencl && backend="OpenCL"
|
||||||
|
|
||||||
local mycmakeargs=(
|
local mycmakeargs=(
|
||||||
-DVEXCL_BUILD_EXAMPLES=OFF
|
-DVEXCL_BUILD_EXAMPLES=OFF
|
||||||
|
|||||||
Reference in New Issue
Block a user