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/MEL/MEL-1.0.0.ebuild | 34 +++++++++++++++ dev-cpp/MEL/Manifest | 1 + dev-cpp/MEL/metadata.xml | 13 ++++++ 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 ------------------------------------ 6 files changed, 132 insertions(+), 84 deletions(-) create mode 100644 dev-cpp/MEL/MEL-1.0.0.ebuild create mode 100644 dev-cpp/MEL/Manifest create mode 100644 dev-cpp/MEL/metadata.xml 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') diff --git a/dev-cpp/MEL/MEL-1.0.0.ebuild b/dev-cpp/MEL/MEL-1.0.0.ebuild new file mode 100644 index 000000000000..1edb276168ff --- /dev/null +++ b/dev-cpp/MEL/MEL-1.0.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Math Expression Library" +HOMEPAGE="https://github.com/pcarruscag/MEL" +SRC_URI="https://github.com/pcarruscag/MEL/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +RESTRICT="!test? ( test )" + +src_compile() { + tc-export CXX + if use test; then + "${CXX}" ${CXXFLAGS} ${LDFLAGS} -fPIE -std=c++11 -I. ./tests.cpp -o ./tests || die + fi +} + +src_install() { + insinto "/usr/include/${PN}" + doins mel.hpp definitions.hpp + dodoc README.md +} + +src_test() { + ./tests || die +} diff --git a/dev-cpp/MEL/Manifest b/dev-cpp/MEL/Manifest new file mode 100644 index 000000000000..8fe95c91d596 --- /dev/null +++ b/dev-cpp/MEL/Manifest @@ -0,0 +1 @@ +DIST MEL-1.0.0.tar.gz 13466 BLAKE2B e9ba12697cecd38c52c0013db6bec69e009b0847cf4157a06effb390d99d72fe6c64db20aaad46ebd49ba6664c1ebaafcff3c70de03f56d0e8cc4e40df319c88 SHA512 59a957ddfc7c79a50999f75d8a5be64fe15767ad4f3aba5e423144c099d263f2407c694af22a561a40e65f22f71c554c6712624f6c1f9d81af86c398b9fb591f diff --git a/dev-cpp/MEL/metadata.xml b/dev-cpp/MEL/metadata.xml new file mode 100644 index 000000000000..a16ed52cf10e --- /dev/null +++ b/dev-cpp/MEL/metadata.xml @@ -0,0 +1,13 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + MEL is a small (~500 loc) header-only C++11 library to parse strings into math expression objects that can be evaluated at runtime, by substituting symbols (e.g. x) by runtime values. It can be used, for example, to implement user-defined functions (UDF) in a larger code, in a self-contained way. + + https://github.com/pcarruscag/MEL/issues + + gentoo-guru-overlay + \ No newline at end of file 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