From 4fdeebf08b9afa9ef1e1e0f79862aa4e1e2471f3 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Wed, 25 May 2022 00:41:18 +0000 Subject: Adding metadata --- dev-cpp/vexcl/metadata.xml | 1 - dev-cpp/vexcl/vexcl-1.4.3-r1.ebuild | 84 +++++++++++++++++++++++++++++++++++++ dev-cpp/vexcl/vexcl-1.4.3.ebuild | 83 ------------------------------------ 3 files changed, 84 insertions(+), 84 deletions(-) create mode 100644 dev-cpp/vexcl/vexcl-1.4.3-r1.ebuild delete mode 100644 dev-cpp/vexcl/vexcl-1.4.3.ebuild (limited to 'dev-cpp/vexcl') diff --git a/dev-cpp/vexcl/metadata.xml b/dev-cpp/vexcl/metadata.xml index f1a0f78de8cc..28e4a8eb626a 100644 --- a/dev-cpp/vexcl/metadata.xml +++ b/dev-cpp/vexcl/metadata.xml @@ -15,7 +15,6 @@ Implement workaround for AMD SI GPUs - Install the OpenCL C++ header provided by VexCL Use Boost.Compute algorithms Use the JIT backend Use OpenCL as backend diff --git a/dev-cpp/vexcl/vexcl-1.4.3-r1.ebuild b/dev-cpp/vexcl/vexcl-1.4.3-r1.ebuild new file mode 100644 index 000000000000..9dd820913775 --- /dev/null +++ b/dev-cpp/vexcl/vexcl-1.4.3-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DOCS_BUILDER="sphinx" +DOCS_DEPEND=" + dev-python/breathe + dev-python/sphinx-bootstrap-theme +" +DOCS_DIR="docs" +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit cmake python-any-r1 docs + +DESCRIPTION="VexCL - Vector expression template library for OpenCL" +HOMEPAGE="https://github.com/ddemidov/vexcl" +SRC_URI="https://github.com/ddemidov/vexcl/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE_BACKEND=" + backend-compute + backend-jit + +backend-opencl +" +# backend-cuda +IUSE="${IUSE_BACKEND} amdsi examples test" #clogs + +RDEPEND=" + dev-libs/boost:= + dev-libs/clhpp + backend-jit? ( virtual/opencl ) + backend-opencl? ( virtual/opencl ) +" +DEPEND="${RDEPEND}" + +REQUIRED_USE="^^ ( ${IUSE_BACKEND//+/} )" +RESTRICT="!test? ( test )" + +src_prepare() { + sed -e "s|git_version()|\'${PV}\'|g" -i docs/conf.py || die + cmake_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" + + local mycmakeargs=( + -DBoost_USE_STATIC_LIBS=OFF + -DVEXCL_INSTALL_CL_HPP=OFF + + -DVEXCL_AMD_SI_WORKAROUND=$(usex amdsi) + -DVEXCL_BACKEND="${backend}" + -DVEXCL_BUILD_EXAMPLES=$(usex examples) + -DVEXCL_BUILD_TESTS=$(usex test) + ) +# -DVEXCL_CLOGS=$(usex clogs) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + docs_compile +} + +src_install() { + cmake_src_install + if use doc; then + dodoc -r docs/html + docompress -x "/usr/share/doc/${P}/html" + fi + if use examples; then + dodoc -r examples + docompress -x "/usr/share/doc/${P}/examples" + fi +} diff --git a/dev-cpp/vexcl/vexcl-1.4.3.ebuild b/dev-cpp/vexcl/vexcl-1.4.3.ebuild deleted file mode 100644 index e60621bcf11f..000000000000 --- a/dev-cpp/vexcl/vexcl-1.4.3.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="sphinx" -DOCS_DEPEND=" - dev-python/breathe - dev-python/sphinx-bootstrap-theme -" -DOCS_DIR="docs" -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit cmake python-any-r1 docs - -DESCRIPTION="VexCL - Vector expression template library for OpenCL" -HOMEPAGE="https://github.com/ddemidov/vexcl" -SRC_URI="https://github.com/ddemidov/vexcl/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" -IUSE_BACKEND=" - backend-compute - backend-jit - +backend-opencl -" -# backend-cuda -IUSE="${IUSE_BACKEND} amdsi clhpp examples test" #clogs - -RDEPEND=" - dev-libs/boost:= - backend-jit? ( virtual/opencl ) - backend-opencl? ( virtual/opencl ) -" -DEPEND="${RDEPEND}" - -REQUIRED_USE="^^ ( ${IUSE_BACKEND//+/} )" -RESTRICT="!test? ( test )" - -src_prepare() { - sed -e "s|git_version()|\'${PV}\'|g" -i docs/conf.py || die - cmake_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" - - local mycmakeargs=( - -DBoost_USE_STATIC_LIBS=OFF - -DVEXCL_BUILD_EXAMPLES=OFF - - -DVEXCL_AMD_SI_WORKAROUND=$(usex amdsi) - -DVEXCL_BACKEND="${backend}" - -DVEXCL_BUILD_TESTS=$(usex test) - -DVEXCL_INSTALL_CL_HPP=$(usex clhpp) - ) -# -DVEXCL_CLOGS=$(usex clogs) - - cmake_src_configure -} - -src_compile() { - cmake_src_compile - docs_compile -} - -src_install() { - cmake_src_install - if use doc; then - dodoc -r docs/html - docompress -x "/usr/share/doc/${P}/html" - fi - if use examples; then - dodoc -r examples - docompress -x "/usr/share/doc/${P}/examples" - fi -} -- cgit v1.3