--- /home/flame/devel/repos/gentoo/tree/sys-apps/pv/pv-1.1.4.ebuild 2010-04-04 18:40:22.260227666 +0200 +++ pv-1.1.4-r1.ebuild 2010-11-18 00:18:10.285954002 +0100 @@ -2,6 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/pv/pv-1.1.4.ebuild,v 1.9 2010/03/31 18:29:41 armin76 Exp $ +EAPI="2" + +inherit toolchain-funcs + DESCRIPTION="Pipe Viewer: a tool for monitoring the progress of data through a pipe" HOMEPAGE="http://www.ivarch.com/programs/pv.shtml" SRC_URI="mirror://sourceforge/pipeviewer/${P}.tar.gz" @@ -9,19 +13,21 @@ LICENSE="Artistic-2" SLOT="0" KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc64-solaris ~x86-solaris" -IUSE="debug nls" +IUSE="nls" + +src_configure() { + econf $(use_enable nls) +} src_compile() { - econf \ - $(use_enable debug debugging) \ - $(use_enable nls) \ + emake \ + CC="$(tc-getCC)" \ + LD="$(tc-getLD)" \ || die - - emake || die } src_install() { emake DESTDIR="${D}" install || die - dodoc README doc/NEWS doc/TODO + dodoc README doc/NEWS doc/TODO || die }