--- sphinx2-0.6.ebuild.orig 2009-09-21 16:15:56.000000000 +0200 +++ sphinx2-0.6.ebuild.orig 2009-09-21 16:15:34.000000000 +0200 @@ -5,6 +5,8 @@ MY_P=${P/_/} S=${WORKDIR}/${MY_P} +inherit eutils + DESCRIPTION="CMU Speech Recognition-engine" HOMEPAGE="http://fife.speech.cs.cmu.edu/sphinx/" SRC_URI="mirror://sourceforge/cmusphinx/${P}.tar.gz" @@ -14,6 +16,13 @@ KEYWORDS="amd64 ppc x86" IUSE="" +src_unpack() { + unpack ${A} + cd "${S}" + # Not using autotools thus patching Makefile.in + epatch "${FILESDIR}"/${P}-as-needed.patch +} + src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS ChangeLog NEWS README doc/README.bin doc/README.lib doc/SCHMM_format doc/filler.dict doc/phoneset doc/phoneset-old