Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/clblas/, sci-libs/clblas/files/
Date: Sat, 28 Nov 2015 18:08:12
Message-Id: 1448732998.d0bb74dd3ecea6635b4b088d00fa1c3c7cbb8a90.jlec@gentoo
1 commit: d0bb74dd3ecea6635b4b088d00fa1c3c7cbb8a90
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 28 17:49:58 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 28 17:49:58 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d0bb74dd
7
8 sci-libs/clblas: QA: Style fixes and add missing PYTHON_REQUIRED_USE
9
10 Package-Manager: portage-2.2.25
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 sci-libs/clblas/clblas-2.4-r1.ebuild | 63 ----------------------
14 sci-libs/clblas/clblas-2.6.ebuild | 10 ++--
15 sci-libs/clblas/clblas-9999.ebuild | 11 ++--
16 ...l-cmake-configuration-to-lib-cmake-clBLAS.patch | 25 ---------
17 .../files/clblas-2.4-samples_CMakeLists.patch | 20 -------
18 .../files/clblas-2.4-scripts_perf_CMakeLists.patch | 11 ----
19 6 files changed, 13 insertions(+), 127 deletions(-)
20
21 diff --git a/sci-libs/clblas/clblas-2.4-r1.ebuild b/sci-libs/clblas/clblas-2.4-r1.ebuild
22 deleted file mode 100644
23 index 140cd9b..0000000
24 --- a/sci-libs/clblas/clblas-2.4-r1.ebuild
25 +++ /dev/null
26 @@ -1,63 +0,0 @@
27 -# Copyright 1999-2015 Gentoo Foundation
28 -# Distributed under the terms of the GNU General Public License v2
29 -# $Id$
30 -
31 -EAPI=5
32 -
33 -PYTHON_COMPAT=( python2_7 )
34 -
35 -inherit cmake-utils python-single-r1
36 -
37 -MY_PN="clBLAS"
38 -
39 -DESCRIPTION="A software library containing BLAS routines for OpenCL"
40 -HOMEPAGE="https://github.com/clMathLibraries/clBLAS"
41 -SRC_URI="https://github.com/clMathLibraries/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 -KEYWORDS="~amd64"
43 -S="${WORKDIR}/${MY_PN}-${PV}/src"
44 -
45 -LICENSE="Apache-2.0"
46 -SLOT="0"
47 -IUSE="+client examples +ktest performance test"
48 -
49 -RDEPEND="
50 - >=sys-devel/gcc-4.6:*
51 - virtual/opencl
52 - || ( >=dev-util/amdapp-2.9 dev-util/intel-ocl-sdk )
53 - dev-libs/boost
54 - performance? ( ${PYTHON_DEPS} )
55 - "
56 -DEPEND="${RDEPEND}"
57 -# test? (
58 -# >=dev-cpp/gtest-1.6.0
59 -# >=sci-libs/acml-6.1.0.3
60 -# )"
61 -
62 -# The tests only get compiled to an executable named Test, which is not recogniozed by cmake.
63 -# Therefore src_test() won't execute any test.
64 -RESTRICT="test"
65 -
66 -PATCHES=(
67 - "${FILESDIR}/${P}"-samples_CMakeLists.patch
68 - "${FILESDIR}/${P}"-scripts_perf_CMakeLists.patch
69 - "${FILESDIR}/${P}"-Install-cmake-configuration-to-lib-cmake-clBLAS.patch
70 -)
71 -
72 -pkg_pretend() {
73 - if [[ ${MERGE_TYPE} != binary ]]; then
74 - if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) ; then
75 - die "Compilation with gcc older than 4.6 is not supported."
76 - fi
77 - fi
78 -}
79 -
80 -src_configure() {
81 - local mycmakeargs=(
82 - $(cmake-utils_use_build client CLIENT)
83 - $(cmake-utils_use_build examples SAMPLE)
84 - $(cmake-utils_use_build ktest KTEST)
85 - $(cmake-utils_use_build performance PERFORMANCE)
86 - $(cmake-utils_use_build test TEST)
87 - )
88 - cmake-utils_src_configure
89 -}
90
91 diff --git a/sci-libs/clblas/clblas-2.6.ebuild b/sci-libs/clblas/clblas-2.6.ebuild
92 index 2a7b07b..d060857 100644
93 --- a/sci-libs/clblas/clblas-2.6.ebuild
94 +++ b/sci-libs/clblas/clblas-2.6.ebuild
95 @@ -13,18 +13,18 @@ MY_PN="clBLAS"
96 DESCRIPTION="A software library containing BLAS routines for OpenCL"
97 HOMEPAGE="https://github.com/clMathLibraries/clBLAS"
98 SRC_URI="https://github.com/clMathLibraries/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
99 -KEYWORDS="~amd64"
100 -S="${WORKDIR}/${MY_PN}-${PV}/src"
101
102 LICENSE="Apache-2.0"
103 SLOT="0"
104 +KEYWORDS="~amd64"
105 IUSE="+client examples +ktest performance test"
106
107 +REQUIRED_USE="performance? ( ${PYTHON_REQUIRED_USE} )"
108 +
109 RDEPEND="
110 - >=sys-devel/gcc-4.6:*
111 + dev-libs/boost
112 virtual/opencl
113 || ( >=dev-util/amdapp-2.9 dev-util/intel-ocl-sdk )
114 - dev-libs/boost
115 performance? ( ${PYTHON_DEPS} )
116 "
117 DEPEND="${RDEPEND}"
118 @@ -37,6 +37,8 @@ DEPEND="${RDEPEND}"
119 # Therefore src_test() won't execute any test.
120 RESTRICT="test"
121
122 +S="${WORKDIR}/${MY_PN}-${PV}/src"
123 +
124 pkg_pretend() {
125 if [[ ${MERGE_TYPE} != binary ]]; then
126 if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) ; then
127
128 diff --git a/sci-libs/clblas/clblas-9999.ebuild b/sci-libs/clblas/clblas-9999.ebuild
129 index 8df3ef8..4a25302 100644
130 --- a/sci-libs/clblas/clblas-9999.ebuild
131 +++ b/sci-libs/clblas/clblas-9999.ebuild
132 @@ -12,18 +12,19 @@ MY_PN="clBLAS"
133
134 DESCRIPTION="A software library containing BLAS routines for OpenCL"
135 HOMEPAGE="https://github.com/clMathLibraries/clBLAS"
136 -EGIT_REPO_URI="https://github.com/clMathLibraries/${MY_PN}.git git://github.com/clMathLibraries/${MY_PN}.git"
137 -S="${WORKDIR}/${P}/src"
138 +EGIT_REPO_URI="https://github.com/clMathLibraries/${MY_PN}.git"
139
140 LICENSE="Apache-2.0"
141 SLOT="0"
142 +KEYWORDS=""
143 IUSE="+client examples +ktest performance test"
144
145 +REQUIRED_USE="performance? ( ${PYTHON_REQUIRED_USE} )"
146 +
147 RDEPEND="
148 - >=sys-devel/gcc-4.6:*
149 + dev-libs/boost
150 virtual/opencl
151 || ( >=dev-util/amdapp-2.9 dev-util/intel-ocl-sdk )
152 - dev-libs/boost
153 performance? ( ${PYTHON_DEPS} )
154 "
155 DEPEND="${RDEPEND}"
156 @@ -36,6 +37,8 @@ DEPEND="${RDEPEND}"
157 # Therefore src_test() won't execute any test.
158 RESTRICT="test"
159
160 +S="${WORKDIR}/${P}/src"
161 +
162 pkg_pretend() {
163 if [[ ${MERGE_TYPE} != binary ]]; then
164 if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) ; then
165
166 diff --git a/sci-libs/clblas/files/clblas-2.4-Install-cmake-configuration-to-lib-cmake-clBLAS.patch b/sci-libs/clblas/files/clblas-2.4-Install-cmake-configuration-to-lib-cmake-clBLAS.patch
167 deleted file mode 100644
168 index 32cb7b5..0000000
169 --- a/sci-libs/clblas/files/clblas-2.4-Install-cmake-configuration-to-lib-cmake-clBLAS.patch
170 +++ /dev/null
171 @@ -1,25 +0,0 @@
172 -From b83750ab917b12500f9755dc4c81f99eb55bb67e Mon Sep 17 00:00:00 2001
173 -From: Marius Brehler <marius.brehler@×××××××××××.de>
174 -Date: Sat, 6 Jun 2015 10:35:32 +0200
175 -Subject: [PATCH] Install cmake configuration to lib/cmake/clBLAS
176 -
177 ----
178 - src/CMakeLists.txt | 2 +-
179 - 1 file changed, 1 insertion(+), 1 deletion(-)
180 -
181 -diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
182 -index a23cd37..5c378dc 100644
183 ---- a/src/CMakeLists.txt
184 -+++ b/src/CMakeLists.txt
185 -@@ -300,7 +300,7 @@ endif( )
186 - if(WIN32)
187 - set(destdir CMake)
188 - else()
189 -- set(destdir share/clBLAS)
190 -+ set(destdir lib${SUFFIX_LIB}/cmake/clBLAS)
191 - endif()
192 - string(REGEX REPLACE "[^/]+" ".." reldir "${destdir}")
193 - configure_file(
194 ---
195 -2.3.6
196 -
197
198 diff --git a/sci-libs/clblas/files/clblas-2.4-samples_CMakeLists.patch b/sci-libs/clblas/files/clblas-2.4-samples_CMakeLists.patch
199 deleted file mode 100644
200 index 8b5a762..0000000
201 --- a/sci-libs/clblas/files/clblas-2.4-samples_CMakeLists.patch
202 +++ /dev/null
203 @@ -1,20 +0,0 @@
204 -Install samples to /usr/share/clBLAS/samples.
205 -
206 -Patch by Marius Brehler.
207 ---- samples/CMakeLists.txt
208 -+++ samples/CMakeLists.txt
209 -@@ -274,7 +274,7 @@ install( TARGETS example_sgemm example_s
210 - example_snrm2 example_sasum example_isamax
211 -
212 - version
213 -- RUNTIME DESTINATION bin${SUFFIX_BIN}
214 -+ RUNTIME DESTINATION share/clBLAS/samples
215 - LIBRARY DESTINATION lib${SUFFIX_LIB}
216 - ARCHIVE DESTINATION lib${SUFFIX_LIB}/import
217 - )
218 -@@ -333,4 +333,4 @@ install(FILES
219 - ${PROJECT_BINARY_DIR}/samples/CMakeLists.txt
220 -
221 - DESTINATION
222 -- samples )
223 -+ share/clBLAS/samples/src )
224
225 diff --git a/sci-libs/clblas/files/clblas-2.4-scripts_perf_CMakeLists.patch b/sci-libs/clblas/files/clblas-2.4-scripts_perf_CMakeLists.patch
226 deleted file mode 100644
227 index 7b9b58d..0000000
228 --- a/sci-libs/clblas/files/clblas-2.4-scripts_perf_CMakeLists.patch
229 +++ /dev/null
230 @@ -1,11 +0,0 @@
231 -Install Python scripts to /usr/share/clBLAS and not to /usr/bin.
232 -
233 -Patch by Marius Brehler.
234 ---- scripts/perf/CMakeLists.txt
235 -+++ scripts/perf/CMakeLists.txt
236 -@@ -21,4 +21,4 @@ set(GRAPHING_SCRIPTS measurePerformance
237 - performanceUtility.py
238 - )
239 -
240 --install( FILES ${GRAPHING_SCRIPTS} DESTINATION bin${SUFFIX_BIN} )
241 -+install( FILES ${GRAPHING_SCRIPTS} DESTINATION share/clBLAS )