r11089 - in /desktop/unstable/gnome-speech/debian: ./ po/

mlang at users.alioth.debian.org mlang at users.alioth.debian.org
Tue May 22 09:44:00 UTC 2007


Author: mlang
Date: Tue May 22 09:44:00 2007
New Revision: 11089

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=11089
Log:
New package gnome-speech-swift to compile and install the swift driver on the users machine (compiles in the postinst because of non-free header requirements).

Added:
    desktop/unstable/gnome-speech/debian/gnome-speech-swift.config
    desktop/unstable/gnome-speech/debian/gnome-speech-swift.install
    desktop/unstable/gnome-speech/debian/gnome-speech-swift.postinst
    desktop/unstable/gnome-speech/debian/gnome-speech-swift.prerm
    desktop/unstable/gnome-speech/debian/gnome-speech-swift.templates
    desktop/unstable/gnome-speech/debian/po/
    desktop/unstable/gnome-speech/debian/po/POTFILES.in
    desktop/unstable/gnome-speech/debian/po/templates.pot
Modified:
    desktop/unstable/gnome-speech/debian/changelog
    desktop/unstable/gnome-speech/debian/control
    desktop/unstable/gnome-speech/debian/control.in
    desktop/unstable/gnome-speech/debian/libgnome-speech7.install
    desktop/unstable/gnome-speech/debian/rules

Modified: desktop/unstable/gnome-speech/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-speech/debian/changelog?rev=11089&op=diff
==============================================================================
--- desktop/unstable/gnome-speech/debian/changelog (original)
+++ desktop/unstable/gnome-speech/debian/changelog Tue May 22 09:44:00 2007
@@ -1,3 +1,16 @@
+gnome-speech (1:0.4.12-4) UNRELEASED; urgency=low
+
+  * New package gnome-speech-swift for compiling Cepstral swift support
+    at installation time.  The swift driver for gnome-speech requires
+    non-free header files at compile time.  The user receives these headers
+    when buying the swift engine.  This package compiles the swift backend
+    driver in the postinst.
+  * Install /usr/bin/*-synthesis-driver rather than explicitly naming
+    the synthesis driver binaries to ease user modifications and
+    recompilation of the package.
+
+ -- Mario Lang <mlang at debian.org>  Tue, 22 May 2007 11:42:52 +0200
+
 gnome-speech (1:0.4.12-3) unstable; urgency=low
 
   * Build-Depends on libespeak-dev should be >= 1.22.

Modified: desktop/unstable/gnome-speech/debian/control
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-speech/debian/control?rev=11089&op=diff
==============================================================================
--- desktop/unstable/gnome-speech/debian/control (original)
+++ desktop/unstable/gnome-speech/debian/control Tue May 22 09:44:00 2007
@@ -8,6 +8,7 @@
                gnome-pkg-tools (>= 0.10),
                libbonobo2-dev (>= 2.6.0), liborbit2-dev (>= 1:2.10.0),
                libespeak-dev (>= 1.22)
+Build-Depends-Indep: po-debconf
 Standards-Version: 3.7.2
 
 Package: libgnome-speech7
@@ -32,3 +33,26 @@
  to convert text into speech, as well as speech input.
  .
  See the libgnome-speech3 package description for more information.
+
+Package: gnome-speech-swift
+Section: libs
+Architecture: all
+Depends: ${misc:Depends},
+         gcc,
+         libgnome-speech-dev (= ${Source-Version}),
+         liborbit2-dev,
+         libglib2.0-dev,
+         libbonobo2-dev
+Description: GNOME text-to-speech library (Cepstral swift engine support)
+ The GNOME Speech library gives a simple yet general API for programs
+ to convert text into speech, as well as speech input.
+ .
+ This package provides the source code required to compile a driver
+ for the commercial swift speech synthesis engine and voices from
+ Cepstral (http://www.cepstral.com/).
+ Upon installation, it will automatically attempt to compile and install
+ the swift-synthesis-driver binary required to use GNOME Speech with swift. 
+ .
+ Important: This package is only useful if you have already downloaded and
+ installed the swift engine on your computer.
+

Modified: desktop/unstable/gnome-speech/debian/control.in
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-speech/debian/control.in?rev=11089&op=diff
==============================================================================
--- desktop/unstable/gnome-speech/debian/control.in (original)
+++ desktop/unstable/gnome-speech/debian/control.in Tue May 22 09:44:00 2007
@@ -8,6 +8,7 @@
                gnome-pkg-tools (>= 0.10),
                libbonobo2-dev (>= 2.6.0), liborbit2-dev (>= 1:2.10.0),
                libespeak-dev (>= 1.22)
+Build-Depends-Indep: po-debconf
 Standards-Version: 3.7.2
 
 Package: libgnome-speech7
@@ -32,3 +33,26 @@
  to convert text into speech, as well as speech input.
  .
  See the libgnome-speech3 package description for more information.
+
+Package: gnome-speech-swift
+Section: libs
+Architecture: all
+Depends: ${misc:Depends},
+         gcc,
+         libgnome-speech-dev (= ${Source-Version}),
+         liborbit2-dev,
+         libglib2.0-dev,
+         libbonobo2-dev
+Description: GNOME text-to-speech library (Cepstral swift engine support)
+ The GNOME Speech library gives a simple yet general API for programs
+ to convert text into speech, as well as speech input.
+ .
+ This package provides the source code required to compile a driver
+ for the commercial swift speech synthesis engine and voices from
+ Cepstral (http://www.cepstral.com/).
+ Upon installation, it will automatically attempt to compile and install
+ the swift-synthesis-driver binary required to use GNOME Speech with swift. 
+ .
+ Important: This package is only useful if you have already downloaded and
+ installed the swift engine on your computer.
+

Added: desktop/unstable/gnome-speech/debian/gnome-speech-swift.config
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-speech/debian/gnome-speech-swift.config?rev=11089&op=file
==============================================================================
--- desktop/unstable/gnome-speech/debian/gnome-speech-swift.config (added)
+++ desktop/unstable/gnome-speech/debian/gnome-speech-swift.config Tue May 22 09:44:00 2007
@@ -1,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+# Load Debconf
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+# Autodetect default for swift_dir question
+for dir in /opt/swift /usr/local/swift /usr/{local/,}share/swift; do
+  if [ -d "$dir" -a -d "$dir/include" -a -f "$dir/include/swift.h" -a -d $"dir/lib" ]; then
+    db_set gnome-speech-swift/swift_dir "$dir"
+    break
+  fi
+done
+
+db_input medium gnome-speech-swift/swift_dir || true
+db_go
+

Added: desktop/unstable/gnome-speech/debian/gnome-speech-swift.install
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-speech/debian/gnome-speech-swift.install?rev=11089&op=file
==============================================================================
--- desktop/unstable/gnome-speech/debian/gnome-speech-swift.install (added)
+++ desktop/unstable/gnome-speech/debian/gnome-speech-swift.install Tue May 22 09:44:00 2007
@@ -1,0 +1,1 @@
+drivers/swift/*.{c,h,server.in} usr/share/gnome-speech/sources/swift

Added: desktop/unstable/gnome-speech/debian/gnome-speech-swift.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-speech/debian/gnome-speech-swift.postinst?rev=11089&op=file
==============================================================================
--- desktop/unstable/gnome-speech/debian/gnome-speech-swift.postinst (added)
+++ desktop/unstable/gnome-speech/debian/gnome-speech-swift.postinst Tue May 22 09:44:00 2007
@@ -1,0 +1,26 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+srcdir=/usr/share/gnome-speech/sources/swift
+if [ "$1" = "configure" ]; then
+  db_get gnome-speech-swift/swift_dir
+  swift_dir="$RET"
+  if [ -d "$swift_dir" -a -d "$swift_dir/include" -a -d "$swift_dir/lib" ]; then
+    # compile code here
+    swift_CFLAGS="-I. -I/usr/include/gnome-speech-1.0 -I$swift_dir/include -DORBIT2=1 -pthread -I/usr/include/bonobo-activation-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0   -Wall -g -O2"
+    gcc $swift_CFLAGS -o /usr/bin/swift-synthesis-driver \
+      $srcdir/swiftsynthesisdriver.c $srcdir/swiftspeaker.c \
+      -Wl,--export-dynamic -lgnomespeech -lbonobo-2 -lbonobo-activation -lgmodule-2.0 -ldl -lORBit-2 -lgthread-2.0 -lrt -lgobject-2.0 -lglib-2.0 -L$swift_dir/lib -lswift -lm
+    sed -e 's, at prefix@,/usr,' <$srcdir/GNOME_Speech_SynthesisDriver_Swift.server.in >/usr/lib/bonobo/servers/GNOME_Speech_SynthesisDriver_Swift.server
+    if [ $swift_dir" != "/opt/swift" ]; then
+      if [ ! -f /opt/swift/etc/swift.xml ]; then
+        ln -s $swift_dir/etc/swift.xml /etc/swift.xml
+      fi
+    fi
+  fi
+fi
+

Added: desktop/unstable/gnome-speech/debian/gnome-speech-swift.prerm
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-speech/debian/gnome-speech-swift.prerm?rev=11089&op=file
==============================================================================
--- desktop/unstable/gnome-speech/debian/gnome-speech-swift.prerm (added)
+++ desktop/unstable/gnome-speech/debian/gnome-speech-swift.prerm Tue May 22 09:44:00 2007
@@ -1,0 +1,6 @@
+#!/bin/sh -e
+
+rm -f /usr/bin/swift-synthesis-driver
+rm -f /usr/lib/bonobo/servers/GNOME_Speech_SynthesisDriver_Swift.server
+[ -L /etc/swift.xml ] && rm /etc/swift.xml
+

Added: desktop/unstable/gnome-speech/debian/gnome-speech-swift.templates
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-speech/debian/gnome-speech-swift.templates?rev=11089&op=file
==============================================================================
--- desktop/unstable/gnome-speech/debian/gnome-speech-swift.templates (added)
+++ desktop/unstable/gnome-speech/debian/gnome-speech-swift.templates Tue May 22 09:44:00 2007
@@ -1,0 +1,9 @@
+Template: gnome-speech-swift/swift_dir
+Type: string
+Default: /opt/swift
+_Description: Directory where the Cepstral swift engine can be found?
+ The Cepstral swift include files and shared libraries are required
+ To compile the swift backend for GNOME Speech.
+ .
+ Enter the toplevel path where you installed the swift engine.
+

Modified: desktop/unstable/gnome-speech/debian/libgnome-speech7.install
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-speech/debian/libgnome-speech7.install?rev=11089&op=diff
==============================================================================
--- desktop/unstable/gnome-speech/debian/libgnome-speech7.install (original)
+++ desktop/unstable/gnome-speech/debian/libgnome-speech7.install Tue May 22 09:44:00 2007
@@ -1,5 +1,4 @@
 debian/tmp/usr/lib/libgnomespeech*.so.*
-debian/tmp/usr/bin/festival-synthesis-driver
-debian/tmp/usr/bin/espeak-synthesis-driver
+debian/tmp/usr/bin/*-synthesis-driver
 debian/tmp/usr/lib/bonobo/servers/*
 debian/tmp/usr/lib/orbit*/

Added: desktop/unstable/gnome-speech/debian/po/POTFILES.in
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-speech/debian/po/POTFILES.in?rev=11089&op=file
==============================================================================
--- desktop/unstable/gnome-speech/debian/po/POTFILES.in (added)
+++ desktop/unstable/gnome-speech/debian/po/POTFILES.in Tue May 22 09:44:00 2007
@@ -1,0 +1,1 @@
+[type: gettext/rfc822deb] gnome-speech-swift.templates

Added: desktop/unstable/gnome-speech/debian/po/templates.pot
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-speech/debian/po/templates.pot?rev=11089&op=file
==============================================================================
--- desktop/unstable/gnome-speech/debian/po/templates.pot (added)
+++ desktop/unstable/gnome-speech/debian/po/templates.pot Tue May 22 09:44:00 2007
@@ -1,0 +1,37 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: mlang at debian.org\n"
+"POT-Creation-Date: 2007-05-22 11:32+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../gnome-speech-swift.templates:1001
+msgid "Directory where the Cepstral swift engine can be found?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../gnome-speech-swift.templates:1001
+msgid ""
+"The Cepstral swift include files and shared libraries are required To "
+"compile the swift backend for GNOME Speech."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../gnome-speech-swift.templates:1001
+msgid "Enter the toplevel path where you installed the swift engine."
+msgstr ""

Modified: desktop/unstable/gnome-speech/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-speech/debian/rules?rev=11089&op=diff
==============================================================================
--- desktop/unstable/gnome-speech/debian/rules (original)
+++ desktop/unstable/gnome-speech/debian/rules Tue May 22 09:44:00 2007
@@ -18,3 +18,4 @@
 	rm -f drivers/freetts/GNOME_Speech_SynthesisDriver_FreeTTS.server
 	rm -f config.h config.log config.status libtool stamp-h1
 	rm -f gnome-speech-1.0.pc
+	debconf-updatepo




More information about the pkg-gnome-commits mailing list