--- hdaps-gl-0.0.5.ebuild.old 2011-10-03 11:40:04.796583586 +0200 +++ hdaps-gl-0.0.5.ebuild 2011-10-03 11:45:19.877581245 +0200 @@ -2,7 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-laptop/hdaps-gl/hdaps-gl-0.0.5.ebuild,v 1.3 2011/10/02 20:44:52 hanno Exp $ -inherit eutils +EAPI=4 + +inherit eutils toolchain-funcs DESCRIPTION="OpenGL visualization for HDAPS data" HOMEPAGE="http://hdaps.sourceforge.net" @@ -17,14 +19,14 @@ media-libs/freeglut" RDEPEND="${DEPEND}" -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}/${P}-as-needed.diff" || die +src_prepare() { + epatch "${FILESDIR}/${P}-as-needed.diff" } src_compile() { - emake CFLAGS="${CFLAGS} ${LDFLAGS}" || die "make failed" + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} ${LDFLAGS}" } src_install() {