--- notion-3_p2013030200.ebuild 2013-05-11 10:01:35.000000000 +0200 +++ notion-3_p2013030200-r1.ebuild 2013-05-27 21:00:59.421659110 +0200 @@ -41,6 +41,9 @@ -e "s:^\(VARDIR=\).*$:\1${ROOT}var/cache/${PN}:" \ -e "s:^\(X11_PREFIX=\).*:\1\$(PREFIX)/usr:" \ -i system-autodetect.mk || die + + sed -e 's/gcc/$(CC)/g' -i ioncore/Makefile || die + export STRIPPROG=true use nls || export DEFINES=" -DCF_NO_LOCALE -DCF_NO_GETTEXT" @@ -52,8 +55,13 @@ if ! use xrandr ; then sed -e 's/mod_xrandr//g' -i modulelist.mk || die fi +} - tc-export CC +src_compile(){ + emake \ + CC="$(tc-getCC)" \ + AR="$(tc-getAR)" \ + RANLIB="$(tc-getRANLIB)" } src_install() {