summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Hood <squinky86@gentoo.org>2004-04-30 02:34:36 +0000
committerJon Hood <squinky86@gentoo.org>2004-04-30 02:34:36 +0000
commitf24acf5acf8a1d6f8421d66e9f83130d8c349e82 (patch)
treeadd85545dbc15aaf7b6c1eab9807a44fb8913386
parentNew upstream version. Fixes #37416. (Manifest recommit) (diff)
downloadgentoo-2-f24acf5acf8a1d6f8421d66e9f83130d8c349e82.tar.gz
gentoo-2-f24acf5acf8a1d6f8421d66e9f83130d8c349e82.tar.bz2
gentoo-2-f24acf5acf8a1d6f8421d66e9f83130d8c349e82.zip
gcc-3.4 fix
-rw-r--r--app-accessibility/sphinx2/ChangeLog6
-rw-r--r--app-accessibility/sphinx2/files/sphinx2-gcc3.4.patch14
-rw-r--r--app-accessibility/sphinx2/sphinx2-0.4.ebuild10
3 files changed, 28 insertions, 2 deletions
diff --git a/app-accessibility/sphinx2/ChangeLog b/app-accessibility/sphinx2/ChangeLog
index a262d1552e09..8db30d8cf6bb 100644
--- a/app-accessibility/sphinx2/ChangeLog
+++ b/app-accessibility/sphinx2/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-accessibility/sphinx2
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinx2/ChangeLog,v 1.3 2004/03/17 20:54:16 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinx2/ChangeLog,v 1.4 2004/04/30 02:34:36 squinky86 Exp $
+
+ 29 Apr 2004; Jon Hood <squinky86@gentoo.org> +files/sphinx2-gcc3.4.patch,
+ sphinx2-0.4.ebuild:
+ added gcc 3.4 fix
17 Mar 2004; David Holm <dholm@gentoo.org> sphinx2-0.4.ebuild:
Added to ~ppc.
diff --git a/app-accessibility/sphinx2/files/sphinx2-gcc3.4.patch b/app-accessibility/sphinx2/files/sphinx2-gcc3.4.patch
new file mode 100644
index 000000000000..59ddace28b4c
--- /dev/null
+++ b/app-accessibility/sphinx2/files/sphinx2-gcc3.4.patch
@@ -0,0 +1,14 @@
+diff -Naur sphinx2-0.4.vanilla/src/libsphinx2/cdcn_update.c sphinx2-0.4/src/libsphinx2/cdcn_update.c
+--- sphinx2-0.4.vanilla/src/libsphinx2/cdcn_update.c 2001-12-13 21:11:20.000000000 +0000
++++ sphinx2-0.4/src/libsphinx2/cdcn_update.c 2004-04-29 21:25:43.572307112 +0000
+@@ -57,8 +57,8 @@
+ float *noise, *tilt, *codebook, *prob, *variance, *corrbook;
+ int num_codes;
+ /* Multidimensional arrays, gar gar gar */
+- static float initialize (float *, int, float *, float *, float,
+- float *, float *, float *, int);
++ static float initialize (float data[][], int num_frames, float *noise, float tilt[], float speech_threshold,
++ float codebook[][], float *prob, float var[][], int ncodes);
+ static void correction(float *, float *, float *, float *, int);
+ static float max_q (float *, float *, float *, float *, float *,
+ float *, int, float *, int);
diff --git a/app-accessibility/sphinx2/sphinx2-0.4.ebuild b/app-accessibility/sphinx2/sphinx2-0.4.ebuild
index b20bea4844a0..80fd5d3eecea 100644
--- a/app-accessibility/sphinx2/sphinx2-0.4.ebuild
+++ b/app-accessibility/sphinx2/sphinx2-0.4.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinx2/sphinx2-0.4.ebuild,v 1.2 2004/03/17 20:54:16 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinx2/sphinx2-0.4.ebuild,v 1.3 2004/04/30 02:34:36 squinky86 Exp $
+
+inherit eutils
DESCRIPTION="Sphinx2 - CMU Speech Recognition-engine"
HOMEPAGE="http://fife.speech.cs.cmu.edu/sphinx/"
@@ -14,6 +16,12 @@ IUSE=""
DEPEND="virtual/glibc"
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/sphinx2-gcc3.4.patch
+}
+
src_compile() {
econf || die
emake || die