aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Brehler <marbre@linux.sungazer.de>2016-01-08 14:15:54 +0100
committerMarius Brehler <marbre@linux.sungazer.de>2016-01-08 14:15:54 +0100
commitbef429bec016df8a54b91325a6000fdd5a3c7f77 (patch)
tree1ce9a8768eb0e11d7e290cc642251bedf6d09d62 /sci-libs/arrayfire
parentBan ChangeLogs (diff)
downloadsci-bef429bec016df8a54b91325a6000fdd5a3c7f77.tar.gz
sci-bef429bec016df8a54b91325a6000fdd5a3c7f77.tar.bz2
sci-bef429bec016df8a54b91325a6000fdd5a3c7f77.zip
sci-libs/arrayfire: Version bump to 3.2.2
Package-Manager: portage-2.2.26
Diffstat (limited to 'sci-libs/arrayfire')
-rw-r--r--sci-libs/arrayfire/Manifest1
-rw-r--r--sci-libs/arrayfire/arrayfire-3.2.2.ebuild109
2 files changed, 110 insertions, 0 deletions
diff --git a/sci-libs/arrayfire/Manifest b/sci-libs/arrayfire/Manifest
index e3a688b69..fccb6cf35 100644
--- a/sci-libs/arrayfire/Manifest
+++ b/sci-libs/arrayfire/Manifest
@@ -1,4 +1,5 @@
DIST arrayfire-3.1.3.tar.bz2 23740458 SHA256 72cf094fec4366d2ee4d87a064a8beece9b1460a0340d739291208f8a001093f SHA512 500fd7652494fed5891f0c8bc31ca3ab87cc0c8587f13793621bb5f8c348c3dddccfc1805b99360251c87998765e0c3221e55c49fa4ac2eb3a1c06c1aeb680ee WHIRLPOOL 384d94bdeb5c993559df9524d63e55ef757898c2d7ef370feaaf2733ffe8d3a9543f1c7bcda67d14622a29adf4e6b7bc2dcacde4471291a07bc6e8f79c9e5ea1
DIST arrayfire-3.2.0.tar.bz2 29394581 SHA256 9a1a89c6a4f9386186aa99617e40ee9ab4aac450c1dafff33c3ad910f06e9a05 SHA512 a7aed8100715516a80ca801a971f0cd018bb64d8500b698bc76ca38238325b3e1c6f3d8c6c3a0cf0825d986a67363ca1a1505acc8ed5602444e9dfbdd2e2a773 WHIRLPOOL 3a3fe72c696a114cfb7d548c82e25f8cc2c5f965b853a6376e4813e292f2cde0ebf0121a0c90a44ccbac782febf09c61ef558910ad8d68cf7fad9d1779d0d8e8
DIST arrayfire-3.2.1.tar.bz2 30354347 SHA256 b37a687772229794a4564f16b01fe41315b77d9b52b09d85a02dc1e6e97a84b5 SHA512 5ea43ebd8f8b3e773f2fa9c543839b49774148e262a08d982831bbf88e2f874c3225dac013cc5efeef0e678dcb05765e89df09fa48b981ecbaef7e756ad706e6 WHIRLPOOL adec2c293a4f80d7c516e0a8f17ed9a655ac1964bbdfd6c479d800d70a25f97d435c218eef900f2f2fd21da8a318b7c985a16f9efb0c33947f0230208f460e37
+DIST arrayfire-3.2.2.tar.bz2 30359885 SHA256 7bcc13ff29bdfb647813ee0e9830ce8387217953427abe0d9904de671e600831 SHA512 ff897eb24d85d83bf844a7507181f2091ac7d902260b9f4b4b2d4aea898c3e818a4694eb57dfff67aaeeabc6180b5e6e1e295eab5ccdab639e280fa62b5e0945 WHIRLPOOL 427a0f97e8934990f63e38d312792706c16fc6a7d6473e05ed49bfa0a71892ed0114df3f295ccaaa9632a03241ac20eefa1cee7e929bfbb2445f8e0cf50f3e98
DIST gtest-1.7.0.zip 1164254 SHA256 247ca18dd83f53deb1328be17e4b1be31514cedfc1e3424f672bf11fd7e0d60d SHA512 8859369f2dd32cbc2ac01aba029aa3ff20a321f40658b9643aff442d34c33468221866b801b28c66a28af47dbcd362d26941fc98db92b6efb7e41ea5b7be1a07 WHIRLPOOL 0c31a385159551859c1afe76480b3fb1b560d666db9a0afc5cbda92bcd53bf129f85a8f902c6ded0779c2b4c49aacec59ba5a4d5ce316a07bf08174f4fc64049
diff --git a/sci-libs/arrayfire/arrayfire-3.2.2.ebuild b/sci-libs/arrayfire/arrayfire-3.2.2.ebuild
new file mode 100644
index 000000000..fefe267a1
--- /dev/null
+++ b/sci-libs/arrayfire/arrayfire-3.2.2.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils multilib
+
+GTEST_PV="1.7.0"
+
+DESCRIPTION="A general purpose GPU library"
+HOMEPAGE="http://www.arrayfire.com/"
+SRC_URI="http://arrayfire.com/arrayfire_source/${PN}-full-${PV}.tar.bz2 -> ${P}.tar.bz2
+test? ( https://googletest.googlecode.com/files/gtest-${GTEST_PV}.zip )"
+KEYWORDS="~amd64"
+
+LICENSE="BSD
+ nonfree? ( OpenSIFT )"
+SLOT="0"
+IUSE="+examples +cpu cuda nonfree opencl test unified graphics"
+
+RDEPEND="
+ >=sys-devel/gcc-4.7:*
+ media-libs/freeimage
+ cuda? (
+ >=dev-util/nvidia-cuda-toolkit-7.5.18-r1
+ dev-libs/boost
+ )
+ cpu? (
+ virtual/blas
+ virtual/cblas
+ virtual/lapacke
+ sci-libs/fftw:3.0
+ )
+ opencl? (
+ virtual/blas
+ virtual/cblas
+ virtual/lapacke
+ dev-libs/boost
+ dev-libs/boost-compute
+ >=sci-libs/clblas-2.4
+ >=sci-libs/clfft-2.6.1
+ )
+ graphics? (
+ media-libs/glew
+ >=media-libs/glfw-3.1.1
+ =sci-visualization/forge-3.2.0
+ )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}-full-${PV}"
+BUILD_DIR="${S}/build"
+CMAKE_BUILD_TYPE=Release
+
+# 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"
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]] ) ; then
+ die "Compilation with gcc older than 4.7 is not supported."
+ fi
+ fi
+}
+
+src_unpack() {
+ default
+
+ if ! use nonfree; then
+ find "${WORKDIR}" -name "*_nonfree*" -delete || die
+ fi
+
+ if use test; then
+ mkdir -p "${BUILD_DIR}"/third_party/src/ || die
+ mv "${WORKDIR}"/gtest-"${GTEST_PV}" "${BUILD_DIR}"/third_party/src/googletest || die
+ fi
+}
+
+src_configure() {
+ if use cuda; then
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+ addwrite /dev/nvidia-uvm
+ fi
+
+ local mycmakeargs=(
+ $(cmake-utils_use_build cpu CPU)
+ $(cmake-utils_use_build cuda CUDA)
+ $(cmake-utils_use_build opencl OPENCL)
+ $(cmake-utils_use_build examples EXAMPLES)
+ $(cmake-utils_use_build test TEST)
+ $(cmake-utils_use_build graphics GRAPHICS)
+ $(cmake-utils_use_build nonfree NONFREE)
+ $(cmake-utils_use_build unified UNIFIED)
+ -DUSE_SYSTEM_BOOST_COMPUTE=ON
+ -DUSE_SYSTEM_CLBLAS=ON
+ -DUSE_SYSTEM_CLFFT=ON
+ -DUSE_SYSTEM_FORGE=ON
+ -DAF_INSTALL_CMAKE_DIR=/usr/$(get_libdir)/cmake/ArrayFire
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ dobin "${BUILD_DIR}/bin2cpp"
+}