commit:     615239e113d022a9298ed25b566fc4e74053c9a1
Author:     Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Thu Jan 26 19:38:23 2017 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Thu Jan 26 19:38:23 2017 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=615239e1

sci-libs/clblas-2.10: fix broken symlink presence checks, github science issue 
#726

This fixes broken check on EPREFIX-ed installations and IMHO clarifies that
most people do not need to do the symlink magic if tehy installed eselect-cblas
already.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 sci-libs/clblas/clblas-2.10.ebuild | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/sci-libs/clblas/clblas-2.10.ebuild 
b/sci-libs/clblas/clblas-2.10.ebuild
index d37fe5d..2cbb911 100644
--- a/sci-libs/clblas/clblas-2.10.ebuild
+++ b/sci-libs/clblas/clblas-2.10.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -46,14 +46,15 @@ pkg_pretend() {
                fi
        fi
 
-       if [ ! -d "/usr/local/include/CL" ]; then
+       if [ ! -d "${EPREFIX}/usr/include/CL" ]; then
                eerror "As a temporary workaround for Bug #521734, a symlink 
pointing to"
                eerror "OpenCL headers >= 1.2 is needed. A symlink pointing to 
the CL-1.2"
-               eerror "headers, provided by the eselect-opencl package, can be 
created with"
+               eerror "headers, normally provided by the eselect-opencl 
package, can be"
+               eerror "manually created with"
                eerror ""
-               eerror "  ln -s /usr/lib64/OpenCL/global/include/CL-1.2/ 
/usr/local/include/CL"
+               eerror "  ln -s 
${EPREFIX}/usr/lib64/OpenCL/global/include/CL-1.2/ ${EPREFIX}/usr/include/CL"
                eerror ""
-               die "/usr/local/include/CL not found"
+               die "${EPREFIX}/usr/include/CL not found"
        fi
 }
 

Reply via email to