Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 406083
Collapse All | Expand All

(-)a/sci-chemistry/vmd/vmd-1.9.1.ebuild (-2 / +2 lines)
Lines 120-130 src_prepare() { Link Here
120
#		-i configure || die "failed setting up python"
120
#		-i configure || die "failed setting up python"
121
121
122
	if use cuda; then
122
	if use cuda; then
123
		local gcc44_bindir="$(ls -d ${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/4.4*)"
123
		local gcc_bindir="${EPREFIX}$(gcc-config -B)"
124
124
125
		sed \
125
		sed \
126
			-e "s:gentoo-cuda-lib:${EPREFIX}/opt/cuda/$(get_libdir):g" \
126
			-e "s:gentoo-cuda-lib:${EPREFIX}/opt/cuda/$(get_libdir):g" \
127
			-e "/^\$arch_nvccflags/s:=:= \"--compiler-bindir=${gcc44_bindir} \" . \n:1" \
127
			-e "/^\$arch_nvccflags/s:=:= \"--compiler-bindir=${gcc_bindir} \" . \n:1" \
128
			-i configure || die
128
			-i configure || die
129
	fi
129
	fi
130
130

Return to bug 406083