Gentoo Archives: gentoo-commits

From: Marius Brehler <marbre@××××××××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/arrayfire/files/, sci-libs/arrayfire/
Date: Tue, 03 Jan 2017 09:16:54
Message-Id: 1483346575.2b45c47e0027abe02020ea299c6f12a35481a86e.marbre@gentoo
1 commit: 2b45c47e0027abe02020ea299c6f12a35481a86e
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Mon Jan 2 08:42:55 2017 +0000
4 Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
5 CommitDate: Mon Jan 2 08:42:55 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=2b45c47e
7
8 sci-libs/arrayfire: Drop old
9
10 Package-Manager: portage-2.3.0
11
12 sci-libs/arrayfire/arrayfire-3.4.1-r1.ebuild | 113 ---------------------
13 .../files/arrayfire-3.4.1-FindCBLAS.patch | 37 -------
14 2 files changed, 150 deletions(-)
15
16 diff --git a/sci-libs/arrayfire/arrayfire-3.4.1-r1.ebuild b/sci-libs/arrayfire/arrayfire-3.4.1-r1.ebuild
17 deleted file mode 100644
18 index 563042a..0000000
19 --- a/sci-libs/arrayfire/arrayfire-3.4.1-r1.ebuild
20 +++ /dev/null
21 @@ -1,113 +0,0 @@
22 -# Copyright 1999-2016 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -# $Id$
25 -
26 -EAPI=6
27 -
28 -inherit cmake-utils multilib
29 -
30 -GTEST_PV="1.7.0"
31 -
32 -DESCRIPTION="A general purpose GPU library"
33 -HOMEPAGE="http://www.arrayfire.com/"
34 -SRC_URI="http://arrayfire.com/arrayfire_source/${PN}-full-${PV}.tar.bz2 -> ${P}.tar.bz2
35 -test? ( https://github.com/google/googletest/archive/release-${GTEST_PV}.zip -> gtest-${GTEST_PV}.zip )"
36 -KEYWORDS="~amd64"
37 -
38 -LICENSE="BSD
39 - nonfree? ( OpenSIFT )"
40 -SLOT="0"
41 -IUSE="+examples +cpu cuda nonfree opencl test unified graphics"
42 -
43 -RDEPEND="
44 - >=sys-devel/gcc-4.7:*
45 - media-libs/freeimage
46 - cuda? (
47 - >=dev-util/nvidia-cuda-toolkit-8.0.44
48 - dev-libs/boost
49 - )
50 - cpu? (
51 - virtual/blas
52 - virtual/cblas
53 - virtual/lapacke
54 - sci-libs/fftw:3.0
55 - )
56 - opencl? (
57 - virtual/blas
58 - virtual/cblas
59 - virtual/lapacke
60 - >=sci-libs/clblas-2.4
61 - >=sci-libs/clfft-2.6.1
62 - >=dev-libs/boost-1.61.0
63 - dev-libs/opencl-clhpp
64 - )
65 - graphics? (
66 - media-libs/glbinding
67 - >=media-libs/glfw-3.1.1
68 - =sci-visualization/forge-0.9.0
69 - )"
70 -DEPEND="${RDEPEND}"
71 -
72 -S="${WORKDIR}/${PN}-full-${PV}"
73 -BUILD_DIR="${S}/build"
74 -CMAKE_BUILD_TYPE=Release
75 -
76 -PATCHES=("${FILESDIR}/${P}-FindCBLAS.patch")
77 -
78 -# We need write acccess /dev/nvidiactl, /dev/nvidia0 and /dev/nvidia-uvm and the portage
79 -# user is (usually) not in the video group
80 -RESTRICT="userpriv"
81 -
82 -pkg_pretend() {
83 - if [[ ${MERGE_TYPE} != binary ]]; then
84 - if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]] ) ; then
85 - die "Compilation with gcc older than 4.7 is not supported."
86 - fi
87 - fi
88 -}
89 -
90 -src_unpack() {
91 - default
92 -
93 - if ! use nonfree; then
94 - find "${WORKDIR}" -name "*_nonfree*" -delete || die
95 - fi
96 -
97 - if use test; then
98 - mkdir -p "${BUILD_DIR}"/third_party/src/ || die
99 - mv "${WORKDIR}"/gtest-"${GTEST_PV}" "${BUILD_DIR}"/third_party/src/googletest || die
100 - fi
101 -}
102 -
103 -src_configure() {
104 - if use cuda; then
105 - addwrite /dev/nvidiactl
106 - addwrite /dev/nvidia0
107 - addwrite /dev/nvidia-uvm
108 - fi
109 -
110 - local mycmakeargs=(
111 - -DBUILD_CPU="$(usex cpu)"
112 - -DBUILD_CUDA="$(usex cuda)"
113 - -DBUILD_OPENCL="$(usex opencl)"
114 - -DBUILD_EXAMPLES="$(usex examples)"
115 - -DBUILD_TEST="$(usex test)"
116 - -DBUILD_GRAPHICS="$(usex graphics)"
117 - -DBUILD_NONFREE="$(usex nonfree)"
118 - -DBUILD_UNIFIED="$(usex unified)"
119 - -DUSE_SYSTEM_BOOST_COMPUTE=ON
120 - -DUSE_SYSTEM_CL2HPP=ON
121 - -DUSE_SYSTEM_CLBLAS=ON
122 - -DUSE_SYSTEM_CLFFT=ON
123 - -DUSE_SYSTEM_FORGE=ON
124 - -DUSE_SYSTEM_GLBINDING=ON
125 - -DAF_INSTALL_CMAKE_DIR=/usr/$(get_libdir)/cmake/ArrayFire
126 - )
127 - cmake-utils_src_configure
128 -}
129 -
130 -src_install() {
131 - cmake-utils_src_install
132 -
133 - dobin "${BUILD_DIR}/bin2cpp"
134 -}
135
136 diff --git a/sci-libs/arrayfire/files/arrayfire-3.4.1-FindCBLAS.patch b/sci-libs/arrayfire/files/arrayfire-3.4.1-FindCBLAS.patch
137 deleted file mode 100644
138 index b75569f..0000000
139 --- a/sci-libs/arrayfire/files/arrayfire-3.4.1-FindCBLAS.patch
140 +++ /dev/null
141 @@ -1,37 +0,0 @@
142 -https://github.com/arrayfire/arrayfire/pull/1657
143 -
144 -
145 -From 23228318b153bdc5bb30e084f9310b09b1644bd0 Mon Sep 17 00:00:00 2001
146 -From: Marius Brehler <marius.brehler@×××××××××××.de>
147 -Date: Wed, 30 Nov 2016 14:07:21 +0100
148 -Subject: [PATCH] FindCBLAS.cmake: Fix setting CBLAS_INCLUDE_DIR if PkgConfig
149 - is used
150 -
151 ----
152 - CMakeModules/FindCBLAS.cmake | 10 ++++++++--
153 - 1 file changed, 8 insertions(+), 2 deletions(-)
154 -
155 -diff --git a/CMakeModules/FindCBLAS.cmake b/CMakeModules/FindCBLAS.cmake
156 -index fbb646b..058b7d7 100644
157 ---- a/CMakeModules/FindCBLAS.cmake
158 -+++ b/CMakeModules/FindCBLAS.cmake
159 -@@ -39,8 +39,14 @@ IF(PC_CBLAS_FOUND)
160 - LIST(APPEND CBLAS_LIBRARIES ${${PC_LIB}_LIBRARY})
161 - ENDFOREACH(PC_LIB)
162 -
163 -- FIND_PACKAGE_HANDLE_STANDARD_ARGS(CBLAS DEFAULT_MSG CBLAS_LIBRARIES)
164 -- MARK_AS_ADVANCED(CBLAS_LIBRARIES)
165 -+ FIND_PATH(CBLAS_INCLUDE_DIRS NAMES cblas.h HINTS ${PC_CBLAS_INCLUDE_DIRS} )
166 -+ IF (NOT CBLAS_INCLUDE_DIRS)
167 -+ message(FATAL_ERROR "Something is wrong in your pkg-config file - cblas.h not found in ${PC_CBLAS_INCLUDE_DIRS}")
168 -+ ENDIF (NOT CBLAS_INCLUDE_DIRS)
169 -+ SET(CBLAS_INCLUDE_DIR ${CBLAS_INCLUDE_DIRS})
170 -+
171 -+ FIND_PACKAGE_HANDLE_STANDARD_ARGS(CBLAS DEFAULT_MSG CBLAS_LIBRARIES CBLAS_INCLUDE_DIR)
172 -+ MARK_AS_ADVANCED(CBLAS_LIBRARIES CBLAS_INCLUDE_DIR)
173 -
174 - ELSE(PC_CBLAS_FOUND)
175 -
176 ---
177 -2.7.3
178 -