[oe-commits] org.oe.dev speech-dispatcher:
coredump2 commit
openembedded-commits at lists.openembedded.org
Sat Jan 5 17:04:51 UTC 2008
speech-dispatcher:
- Fix RPROVIDES so it doesn't pull in a ton of -dev packages
- Update EXTRA_OECONF to exclude modules we do not need and enable espeak
- Update configs to set espeak module as default and fix logfile destination
- Install initscript (this could use some work...)
- Tested to work on fic-gta01
Author: coredump2 at openembedded.org
Branch: org.openembedded.dev
Revision: ba35013b9a274dcbd98dc61f4e2cee3cfe2889f2
ViewMTN: http://monotone.openembedded.org/revision/info/ba35013b9a274dcbd98dc61f4e2cee3cfe2889f2
Files:
1
packages/speech-dispatcher/files/confSpeechd.conf_00.patch
packages/speech-dispatcher/files/configSpeechd.conf.in_00.patch
packages/speech-dispatcher/files/speech-dispatcher.init
packages/speech-dispatcher/speech-dispatcher_0.6.5.bb
Diffs:
#
# mt diff -re244d1fcf8a77ecfe037995988cb09420d4fade5 -rba35013b9a274dcbd98dc61f4e2cee3cfe2889f2
#
#
#
# delete "packages/speech-dispatcher/files/confSpeechd.conf_00.patch"
#
# add_file "packages/speech-dispatcher/files/configSpeechd.conf.in_00.patch"
# content [650d7137523155d7c1eb3931d5d362d1ba96849c]
#
# add_file "packages/speech-dispatcher/files/speech-dispatcher.init"
# content [c2d6965815b005c0d9ab696cbca0d2edb3c39bfd]
#
# patch "packages/speech-dispatcher/speech-dispatcher_0.6.5.bb"
# from [4c119ef83390203d6cbc5962db26ac4ec8ed6733]
# to [2c7cce801f4545669639d5346c2af202d79f813d]
#
============================================================
--- packages/speech-dispatcher/files/configSpeechd.conf.in_00.patch 650d7137523155d7c1eb3931d5d362d1ba96849c
+++ packages/speech-dispatcher/files/configSpeechd.conf.in_00.patch 650d7137523155d7c1eb3931d5d362d1ba96849c
@@ -0,0 +1,31 @@
+--- speech-dispatcher-0.6.5/config/speechd.conf.in.orig 2008-01-05 15:07:08.000000000 +0000
++++ speech-dispatcher-0.6.5/config/speechd.conf.in 2008-01-05 15:08:00.000000000 +0000
+@@ -36,7 +36,7 @@
+ # DO NOT COMMENT OUT THIS OPTION, SET IT TO "default" if you do not
+ # want to influence it.
+
+-LogDir "default"
++LogDir "/var/log/"
+ #LogDir "/var/log/speech-dispatcher/"
+ #LogDir "stdout"
+
+@@ -130,8 +130,8 @@
+ # either relative (to etc/speechd/modules/) or absolute
+
+ AddModule "espeak" "sd_espeak" "espeak.conf"
+-AddModule "festival" "sd_festival" "festival.conf"
+-AddModule "flite" "sd_flite" "flite.conf"
++#AddModule "festival" "sd_festival" "festival.conf"
++#AddModule "flite" "sd_flite" "flite.conf"
+ #AddModule "espeak-generic" "sd_generic" "espeak-generic.conf"
+ #AddModule "epos-generic" "sd_generic" "epos-generic.conf"
+ #AddModule "dtk-generic" "sd_generic" "dtk-generic.conf"
+@@ -172,6 +172,6 @@
+
+ # There are some sample client settings
+
+-Include "clients/emacs.conf"
+-Include "clients/gnome-speech.conf"
++#Include "clients/emacs.conf"
++#Include "clients/gnome-speech.conf"
+
============================================================
--- packages/speech-dispatcher/files/speech-dispatcher.init c2d6965815b005c0d9ab696cbca0d2edb3c39bfd
+++ packages/speech-dispatcher/files/speech-dispatcher.init c2d6965815b005c0d9ab696cbca0d2edb3c39bfd
@@ -0,0 +1,42 @@
+#! /bin/sh
+
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/speech-dispatcher
+PIDFILE=/var/run/speech-dispatcher.pid
+NAME=speech-dispatcher
+DESC='Speech Dispatcher'
+USER=speech-dispatcher
+
+test -f $DAEMON || exit 0
+
+set -e
+
+case "$1" in
+ start)
+ echo "Starting $NAME"
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --exec $DAEMON
+
+ ;;
+ stop)
+ echo "Stopping $NAME"
+ start-stop-daemon --oknodo --stop --quiet \
+ --pidfile $PIDFILE --exec $DAEMON
+ ;;
+ restart)
+ echo "Restarting $NAME"
+ start-stop-daemon --oknodo --stop --quiet \
+ --pidfile $PIDFILE --exec $DAEMON
+ sleep 3
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --exec $DAEMON
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
============================================================
--- packages/speech-dispatcher/speech-dispatcher_0.6.5.bb 4c119ef83390203d6cbc5962db26ac4ec8ed6733
+++ packages/speech-dispatcher/speech-dispatcher_0.6.5.bb 2c7cce801f4545669639d5346c2af202d79f813d
@@ -1,26 +1,32 @@
-DESCRIPTION = " Speech Dispatcher is a high-level device independent layer \
+DESCRIPTION = "Speech Dispatcher is a high-level device independent layer \
for speech synthesis through a simple, stable and well documented interface."
HOMEPAGE = "http://www.freebsoft.org/speechd/"
LICENSE = "GPLv2"
DEPENDS = "flite libdotconf glib-2.0"
-RPROVIDES += "speechd"
+RPROVIDES_${PN} += "speechd"
-PR = "r1"
+PR = "r4"
-inherit autotools
+inherit autotools update-rc.d
SRC_URI = "http://www.freebsoft.org/pub/projects/speechd/${PN}-${PV}.tar.gz \
+ file://speech-dispatcher.init \
file://srcMakefile.am.patch;patch=1 \
- file://confSpeechd.conf_00.patch;patch=1"
+ file://configSpeechd.conf.in_00.patch;patch=1"
LEAD_SONAME = "libspeechd.so"
+EXTRA_OECONF = " --with-espeak=yes --with-flite=no --with-ibmtts=no --with-nas=no --with-alsa=yes --with-pulse=yes "
+INITSCRIPT_NAME = "speech-dispatcher"
+INITSCRIPT_PARAMS = "defaults 45"
+
do_install() {
install -d ${D}${bindir}
install -d ${D}${includedir}
install -d ${D}${libdir}/${PN}-modules
install -d ${D}${sysconfdir}
install -d ${D}${sysconfdir}/modules
+ install -d ${D}${sysconfdir}/init.d
oe_libinstall -so -C src/audio libsdaudio ${D}${libdir}
oe_libinstall -so -C src/c/api libspeechd ${D}${libdir}
@@ -33,6 +39,7 @@ do_install() {
install -m 0644 ${S}/config/speechd.conf ${D}${sysconfdir}
install -m 0644 ${S}/config/modules/*.conf ${D}${sysconfdir}/modules
+ install -m 0755 ${WORKDIR}/speech-dispatcher.init ${D}${sysconfdir}/init.d/speech-dispatcher
}
do_stage() {
More information about the Openembedded-commits
mailing list