diff -ur a/xmlindent-0.2.17.ebuild b/xmlindent-0.2.17.ebuild --- a/xmlindent-0.2.17.ebuild 2007-07-11 20:05:42.000000000 -0500 +++ b/xmlindent-0.2.17.ebuild 2009-02-13 22:36:54.000000000 -0600 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/xmlindent/xmlindent-0.2.17.ebuild,v 1.3 2007/07/12 01:05:42 mr_bones_ Exp $ -inherit eutils +inherit eutils toolchain-funcs DESCRIPTION="XML Indent is an XML stream reformatter written in ANSI C, analogous to GNU indent." HOMEPAGE="http://xmlindent.sourceforge.net/" SRC_URI="mirror://sourceforge/xmlindent/${P}.tar.gz" @@ -13,7 +13,20 @@ IUSE="" DEPEND="sys-devel/flex" +src_unpack() { + unpack ${A} + cd "${S}" + sed -i \ + -e '/^xmlindent:/{' \ + -e 's/\.c/.o/g' \ + -e 's/$/ error.o/' \ + -e '}' \ + -e 's/gcc.*/$(LINK.o) $^ -lfl -o $@/' \ + Makefile || die "Failed to sed Makefile" +} + src_compile() { + tc-export CC emake || die "emake failed" }