--- i8kutils-1.25-r1.ebuild 2010-01-01 16:35:22.000000000 -0500 +++ i8kutils-1.33-r1.ebuild 2010-09-21 21:45:00.052000011 -0400 @@ -2,9 +2,12 @@ # 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" +inherit toolchain-funcs + DESCRIPTION="Dell Inspiron and Latitude utilities" -HOMEPAGE="http://people.debian.org/~dz/i8k/" -SRC_URI="http://people.debian.org/~dz/i8k/${P/-/_}.tar.gz" +HOMEPAGE="http://packages.debian.org/i8kutils" +SRC_URI="mirror://debian/pool/main/i/${PN}/${P/-/_}.tar.gz" LICENSE="GPL-2" SLOT="0" @@ -13,8 +16,12 @@ 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 CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" all || die } src_install() {