diff options
author | Aisha Tammy <gentoo@aisha.cc> | 2021-01-19 01:15:47 +0000 |
---|---|---|
committer | Aisha Tammy <gentoo@aisha.cc> | 2021-01-19 01:15:47 +0000 |
commit | a4b8b8d131c6167c812590100538db42d374cd53 (patch) | |
tree | bdd873a69d9d54357f946338fa616add4c40665b /sci-libs/arrayfire | |
parent | sci-mathematics/kash-bin: drop dead package (diff) | |
download | sci-a4b8b8d131c6167c812590100538db42d374cd53.tar.gz sci-a4b8b8d131c6167c812590100538db42d374cd53.tar.bz2 sci-a4b8b8d131c6167c812590100538db42d374cd53.zip |
sci-libs/arrayfire: version bump to 3.8.0
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Diffstat (limited to 'sci-libs/arrayfire')
-rw-r--r-- | sci-libs/arrayfire/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/arrayfire/arrayfire-3.8.0.ebuild | 96 |
2 files changed, 97 insertions, 0 deletions
diff --git a/sci-libs/arrayfire/Manifest b/sci-libs/arrayfire/Manifest index 4add7dde4..584d98ad5 100644 --- a/sci-libs/arrayfire/Manifest +++ b/sci-libs/arrayfire/Manifest @@ -1,2 +1,3 @@ DIST arrayfire-3.7.2.tar.bz2 53973398 BLAKE2B 33323516c4b708affb0d5457a55e4defae363b913b30d1c74a7b7d8956c9e85397a030c4c9e1b6e2605dd1703763b261beca9a5cfb69ff8a183cc95e51670748 SHA512 733f5931cca9397dd45945fde05d887207d11891fcc5ff0d2b5f30ac6bd4881240c595bd24d1d7b8f89c74e249b3fe16a15c2640586940bf101cd0fbaec998a6 DIST arrayfire-3.7.3.tar.bz2 53956721 BLAKE2B b5c28ea71d0f88befd7bc747eec20d90b006e50ca2a614ce6237eb3d842fc1ddffb87f72a50a2b921c52cad1fa79668f4463bf7b7c6f73f65400e5557ef5db12 SHA512 e94545b9e02c95ceff863ff73717250a8a7dd818d9c598f3e18f9aedb808977ee5062a6a1da212bd8c22996d2324153b2d1dfc9ecb4114a07b4927383881e230 +DIST arrayfire-3.8.0.tar.bz2 53964142 BLAKE2B c5325066f72e794f6bf8883306eb2848a299107f8aaeb2694933159f72fe43ee733347cf5fd0999905ab2ef89f3eca99e2e3725f686d90429d7f8f374446e425 SHA512 f36bee89a0f1a0a48ca2cae3a7b2527d63830e3070cb31174ff7f5c42f065aad6981d5142a8b7af7215a3c7dbf67ae13d1ea3543cd94eb70cff509c8cb95c739 diff --git a/sci-libs/arrayfire/arrayfire-3.8.0.ebuild b/sci-libs/arrayfire/arrayfire-3.8.0.ebuild new file mode 100644 index 000000000..e9b0932a8 --- /dev/null +++ b/sci-libs/arrayfire/arrayfire-3.8.0.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake multilib + +DESCRIPTION="general purpose GPU library" +HOMEPAGE="https://www.arrayfire.com/" +SRC_URI="https://github.com/arrayfire/arrayfire/releases/download/v${PV}/${PN}-full-${PV}.tar.bz2 -> ${P}.tar.bz2" +S="${WORKDIR}"/${PN}-full-${PV} +BUILD_DIR="${S}/build" + +KEYWORDS="~amd64" + +LICENSE="BSD nonfree? ( OpenSIFT )" +SLOT="0" +IUSE="examples +cache cuda doc mkl nonfree opencl test +trace" +RESTRICT="bindist mirror !test? ( test )" + +RDEPEND=" + media-libs/freeimage + media-libs/glbinding + >=media-libs/glfw-3.1 + ~sci-visualization/forge-1.0.5 + virtual/blas + virtual/cblas + virtual/lapacke + sci-libs/fftw:3.0 + cuda? ( + dev-libs/cudnn + >=dev-util/nvidia-cuda-toolkit-9.0.0 + >=dev-libs/boost-1.70.0 + ) + mkl? ( + sci-libs/mkl + ) + opencl? ( + >=dev-libs/boost-1.70.0 + >=sci-libs/clblas-2.4 + >=sci-libs/clfft-2.6.1 + virtual/opencl + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( app-doc/doxygen ) + virtual/pkgconfig +" + +src_unpack() { + default + + if ! use nonfree; then + find "${WORKDIR}" -name "*_nonfree*" -delete || die + fi +} + +src_configure() { + if use cuda; then + addwrite /dev/nvidiactl + addwrite /dev/nvidia0 + addwrite /dev/nvidia-uvm + fi + + # forge headers are needed, so submodule + # has to stay, hence a ~ on forge dependency + local mycmakeargs=( + -DAF_BUILD_CPU=ON + -DAF_BUILD_CUDA="$(usex cuda)" + -DAF_BUILD_OPENCL="$(usex opencl)" + -DAF_BUILD_UNIFIED=ON + -DAF_BUILD_DOCS="$(usex doc)" + -DAF_BUILD_EXAMPLES="$(usex examples)" + -DAF_WITH_CUDNN="$(usex cuda)" + -DAF_BUILD_FORGE=OFF + -DAF_WITH_NONFREE="$(usex nonfree)" + -DAF_WITH_LOGGING=ON + -DAF_WITH_STACKTRACE="$(usex trace)" + -DAF_CACHE_KERNELS_TO_DISK="$(usex cache)" + -DAF_WITH_STATIC_MKL="$(usex mkl)" + -DAF_INSTALL_STANDALONE=OFF + -DAF_WITH_STATIC_FREEIMAGE=OFF + -DAF_INSTALL_CMAKE_DIR=/usr/$(get_libdir)/cmake/ArrayFire + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + dodoc -r "${ED}"/usr/LICENSES + rm -r "${ED}"/usr/LICENSES || die + + dobin "${BUILD_DIR}"/bin2cpp +} |