diff options
author | Marius Brehler <marbre@linux.sungazer.de> | 2015-01-10 18:45:02 +0100 |
---|---|---|
committer | Marius Brehler <marbre@linux.sungazer.de> | 2015-01-10 18:45:02 +0100 |
commit | 84f3d219fb5cb7d15f5c4758f3dbdd41fb85c233 (patch) | |
tree | 8064bec54edb2450a3269b0926c99b283a0baf83 | |
parent | Replace ArrayFire license by BSD (diff) | |
download | sci-84f3d219fb5cb7d15f5c4758f3dbdd41fb85c233.tar.gz sci-84f3d219fb5cb7d15f5c4758f3dbdd41fb85c233.tar.bz2 sci-84f3d219fb5cb7d15f5c4758f3dbdd41fb85c233.zip |
Add pkg_pretend + further fixes
-rw-r--r-- | sci-libs/arrayfire/arrayfire-9999.ebuild | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/sci-libs/arrayfire/arrayfire-9999.ebuild b/sci-libs/arrayfire/arrayfire-9999.ebuild index dbdca1fad..a1af26b91 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 |