Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=4305c0e5fd9b263345f80c7a449aba143f087e96

commit 4305c0e5fd9b263345f80c7a449aba143f087e96
Author: bouleetbil <[email protected]>
Date:   Thu Jul 23 22:16:07 2009 +0200

speech-dispatcher-0.6.7-1-i686
*new package

diff --git a/source/xapps-extra/speech-dispatcher/FrugalBuild 
b/source/xapps-extra/speech-dispatcher/FrugalBuild
new file mode 100644
index 0000000..0325311
--- /dev/null
+++ b/source/xapps-extra/speech-dispatcher/FrugalBuild
@@ -0,0 +1,36 @@
+# Compiling Time: 0.11 SBU
+# Maintainer: bouleetbil <[email protected]>
+
+pkgname=speech-dispatcher
+pkgver=0.6.7
+pkgrel=1
+pkgdesc="speech-dispatcher speech synthesis interface"
+url="http://www.freebsoft.org/speechd";
+depends=('dotconf' 'nas' 'alsa-lib')
+groups=('xapps-extra')
+archs=('i686')
+up2date="Flasttar http://www.freebsoft.org/pub/projects/speechd/";
+source=(http://www.freebsoft.org/pub/projects/speechd/$pkgname-$pkgver.tar.gz 
rc.speechd \
+       gcc4.diff )
+subpkgs=("python-speech-dispatcher")
+subdescs=('python bindings for speech')
+subdepends=("$pkgname=$pkgver python>=2.6")
+subgroups=('devel-extra')
+subarchs=("i686")
+Finclude python
+sha1sums=('00fe5051930a00c2bcdf67683410beedfa066d4e' \
+          '7373cfad8d4c7f8ce2ce244bbb05bd1a70b5777a' \
+          '2a31426b586c2929e9a8860cf661f8054cad4755')
+backup=(etc/speech-dispatcher/speechd.conf)
+
+build() {
+       Fcd
+       Fsed "--prefix=" "--prefix=$Fdestdir" src/python/Makefile.in
+       Fsed "@snddatadir@" "$fdest...@snddatadir@" src/python/Makefile.in
+       Fbuild
+       # python bindings
+       Fsplit python-speech-dispatcher $_F_python_libdir
+       Frcd2 speechd
+}
+
+# optimization OK
diff --git a/source/xapps-extra/speech-dispatcher/gcc4.diff 
b/source/xapps-extra/speech-dispatcher/gcc4.diff
new file mode 100644
index 0000000..1200658
--- /dev/null
+++ b/source/xapps-extra/speech-dispatcher/gcc4.diff
@@ -0,0 +1,22 @@
+--- speech-dispatcher-0.6.7/src/modules/module_main.c.orig     2009-05-20 
11:40:37.000000000 +0100
++++ speech-dispatcher-0.6.7/src/modules/module_main.c  2009-05-20 
11:40:46.000000000 +0100
+@@ -22,7 +22,7 @@
+  */
+
+ /* So that gcc doesn't comply */
+-int getline(char**, size_t*, FILE*);
++/*int getline(char**, size_t*, FILE*);*/
+
+ #define PROCESS_CMD(command, function) \
+ if (!strcmp(cmd_buf, #command"\n")){ \
+--- speech-dispatcher-0.6.7/src/modules/module_utils.h.orig    2009-05-20 
11:48:06.000000000 +0100
++++ speech-dispatcher-0.6.7/src/modules/module_utils.h 2009-05-20 
11:48:14.000000000 +0100
+@@ -421,7 +421,7 @@
+
+
+ /* So that gcc doesn't complain */
+-int getline(char**, size_t*, FILE*);
++/*int getline(char**, size_t*, FILE*);*/
+
+ pthread_mutex_t module_stdout_mutex;
+
diff --git a/source/xapps-extra/speech-dispatcher/rc.speechd 
b/source/xapps-extra/speech-dispatcher/rc.speechd
new file mode 100644
index 0000000..ae6482f
--- /dev/null
+++ b/source/xapps-extra/speech-dispatcher/rc.speechd
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+# (c) 2009 bouleetbil <[email protected]>
+# rc.sppechd for FrugalWare
+# distributed under GPL License
+# description: provides a high-level device independent layer for speech 
synthesis.
+
+# chkconfig: 2345 13 87
+# description:  Starts and stops speechd
+
+source /lib/initscripts/functions
+
+TEXTDOMAIN=speechd
+TEXTDOMAINDIR=/lib/initscripts/messages
+source /lib/initscripts/functions
+daemon=$"speechd"
+
+actions=(start stop)
+
+pid="pidof speech-dispatcher 2> /dev/null"
+rc_start()
+{
+       start_msg
+       if [ -z "$(eval $pid)" ]; then
+               /usr/bin/speech-dispatcher -- 2>/dev/null 1>/dev/null
+               ok $?
+       else
+               ok 999
+       fi
+}
+
+rc_stop()
+{
+       stop_msg
+       if [ ! -z "$(eval $pid)" ] ;then
+               kill $(eval $pid) 2>/dev/null 1>/dev/null
+               ok $?
+       else
+               ok 999
+       fi
+}
+
+rc_exec $1
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to