/[gentoo-x86]/eclass/cuda.eclass
Gentoo

Diff of /eclass/cuda.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cuda.eclass,v 1.4 2014/09/17 10:21:37 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cuda.eclass,v 1.5 2014/11/18 19:44:02 jlec Exp $
4 4
5inherit flag-o-matic toolchain-funcs versionator 5inherit flag-o-matic toolchain-funcs versionator
6 6
7# @ECLASS: cuda.eclass 7# @ECLASS: cuda.eclass
8# @MAINTAINER: 8# @MAINTAINER:
69 die "Could not determine supported gcc versions from cuda-config" 69 die "Could not determine supported gcc versions from cuda-config"
70 fi 70 fi
71 fi 71 fi
72 72
73 for ver in ${args}; do 73 for ver in ${args}; do
74 has_version sys-devel/gcc:${ver} && \ 74 has_version =sys-devel/gcc-${ver}* && \
75 gcc_bindir="$(ls -d ${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/${ver}* | tail -n 1)" 75 gcc_bindir="$(ls -d ${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/${ver}* | tail -n 1)"
76 done 76 done
77 77
78 if [[ -n ${gcc_bindir} ]]; then 78 if [[ -n ${gcc_bindir} ]]; then
79 if [[ -n ${flag} ]]; then 79 if [[ -n ${flag} ]]; then

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20