[oe-commits] Stanislav Brabec : epos: New recipe for new package (text-to-speech).

git version control git at git.openembedded.org
Tue Jun 14 21:59:09 UTC 2011


Module: openembedded.git
Branch: master
Commit: ea92543e4b4f7935bb18b63f0018b2d602e9bd3b
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=ea92543e4b4f7935bb18b63f0018b2d602e9bd3b

Author: Stanislav Brabec <utx at penguin.cz>
Date:   Tue Jun 14 21:57:18 2011 +0000

epos: New recipe for new package (text-to-speech).

Signed-off-by: Stanislav Brabec <utx at penguin.cz>

---

 recipes/epos/epos-2.5.37/epos-gcc43.patch      |   37 ++++++++++++++++++++++++
 recipes/epos/epos-2.5.37/fix-gcc45-build.patch |   14 +++++++++
 recipes/epos/epos_2.5.37.bb                    |   15 +++++++++
 3 files changed, 66 insertions(+), 0 deletions(-)

diff --git a/recipes/epos/epos-2.5.37/epos-gcc43.patch b/recipes/epos/epos-2.5.37/epos-gcc43.patch
new file mode 100644
index 0000000..22c493f
--- /dev/null
+++ b/recipes/epos/epos-2.5.37/epos-gcc43.patch
@@ -0,0 +1,37 @@
+--- src/nnet/neural.cc
++++ src/nnet/neural.cc
+@@ -38,7 +38,7 @@
+ #include <string.h>
+ #include <ctype.h>
+ #include <stdlib.h>
+-#include <iostream.h>
++#include <iostream>
+ #include <time.h>
+ 
+ /*
+--- src/options.lst
++++ src/options.lst
+@@ -310,6 +310,7 @@
+ 
+ #undef STATIC_OPTION
+ #define STATIC_OPTION(name,type,default) name=default;
++#undef  OPTION
+ #define OPTION(name,type,default)
+ 
+ #define VOICE_OPTION(name,type,default)
+@@ -336,6 +337,7 @@
+ 
+ #undef STATIC_OPTION
+ #define STATIC_OPTION(name,type,default) type name;
++#undef  OPTION
+ #define OPTION(name, type, default)
+ 
+ #define VOICE_OPTION(name,type,default)
+@@ -362,6 +364,7 @@
+ 
+ #undef STATIC_OPTION
+ #define STATIC_OPTION(name,type,default) {"S:" stringify(name) + 2, type, OS_STATIC, A_PUBLIC, A_PUBLIC, true, false, (long int)&((static_configuration *)NULL)->name},
++#undef  OPTION
+ #define OPTION(name,type,default) 
+ 
+ #define VOICE_OPTION(name,type,default)
diff --git a/recipes/epos/epos-2.5.37/fix-gcc45-build.patch b/recipes/epos/epos-2.5.37/fix-gcc45-build.patch
new file mode 100644
index 0000000..b162359
--- /dev/null
+++ b/recipes/epos/epos-2.5.37/fix-gcc45-build.patch
@@ -0,0 +1,14 @@
+# http://launchpadlibrarian.net/61195921/epos_1%3A2.5.37-9_1%3A2.5.37-9ubuntu1.diff.gz
+Index: epos-2.5.37/src/nnet/neural_parse.yy
+===================================================================
+--- epos-2.5.37.orig/src/nnet/neural_parse.yy
++++ epos-2.5.37/src/nnet/neural_parse.yy
+@@ -255,7 +255,7 @@ unit_level: string_exp
+ 
+ int yyerror (char *s)
+ {
+-	shriek (812, fmt ("BISON:yyerror:bison_nnet parser: bison_row %i (not counting empty rows) '%s' is erroneous. %s\n", row_num, bison_row_buf, s));
++	shriek (812, fmt ("BISON:yyerror:bison_nnet parser: bison_row %i (not counting empty rows) '%s' is erroneous. %s\n", row_num, bison_row_buf.c_str(), s));
+ 	return -1;
+ }
+  
diff --git a/recipes/epos/epos_2.5.37.bb b/recipes/epos/epos_2.5.37.bb
new file mode 100644
index 0000000..890ac85
--- /dev/null
+++ b/recipes/epos/epos_2.5.37.bb
@@ -0,0 +1,15 @@
+DESCRIPTION = "Language independent rule-driven Text-to-Speech system"
+LICENSE = "GPLv2+"
+HOMEPAGE = "http://epos.ure.cas.cz/"
+DEPENDS = "bison-native flex-native"
+# Fixed come from https://build.opensuse.org/package/files?package=epos&project=openSUSE%3AFactory%3AContrib
+SRC_URI = "${SOURCEFORGE_MIRROR}/project/epos/epos-dev/${PV}/${P}.tar.gz\
+	   file://epos-gcc43.patch;striplevel=0\
+	   file://fix-gcc45-build.patch"
+PR = "r0"
+PARALLEL_MAKE = ""
+
+inherit autotools
+
+SRC_URI[md5sum] = "d719f50ca2d94ee76a0fdd921ddacb95"
+SRC_URI[sha256sum] = "7b6e835d4db4f64cfdcf3359d84b6b0ed02e8fb89851aed7615768f7d07c8607"





More information about the Openembedded-commits mailing list