From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 35732139BC8 for ; Tue, 15 Sep 2015 13:34:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C32721C009; Tue, 15 Sep 2015 13:34:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1A3AEE0878 for ; Tue, 15 Sep 2015 13:34:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BEE28340884 for ; Tue, 15 Sep 2015 13:34:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4C5DA18B for ; Tue, 15 Sep 2015 13:34:20 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1442255535.5f2f99d07466016ff14ae5a012ff7684f5221f5c.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/arrayfire/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/arrayfire/ChangeLog sci-libs/arrayfire/arrayfire-3.1.1.ebuild X-VCS-Directories: sci-libs/arrayfire/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 5f2f99d07466016ff14ae5a012ff7684f5221f5c X-VCS-Branch: master Date: Tue, 15 Sep 2015 13:34:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e37dbe7e-18ec-437f-ac11-39cc1c2a5478 X-Archives-Hash: 290963bfb3850a4a7fe1a1a9c2a2f8d2 commit: 5f2f99d07466016ff14ae5a012ff7684f5221f5c Author: Marius Brehler linux sungazer de> AuthorDate: Mon Sep 14 18:30:09 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Mon Sep 14 18:32:15 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=5f2f99d0 sci-libs/arrayfire: Version bump Package-Manager: portage-2.2.20.1 sci-libs/arrayfire/ChangeLog | 6 ++ sci-libs/arrayfire/arrayfire-3.1.1.ebuild | 95 +++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/sci-libs/arrayfire/ChangeLog b/sci-libs/arrayfire/ChangeLog index ad8c422..9eecff5 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.1 (14 Sep 2015) + + 14 Sep 2015; Marius Brehler + +arrayfire-3.1.1.ebuild: + sci-libs/arrayfire: Version bump + *arrayfire-3.1.0 (09 Sep 2015) 09 Sep 2015; Marius Brehler diff --git a/sci-libs/arrayfire/arrayfire-3.1.1.ebuild b/sci-libs/arrayfire/arrayfire-3.1.1.ebuild new file mode 100644 index 0000000..360650c --- /dev/null +++ b/sci-libs/arrayfire/arrayfire-3.1.1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils + +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" +SLOT="0" +IUSE="+examples +cpu cuda opencl test" + +RDEPEND=" + >=sys-devel/gcc-4.7:* + media-libs/freeimage + cuda? ( + >=dev-util/nvidia-cuda-toolkit-7.5 + 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 + )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}" +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 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) + -DUSE_SYSTEM_BOOST_COMPUTE=ON + -DUSE_SYSTEM_CLBLAS=ON + -DUSE_SYSTEM_CLFFT=ON + -DBUILD_GRAPHICS=OFF + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + dobin "${BUILD_DIR}/bin2cpp" +}