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 7098F138A1A for ; Sat, 10 Jan 2015 18:03:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D123E0841; Sat, 10 Jan 2015 18:03:29 +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 95C3EE083E for ; Sat, 10 Jan 2015 18:03:28 +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 B45E23406F0 for ; Sat, 10 Jan 2015 18:03:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E8F58F4B4 for ; Sat, 10 Jan 2015 18:03:23 +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: <1420911902.84f3d219fb5cb7d15f5c4758f3dbdd41fb85c233.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/arrayfire/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/arrayfire/arrayfire-9999.ebuild X-VCS-Directories: sci-libs/arrayfire/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 84f3d219fb5cb7d15f5c4758f3dbdd41fb85c233 X-VCS-Branch: master Date: Sat, 10 Jan 2015 18:03:23 +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: 4ee3717a-73a4-4ed4-9392-857b6b980e48 X-Archives-Hash: 78272eb660cffbd747b6ff298e04f68d commit: 84f3d219fb5cb7d15f5c4758f3dbdd41fb85c233 Author: Marius Brehler linux sungazer de> AuthorDate: Sat Jan 10 17:45:02 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Sat Jan 10 17:45:02 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=84f3d219 Add pkg_pretend + further fixes --- sci-libs/arrayfire/arrayfire-9999.ebuild | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/sci-libs/arrayfire/arrayfire-9999.ebuild b/sci-libs/arrayfire/arrayfire-9999.ebuild index dbdca1f..a1af26b 100644 --- a/sci-libs/arrayfire/arrayfire-9999.ebuild +++ b/sci-libs/arrayfire/arrayfire-9999.ebuild @@ -14,7 +14,7 @@ KEYWORDS="~amd64" LICENSE="BSD" SLOT="0" -IUSE="+examples +cpu cuda independent test" +IUSE="+examples +cpu cuda test" RDEPEND=" >=sys-devel/gcc-4.7.3-r1 @@ -31,11 +31,23 @@ CMAKE_BUILD_TYPE=Release PATCHES=( "${FILESDIR}"/FindCBLAS.patch "${FILESDIR}"/CMakeLists_examples.patch - "${FILESDIR}"/build_gtest.patch + "${FILESDIR}"/build_gtest.patch ) +# 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() { - git-r3_src_unpack + git-r3_src_unpack if use test; then mkdir -p "${BUILD_DIR}"/third_party/src/ || die