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/clblas/
Date: Mon, 30 Nov 2015 08:13:45
Message-Id: 1448871164.e81e09a9ced382302db31f37ac55948804dab28a.marbre@gentoo
1 commit: e81e09a9ced382302db31f37ac55948804dab28a
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Mon Nov 30 08:12:44 2015 +0000
4 Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
5 CommitDate: Mon Nov 30 08:12:44 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e81e09a9
7
8 sci-libs/clblas: Build against CL-1.2, closes issue #543
9
10 Package-Manager: portage-2.2.20.1
11
12 sci-libs/clblas/ChangeLog | 6 ++++++
13 sci-libs/clblas/{clblas-2.6.ebuild => clblas-2.6-r1.ebuild} | 11 +++++++++++
14 sci-libs/clblas/clblas-9999.ebuild | 11 +++++++++++
15 3 files changed, 28 insertions(+)
16
17 diff --git a/sci-libs/clblas/ChangeLog b/sci-libs/clblas/ChangeLog
18 index e74dc52..217f674 100644
19 --- a/sci-libs/clblas/ChangeLog
20 +++ b/sci-libs/clblas/ChangeLog
21 @@ -2,6 +2,12 @@
22 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
23 # $Id$
24
25 +*clblas-2.6-r1 (30 Nov 2015)
26 +
27 + 30 Nov 2015; Marius Brehler <marbre@××××××××××××××.de> +clblas-2.6-r1.ebuild,
28 + -clblas-2.6.ebuild, clblas-9999.ebuild:
29 + sci-libs/clblas: Build against CL-1.2, closes issue #543
30 +
31 *clblas-2.6 (12 Sep 2015)
32
33 12 Sep 2015; Marius Brehler <marbre@××××××××××××××.de> +clblas-2.6.ebuild:
34
35 diff --git a/sci-libs/clblas/clblas-2.6.ebuild b/sci-libs/clblas/clblas-2.6-r1.ebuild
36 similarity index 76%
37 rename from sci-libs/clblas/clblas-2.6.ebuild
38 rename to sci-libs/clblas/clblas-2.6-r1.ebuild
39 index d060857..15ca8d5 100644
40 --- a/sci-libs/clblas/clblas-2.6.ebuild
41 +++ b/sci-libs/clblas/clblas-2.6-r1.ebuild
42 @@ -45,6 +45,16 @@ pkg_pretend() {
43 die "Compilation with gcc older than 4.6 is not supported."
44 fi
45 fi
46 +
47 + if [ ! -d "/usr/local/include/CL" ]; then
48 + eerror "As a temporary workaround for Bug #521734, a symlink pointing to"
49 + eerror "OpenCL headers >= 1.2 is needed. A symlink pointing to the CL-1.2"
50 + eerror "headers, provided by the eselect-opencl package, can be created with"
51 + eerror ""
52 + eerror " ln -s /usr/lib64/OpenCL/global/include/CL-1.2/ /usr/local/include/CL"
53 + eerror ""
54 + die "/usr/local/include/CL not found"
55 + fi
56 }
57
58 src_configure() {
59 @@ -54,6 +64,7 @@ src_configure() {
60 $(cmake-utils_use_build ktest KTEST)
61 $(cmake-utils_use_build performance PERFORMANCE)
62 $(cmake-utils_use_build test TEST)
63 + -DOPENCL_ROOT="/usr/local/include"
64 )
65 cmake-utils_src_configure
66 }
67
68 diff --git a/sci-libs/clblas/clblas-9999.ebuild b/sci-libs/clblas/clblas-9999.ebuild
69 index 4a25302..84404a9 100644
70 --- a/sci-libs/clblas/clblas-9999.ebuild
71 +++ b/sci-libs/clblas/clblas-9999.ebuild
72 @@ -45,6 +45,16 @@ pkg_pretend() {
73 die "Compilation with gcc older than 4.6 is not supported."
74 fi
75 fi
76 +
77 + if [ ! -d "/usr/local/include/CL" ]; then
78 + eerror "As a temporary workaround for Bug #521734, a symlink pointing to"
79 + eerror "OpenCL headers >= 1.2 is needed. A symlink pointing to the CL-1.2"
80 + eerror "headers, provided by the eselect-opencl package, can be created with"
81 + eerror ""
82 + eerror " ln -s /usr/lib64/OpenCL/global/include/CL-1.2/ /usr/local/include/CL"
83 + eerror ""
84 + die "/usr/local/include/CL not found"
85 + fi
86 }
87
88 src_configure() {
89 @@ -54,6 +64,7 @@ src_configure() {
90 $(cmake-utils_use_build ktest KTEST)
91 $(cmake-utils_use_build performance PERFORMANCE)
92 $(cmake-utils_use_build test TEST)
93 + -DOPENCL_ROOT="/usr/local/include"
94 )
95 cmake-utils_src_configure
96 }