--- a/sphinx3-0.6.3.ebuild 2009-04-01 18:05:24.000000000 +0000 +++ a/sphinx3-0.6.3.ebuild 2010-10-09 20:51:43.013304952 +0000 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinx3/sphinx3-0.6.3.ebuild,v 1.3 2009/04/01 18:05:03 williamh Exp $ +EAPI="2" + DESCRIPTION="CMU Speech Recognition engine" HOMEPAGE="http://fife.speech.cs.cmu.edu/sphinx/" SRC_URI="mirror://sourceforge/cmusphinx/${P}.tar.gz" @@ -13,6 +15,15 @@ S=${WORKDIR}/${PN}-${PV:0:3} +src_prepare() { + sed -i \ + -e 's/strcpy\((\(hdr_buf->datatag\), dataString\)/memcpy\1, sizeof(\2)/' \ + src/libs3decoder/libcep_feat/fe.c || die + sed -i \ + -e '/char separator/s/1/2/' \ + src/tests/programs/lm_addwords.c || die +} + src_install() { emake DESTDIR="${D}" install || die dodoc AUTHORS ChangeLog NEWS README