--- a/btrace-1.0.0.ebuild 2009-09-23 20:36:54.000000000 +0000 +++ b/btrace-1.0.0.ebuild 2010-09-03 03:43:48.948028541 +0000 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-block/btrace/btrace-1.0.0.ebuild,v 1.2 2009/09/23 20:29:31 patrick Exp $ +EAPI="2" + inherit eutils toolchain-funcs flag-o-matic linux-info DESCRIPTION="btrace can show detailed info about what is happening on a block device io queue." @@ -24,9 +26,11 @@ CONFIG_CHECK="~BLK_DEV_IO_TRACE" WARNING_BLK_DEV_IO_TRACE="you need to enable BLK_DEV_IO_TRACE kernel option if you want to gather traces from this machine" -src_unpack() { - unpack ${A} +src_prepare() { epatch "${FILESDIR}"/${PN}-1.0.0-parallel-make.patch + sed -i \ + -e '/filter /s/-o/$(LDFLAGS) -o/' \ + Makefile btt/Makefile btreplay/Makefile } src_compile() {