--- mpack-1.6-r2.ebuild	2011-12-31 23:45:11.000000000 +0100
+++ mpack-1.6-r3.ebuild	2012-01-01 20:11:05.436614572 +0100
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/net-mail/mpack/mpack-1.6-r2.ebuild,v 1.1 2011/12/31 22:45:11 sping Exp $
 
-EAPI="3"
+EAPI=4
 
 inherit eutils
 
@@ -22,7 +22,11 @@
 	epatch "${FILESDIR}"/${P}-cve-2011-4919.patch
 }
 
+src_compile () {
+	emake CC="$(tc-getCC)"
+}
+
 src_install () {
-	make DESTDIR=${D} install || die
+	emake DESTDIR=${D} install
 	dodoc README.* Changes
 }