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/
Date: Sat, 28 Nov 2015 18:21:58
Message-Id: 1448734685.12d52d0efe0821fe74aeac7aeafca37701fbcca4.marbre@gentoo
1 commit: 12d52d0efe0821fe74aeac7aeafca37701fbcca4
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Sat Nov 28 18:13:46 2015 +0000
4 Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
5 CommitDate: Sat Nov 28 18:18:05 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=12d52d0e
7
8 sci-libs/arrayfire: Drop old
9
10 Package-Manager: portage-2.2.20.1
11
12 sci-libs/arrayfire/ChangeLog | 4 +
13 sci-libs/arrayfire/arrayfire-3.1.1-r2.ebuild | 108 ---------------------------
14 sci-libs/arrayfire/arrayfire-3.1.2.ebuild | 108 ---------------------------
15 3 files changed, 4 insertions(+), 216 deletions(-)
16
17 diff --git a/sci-libs/arrayfire/ChangeLog b/sci-libs/arrayfire/ChangeLog
18 index 92c8d5b..428d6f8 100644
19 --- a/sci-libs/arrayfire/ChangeLog
20 +++ b/sci-libs/arrayfire/ChangeLog
21 @@ -1,6 +1,10 @@
22 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
23 # $Id$
24
25 + 28 Nov 2015; Marius Brehler <marbre@××××××××××××××.de>
26 + -arrayfire-3.1.1-r2.ebuild, -arrayfire-3.1.2.ebuild:
27 + sci-libs/arrayfire: Drop old
28 +
29 *arrayfire-3.2.0 (24 Nov 2015)
30
31 24 Nov 2015; Marius Brehler <marbre@××××××××××××××.de>
32
33 diff --git a/sci-libs/arrayfire/arrayfire-3.1.1-r2.ebuild b/sci-libs/arrayfire/arrayfire-3.1.1-r2.ebuild
34 deleted file mode 100644
35 index e1810f1..0000000
36 --- a/sci-libs/arrayfire/arrayfire-3.1.1-r2.ebuild
37 +++ /dev/null
38 @@ -1,108 +0,0 @@
39 -# Copyright 1999-2015 Gentoo Foundation
40 -# Distributed under the terms of the GNU General Public License v2
41 -# $Id$
42 -
43 -EAPI=5
44 -
45 -inherit cmake-utils multilib
46 -
47 -GTEST_PV="1.7.0"
48 -
49 -DESCRIPTION="A general purpose GPU library"
50 -HOMEPAGE="http://www.arrayfire.com/"
51 -SRC_URI="http://arrayfire.com/arrayfire_source/${PN}-full-${PV}.tar.bz2 -> ${P}.tar.bz2
52 -test? ( https://googletest.googlecode.com/files/gtest-${GTEST_PV}.zip )"
53 -KEYWORDS="~amd64"
54 -
55 -LICENSE="BSD
56 - nonfree? ( OpenSIFT )"
57 -SLOT="0"
58 -IUSE="+examples +cpu cuda nonfree opencl test graphics"
59 -
60 -RDEPEND="
61 - >=sys-devel/gcc-4.7:*
62 - media-libs/freeimage
63 - cuda? (
64 - >=dev-util/nvidia-cuda-toolkit-7.5.18-r1
65 - dev-libs/boost
66 - )
67 - cpu? (
68 - virtual/blas
69 - virtual/cblas
70 - virtual/lapacke
71 - sci-libs/fftw:3.0
72 - )
73 - opencl? (
74 - virtual/blas
75 - virtual/cblas
76 - virtual/lapacke
77 - dev-libs/boost
78 - dev-libs/boost-compute
79 - >=sci-libs/clblas-2.4
80 - >=sci-libs/clfft-2.6.1
81 - )
82 - graphics? (
83 - media-libs/glew
84 - >=media-libs/glfw-3.1.1
85 - >=sci-visualization/forge-3.1
86 - )"
87 -DEPEND="${RDEPEND}"
88 -
89 -S="${WORKDIR}/${PN}"
90 -BUILD_DIR="${S}/build"
91 -CMAKE_BUILD_TYPE=Release
92 -
93 -# We need write acccess /dev/nvidiactl, /dev/nvidia0 and /dev/nvidia-uvm and the portage
94 -# user is (usually) not in the video group
95 -RESTRICT="userpriv"
96 -
97 -pkg_pretend() {
98 - if [[ ${MERGE_TYPE} != binary ]]; then
99 - if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]] ) ; then
100 - die "Compilation with gcc older than 4.7 is not supported."
101 - fi
102 - fi
103 -}
104 -
105 -src_unpack() {
106 - default
107 -
108 - if ! use nonfree; then
109 - find "${WORKDIR}" -name "*_nonfree*" -delete || die
110 - fi
111 -
112 - if use test; then
113 - mkdir -p "${BUILD_DIR}"/third_party/src/ || die
114 - mv "${WORKDIR}"/gtest-"${GTEST_PV}" "${BUILD_DIR}"/third_party/src/googletest || die
115 - fi
116 -}
117 -
118 -src_configure() {
119 - if use cuda; then
120 - addwrite /dev/nvidiactl
121 - addwrite /dev/nvidia0
122 - addwrite /dev/nvidia-uvm
123 - fi
124 -
125 - local mycmakeargs=(
126 - $(cmake-utils_use_build cpu CPU)
127 - $(cmake-utils_use_build cuda CUDA)
128 - $(cmake-utils_use_build opencl OPENCL)
129 - $(cmake-utils_use_build examples EXAMPLES)
130 - $(cmake-utils_use_build test TEST)
131 - $(cmake-utils_use_build graphics GRAPHICS)
132 - $(cmake-utils_use_build nonfree NONFREE)
133 - -DUSE_SYSTEM_BOOST_COMPUTE=ON
134 - -DUSE_SYSTEM_CLBLAS=ON
135 - -DUSE_SYSTEM_CLFFT=ON
136 - -DUSE_SYSTEM_FORGE=ON
137 - -DAF_INSTALL_CMAKE_DIR=/usr/${get_libdir}/cmake/ArrayFire
138 - )
139 - cmake-utils_src_configure
140 -}
141 -
142 -src_install() {
143 - cmake-utils_src_install
144 -
145 - dobin "${BUILD_DIR}/bin2cpp"
146 -}
147
148 diff --git a/sci-libs/arrayfire/arrayfire-3.1.2.ebuild b/sci-libs/arrayfire/arrayfire-3.1.2.ebuild
149 deleted file mode 100644
150 index a11b2be..0000000
151 --- a/sci-libs/arrayfire/arrayfire-3.1.2.ebuild
152 +++ /dev/null
153 @@ -1,108 +0,0 @@
154 -# Copyright 1999-2015 Gentoo Foundation
155 -# Distributed under the terms of the GNU General Public License v2
156 -# $Id$
157 -
158 -EAPI=5
159 -
160 -inherit cmake-utils multilib
161 -
162 -GTEST_PV="1.7.0"
163 -
164 -DESCRIPTION="A general purpose GPU library"
165 -HOMEPAGE="http://www.arrayfire.com/"
166 -SRC_URI="http://arrayfire.com/arrayfire_source/${PN}-full-${PV}.tar.bz2 -> ${P}.tar.bz2
167 -test? ( https://googletest.googlecode.com/files/gtest-${GTEST_PV}.zip )"
168 -KEYWORDS="~amd64"
169 -
170 -LICENSE="BSD
171 - nonfree? ( OpenSIFT )"
172 -SLOT="0"
173 -IUSE="+examples +cpu cuda nonfree opencl test graphics"
174 -
175 -RDEPEND="
176 - >=sys-devel/gcc-4.7:*
177 - media-libs/freeimage
178 - cuda? (
179 - >=dev-util/nvidia-cuda-toolkit-7.5.18-r1
180 - dev-libs/boost
181 - )
182 - cpu? (
183 - virtual/blas
184 - virtual/cblas
185 - virtual/lapacke
186 - sci-libs/fftw:3.0
187 - )
188 - opencl? (
189 - virtual/blas
190 - virtual/cblas
191 - virtual/lapacke
192 - dev-libs/boost
193 - dev-libs/boost-compute
194 - >=sci-libs/clblas-2.4
195 - >=sci-libs/clfft-2.6.1
196 - )
197 - graphics? (
198 - media-libs/glew
199 - >=media-libs/glfw-3.1.1
200 - =sci-visualization/forge-3.1.2
201 - )"
202 -DEPEND="${RDEPEND}"
203 -
204 -S="${WORKDIR}/${PN}-full-${PV}"
205 -BUILD_DIR="${S}/build"
206 -CMAKE_BUILD_TYPE=Release
207 -
208 -# We need write acccess /dev/nvidiactl, /dev/nvidia0 and /dev/nvidia-uvm and the portage
209 -# user is (usually) not in the video group
210 -RESTRICT="userpriv"
211 -
212 -pkg_pretend() {
213 - if [[ ${MERGE_TYPE} != binary ]]; then
214 - if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]] ) ; then
215 - die "Compilation with gcc older than 4.7 is not supported."
216 - fi
217 - fi
218 -}
219 -
220 -src_unpack() {
221 - default
222 -
223 - if ! use nonfree; then
224 - find "${WORKDIR}" -name "*_nonfree*" -delete || die
225 - fi
226 -
227 - if use test; then
228 - mkdir -p "${BUILD_DIR}"/third_party/src/ || die
229 - mv "${WORKDIR}"/gtest-"${GTEST_PV}" "${BUILD_DIR}"/third_party/src/googletest || die
230 - fi
231 -}
232 -
233 -src_configure() {
234 - if use cuda; then
235 - addwrite /dev/nvidiactl
236 - addwrite /dev/nvidia0
237 - addwrite /dev/nvidia-uvm
238 - fi
239 -
240 - local mycmakeargs=(
241 - $(cmake-utils_use_build cpu CPU)
242 - $(cmake-utils_use_build cuda CUDA)
243 - $(cmake-utils_use_build opencl OPENCL)
244 - $(cmake-utils_use_build examples EXAMPLES)
245 - $(cmake-utils_use_build test TEST)
246 - $(cmake-utils_use_build graphics GRAPHICS)
247 - $(cmake-utils_use_build nonfree NONFREE)
248 - -DUSE_SYSTEM_BOOST_COMPUTE=ON
249 - -DUSE_SYSTEM_CLBLAS=ON
250 - -DUSE_SYSTEM_CLFFT=ON
251 - -DUSE_SYSTEM_FORGE=ON
252 - -DAF_INSTALL_CMAKE_DIR=/usr/${get_libdir}/cmake/ArrayFire
253 - )
254 - cmake-utils_src_configure
255 -}
256 -
257 -src_install() {
258 - cmake-utils_src_install
259 -
260 - dobin "${BUILD_DIR}/bin2cpp"
261 -}