diff options
author | Aisha Tammy <gentoo@aisha.cc> | 2020-12-23 02:46:39 +0000 |
---|---|---|
committer | Aisha Tammy <gentoo@aisha.cc> | 2020-12-23 02:46:39 +0000 |
commit | 486551514d058a29ab9e7faa45c330dde6542c2a (patch) | |
tree | e752f4b05a7574ae02bd4c1654311908b56888a6 /sci-libs/arrayfire | |
parent | media-libs/mmg: drop old version (diff) | |
download | sci-486551514d058a29ab9e7faa45c330dde6542c2a.tar.gz sci-486551514d058a29ab9e7faa45c330dde6542c2a.tar.bz2 sci-486551514d058a29ab9e7faa45c330dde6542c2a.zip |
sci-libs/arrayfire: version bump 3.7.3
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.7.2.ebuild | 5 | ||||
-rw-r--r-- | sci-libs/arrayfire/arrayfire-3.7.3.ebuild | 96 |
3 files changed, 97 insertions, 5 deletions
diff --git a/sci-libs/arrayfire/Manifest b/sci-libs/arrayfire/Manifest index 574ad0051..4add7dde4 100644 --- a/sci-libs/arrayfire/Manifest +++ b/sci-libs/arrayfire/Manifest @@ -1 +1,2 @@ DIST arrayfire-3.7.2.tar.bz2 53973398 BLAKE2B 33323516c4b708affb0d5457a55e4defae363b913b30d1c74a7b7d8956c9e85397a030c4c9e1b6e2605dd1703763b261beca9a5cfb69ff8a183cc95e51670748 SHA512 733f5931cca9397dd45945fde05d887207d11891fcc5ff0d2b5f30ac6bd4881240c595bd24d1d7b8f89c74e249b3fe16a15c2640586940bf101cd0fbaec998a6 +DIST arrayfire-3.7.3.tar.bz2 53956721 BLAKE2B b5c28ea71d0f88befd7bc747eec20d90b006e50ca2a614ce6237eb3d842fc1ddffb87f72a50a2b921c52cad1fa79668f4463bf7b7c6f73f65400e5557ef5db12 SHA512 e94545b9e02c95ceff863ff73717250a8a7dd818d9c598f3e18f9aedb808977ee5062a6a1da212bd8c22996d2324153b2d1dfc9ecb4114a07b4927383881e230 diff --git a/sci-libs/arrayfire/arrayfire-3.7.2.ebuild b/sci-libs/arrayfire/arrayfire-3.7.2.ebuild index c48d70612..bc6313b9e 100644 --- a/sci-libs/arrayfire/arrayfire-3.7.2.ebuild +++ b/sci-libs/arrayfire/arrayfire-3.7.2.ebuild @@ -4,7 +4,6 @@ EAPI=7 inherit cmake multilib -CMAKE_BUILD_TYPE=Release DESCRIPTION="general purpose GPU library" HOMEPAGE="https://www.arrayfire.com/" @@ -49,10 +48,6 @@ BDEPEND=" virtual/pkgconfig " -# We need write acccess /dev/nvidiactl, /dev/nvidia0 and /dev/nvidia-uvm and the portage -# user is (usually) not in the video group -RESTRICT="userpriv" - src_unpack() { default diff --git a/sci-libs/arrayfire/arrayfire-3.7.3.ebuild b/sci-libs/arrayfire/arrayfire-3.7.3.ebuild new file mode 100644 index 000000000..bc6313b9e --- /dev/null +++ b/sci-libs/arrayfire/arrayfire-3.7.3.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2020 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 +} |