--- count-1.20.ebuild 2008-10-16 01:27:12.000000000 -0400 +++ count-1.20-r1.ebuild 2008-10-16 01:24:50.000000000 -0400 @@ -1,19 +1,31 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/count/count-1.20.ebuild,v 1.2 2007/07/16 14:48:44 armin76 Exp $ +# $Header: $ inherit eutils DESCRIPTION="A fast and enhanced 'wc' replacement for UNIX" HOMEPAGE="http://developer.berlios.de/projects/count/" SRC_URI="mirror://berlios/pub/${PN}/${P}.tar.bz2" -LICENSE="GPL-2" + SLOT="0" -KEYWORDS="x86 ppc" +LICENSE="GPL-2" +KEYWORDS="ppc x86" IUSE="" -DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i \ + -e "s/CFLAGS=/CFLAGS+=/" RULES/* \ + -e "s/CPPFLAGS=\t/CPPFLAGS=\$(CXXFLAGS)\t/" RULES/* \ + -e "s/LDFLAGS=/LDFLAGS+=/" RULES/* \ + || die "Patching rules files failed" +} + src_compile() { - make + emake || die "emake failed" } src_install() {