1 |
commit: 25909571b9c4b4aea360274ffc2d5709a2080513 |
2 |
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
3 |
AuthorDate: Mon Nov 30 08:13:22 2015 +0000 |
4 |
Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
5 |
CommitDate: Mon Nov 30 08:13:22 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=25909571 |
7 |
|
8 |
sci-libs/clblas: Version bump |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
sci-libs/clblas/ChangeLog | 5 +++ |
13 |
sci-libs/clblas/clblas-2.8.ebuild | 70 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 75 insertions(+) |
15 |
|
16 |
diff --git a/sci-libs/clblas/ChangeLog b/sci-libs/clblas/ChangeLog |
17 |
index 217f674..81be8c6 100644 |
18 |
--- a/sci-libs/clblas/ChangeLog |
19 |
+++ b/sci-libs/clblas/ChangeLog |
20 |
@@ -2,6 +2,11 @@ |
21 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
22 |
# $Id$ |
23 |
|
24 |
+*clblas-2.8 (30 Nov 2015) |
25 |
+ |
26 |
+ 30 Nov 2015; Marius Brehler <marbre@××××××××××××××.de> +clblas-2.8.ebuild: |
27 |
+ sci-libs/clblas: Version bump |
28 |
+ |
29 |
*clblas-2.6-r1 (30 Nov 2015) |
30 |
|
31 |
30 Nov 2015; Marius Brehler <marbre@××××××××××××××.de> +clblas-2.6-r1.ebuild, |
32 |
|
33 |
diff --git a/sci-libs/clblas/clblas-2.8.ebuild b/sci-libs/clblas/clblas-2.8.ebuild |
34 |
new file mode 100644 |
35 |
index 0000000..15ca8d5 |
36 |
--- /dev/null |
37 |
+++ b/sci-libs/clblas/clblas-2.8.ebuild |
38 |
@@ -0,0 +1,70 @@ |
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 |
+PYTHON_COMPAT=( python2_7 ) |
46 |
+ |
47 |
+inherit cmake-utils python-single-r1 |
48 |
+ |
49 |
+MY_PN="clBLAS" |
50 |
+ |
51 |
+DESCRIPTION="A software library containing BLAS routines for OpenCL" |
52 |
+HOMEPAGE="https://github.com/clMathLibraries/clBLAS" |
53 |
+SRC_URI="https://github.com/clMathLibraries/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
54 |
+ |
55 |
+LICENSE="Apache-2.0" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64" |
58 |
+IUSE="+client examples +ktest performance test" |
59 |
+ |
60 |
+REQUIRED_USE="performance? ( ${PYTHON_REQUIRED_USE} )" |
61 |
+ |
62 |
+RDEPEND=" |
63 |
+ dev-libs/boost |
64 |
+ virtual/opencl |
65 |
+ || ( >=dev-util/amdapp-2.9 dev-util/intel-ocl-sdk ) |
66 |
+ performance? ( ${PYTHON_DEPS} ) |
67 |
+ " |
68 |
+DEPEND="${RDEPEND}" |
69 |
+# test? ( |
70 |
+# >=dev-cpp/gtest-1.6.0 |
71 |
+# >=sci-libs/acml-6.1.0.3 |
72 |
+# )" |
73 |
+ |
74 |
+# The tests only get compiled to an executable named Test, which is not recogniozed by cmake. |
75 |
+# Therefore src_test() won't execute any test. |
76 |
+RESTRICT="test" |
77 |
+ |
78 |
+S="${WORKDIR}/${MY_PN}-${PV}/src" |
79 |
+ |
80 |
+pkg_pretend() { |
81 |
+ if [[ ${MERGE_TYPE} != binary ]]; then |
82 |
+ if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) ; then |
83 |
+ die "Compilation with gcc older than 4.6 is not supported." |
84 |
+ fi |
85 |
+ fi |
86 |
+ |
87 |
+ if [ ! -d "/usr/local/include/CL" ]; then |
88 |
+ eerror "As a temporary workaround for Bug #521734, a symlink pointing to" |
89 |
+ eerror "OpenCL headers >= 1.2 is needed. A symlink pointing to the CL-1.2" |
90 |
+ eerror "headers, provided by the eselect-opencl package, can be created with" |
91 |
+ eerror "" |
92 |
+ eerror " ln -s /usr/lib64/OpenCL/global/include/CL-1.2/ /usr/local/include/CL" |
93 |
+ eerror "" |
94 |
+ die "/usr/local/include/CL not found" |
95 |
+ fi |
96 |
+} |
97 |
+ |
98 |
+src_configure() { |
99 |
+ local mycmakeargs=( |
100 |
+ $(cmake-utils_use_build client CLIENT) |
101 |
+ $(cmake-utils_use_build examples SAMPLE) |
102 |
+ $(cmake-utils_use_build ktest KTEST) |
103 |
+ $(cmake-utils_use_build performance PERFORMANCE) |
104 |
+ $(cmake-utils_use_build test TEST) |
105 |
+ -DOPENCL_ROOT="/usr/local/include" |
106 |
+ ) |
107 |
+ cmake-utils_src_configure |
108 |
+} |