diff -ru a/gkrelltop-2.2.11.ebuild b/gkrelltop-2.2.11.ebuild --- a/gkrelltop-2.2.11.ebuild 2009-09-05 22:37:12.000000000 +0000 +++ b/gkrelltop-2.2.11.ebuild 2010-08-23 00:38:24.288872769 +0000 @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrelltop/gkrelltop-2.2.11.ebuild,v 1.7 2009/09/05 22:35:12 maekke Exp $ EAPI=2 -inherit gkrellm-plugin +inherit gkrellm-plugin toolchain-funcs DESCRIPTION="a GKrellM2 plugin which displays the top three processes" SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.orig.tar.gz" @@ -24,6 +24,13 @@ =dev-libs/glib-2* X? ( =x11-libs/gtk+-2* )" +src_prepare() { + sed -i \ + -e "s:/usr/bin/gcc:$(tc-getCC) \$(CFLAGS):" \ + -e 's/-shared/$(LDFLAGS) &/' \ + Makefile || die +} + src_compile() { use X || TARGET="server" emake ${TARGET}