--- i8kutils-1.25-r1.ebuild 2010-01-01 16:35:22.000000000 -0500 +++ i8kutils-1.25-r2.ebuild 2010-09-21 20:33:02.766999868 -0400 @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-laptop/i8kutils/i8kutils-1.25-r1.ebuild,v 1.3 2010/01/01 21:09:43 ssuominen Exp $ +EAPI="3" DESCRIPTION="Dell Inspiron and Latitude utilities" HOMEPAGE="http://people.debian.org/~dz/i8k/" SRC_URI="http://people.debian.org/~dz/i8k/${P/-/_}.tar.gz" @@ -13,8 +14,13 @@ DEPEND="tk? ( >=dev-lang/tk-8.3.3 )" +src_prepare() { + + sed -i -e 's/\$(CC) -g \$(CFLAGS)/& \$(LDFLAGS)/g' ${S}/Makefile || die +} + src_compile() { - make all || die + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" all || die } src_install() {