--- babl-0.0.22.ebuild 2009-07-06 17:06:09.000000000 -0500 +++ babl-0.1.0.ebuild 2009-08-19 01:03:57.010985706 -0500 @@ -1,10 +1,14 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/babl/babl-0.0.22.ebuild,v 1.12 2009/07/06 21:56:22 jer Exp $ +# $Header: $ + +EAPI="2" + +inherit eutils autotools DESCRIPTION="A dynamic, any to any, pixel format conversion library" HOMEPAGE="http://www.gegl.org/babl/" -SRC_URI="ftp://ftp.gtk.org/pub/${PN}/0.0/${P}.tar.bz2" +SRC_URI="ftp://ftp.gtk.org/pub/${PN}/${PV:0:3}/${P}.tar.bz2" LICENSE="LGPL-3" SLOT="0" @@ -13,11 +17,15 @@ DEPEND="virtual/libc" -src_compile() { - econf $(use_enable mmx) \ - $(use_enable sse) \ - || die "econf failed" - emake || die "emake failed" +src_prepare() { + epatch "${FILESDIR}/${P}-build-fixes.patch" + eautoreconf +} + +src_configure() { + econf \ + $(use_enable mmx) \ + $(use_enable sse) } src_install() {