diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-10-01 08:06:34 +0200 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-10-01 08:06:34 +0200 |
commit | f1f5e00973ded663847fd4b2ecd47187e4358346 (patch) | |
tree | 9e382ecdad78fd938b3e5e52d566d80542fd58a2 /sci-libs | |
parent | Add missing remote-ids to metadata (diff) | |
parent | Merge pull request #504 from TheChymera/pysurfer (diff) | |
download | sci-f1f5e00973ded663847fd4b2ecd47187e4358346.tar.gz sci-f1f5e00973ded663847fd4b2ecd47187e4358346.tar.bz2 sci-f1f5e00973ded663847fd4b2ecd47187e4358346.zip |
Merge remote-tracking branch 'github/master'
* github/master:
dev-python/matplotlib2tikz: Drop python3 (only supported in 9999)
added correspondng patch for =sci-biology/pysurfer-0.6
sci-biology/pysurfer: version bump
new manifest and archive name for sci-biology/pysurfer
new manifests sci-biology/spm:
added name
sci-physics/root: Remove geocad-patch, is now upstream.
sci-physics/root: Drop desktop-patch (upstreamed), add http-useflag enabling THttpServer.
updated manifest
saving archive as ${P}
added patch number
sci-libs/arrayfire: Version bump
sci-visualization/forge: Set version of glm required
sci-visualization/forge: Version bump
added manifest
dev-python/ipyparallel: Re-Fix Issue #473; Fixes Bug #561324
using upstream pckage version
new patched version from upstream
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/arrayfire/ChangeLog | 6 | ||||
-rw-r--r-- | sci-libs/arrayfire/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/arrayfire/arrayfire-3.1.2.ebuild | 108 |
3 files changed, 115 insertions, 0 deletions
diff --git a/sci-libs/arrayfire/ChangeLog b/sci-libs/arrayfire/ChangeLog index 7c122a194..b369ea912 100644 --- a/sci-libs/arrayfire/ChangeLog +++ b/sci-libs/arrayfire/ChangeLog @@ -1,6 +1,12 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ +*arrayfire-3.1.2 (27 Sep 2015) + + 27 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> + +arrayfire-3.1.2.ebuild: + sci-libs/arrayfire: Version bump + *arrayfire-3.1.1-r2 (20 Sep 2015) 20 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> diff --git a/sci-libs/arrayfire/Manifest b/sci-libs/arrayfire/Manifest index 96cb9b9b8..2f1836893 100644 --- a/sci-libs/arrayfire/Manifest +++ b/sci-libs/arrayfire/Manifest @@ -1,2 +1,3 @@ DIST arrayfire-3.1.1.tar.bz2 23466597 SHA256 d353ec37ada7e20cf231f2d997d743553e503956b1ca679cd56097bddbac9f64 SHA512 cd8d25983285fc21673d979fcf26f8521b418fb8b51b07046100eccf648131fa411f81490193e47dde99a823212acf9a824d1fcf5e157edef0bee7290187ce5c WHIRLPOOL bf62f720d191e327639d28d7c5d534201df52bbf81ace3513a3ee0836013a7b0e6b7905d6880bd231e30b7d55795e7aa61475769f4ffb2e6a1962eef0f57ed53 +DIST arrayfire-3.1.2.tar.bz2 23435268 SHA256 64d12cbde8f1dbd86a7d6ef273b0f0cf4bd60d7ea1274f3b98c509764048d81f SHA512 4238fa4d236c5ea25929684f9c94f1a8248f797f41ebb907942f91c17dabc1c2322c208e53d88459bb1ea3e234943531ad6c7642dbff3cc445a237508cd94ceb WHIRLPOOL 16038ce86a16b16ce9fb01e3b0ba63b317b77bf640d2401ab2818c6dab514b5d15f3cf8863b926972693cab9d9c6c03387596bc0f84c95e2512ed6f68dd21244 DIST gtest-1.7.0.zip 1164254 SHA256 247ca18dd83f53deb1328be17e4b1be31514cedfc1e3424f672bf11fd7e0d60d SHA512 8859369f2dd32cbc2ac01aba029aa3ff20a321f40658b9643aff442d34c33468221866b801b28c66a28af47dbcd362d26941fc98db92b6efb7e41ea5b7be1a07 WHIRLPOOL 0c31a385159551859c1afe76480b3fb1b560d666db9a0afc5cbda92bcd53bf129f85a8f902c6ded0779c2b4c49aacec59ba5a4d5ce316a07bf08174f4fc64049 diff --git a/sci-libs/arrayfire/arrayfire-3.1.2.ebuild b/sci-libs/arrayfire/arrayfire-3.1.2.ebuild new file mode 100644 index 000000000..a11b2bef9 --- /dev/null +++ b/sci-libs/arrayfire/arrayfire-3.1.2.ebuild @@ -0,0 +1,108 @@ +# 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 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.1.2 + )" +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) + -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" +} |