diff --git a/multimedia/sound/speech-dispatcher/actions.py b/multimedia/sound/speech-dispatcher/actions.py index 8562a3694b..5baadf585a 100644 --- a/multimedia/sound/speech-dispatcher/actions.py +++ b/multimedia/sound/speech-dispatcher/actions.py @@ -21,6 +21,8 @@ def setup(): --with-espeak \ --with-libao \ --with-pulse \ + --with-baratinoo=no \ + --with-kali=no \ --with-default-audio-method=alsa") pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") @@ -29,7 +31,8 @@ def build(): autotools.make() def install(): - autotools.install() + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + #autotools.install() # Conflicts with openTTS pisitools.remove("/usr/share/info/ssip.info") @@ -41,4 +44,4 @@ def install(): pisitools.dodir("/var/log/speech-dispatcher") shelltools.chmod("%s/var/log/speech-dispatcher" % get.installDIR(), 0700) - pisitools.dodoc("AUTHORS", "COPYING", "README") + pisitools.dodoc("AUTHORS", "COPYING*", "README*") diff --git a/multimedia/sound/speech-dispatcher/files/0001-Remove-pyxdg-dependency.patch b/multimedia/sound/speech-dispatcher/files/0001-Remove-pyxdg-dependency.patch new file mode 100644 index 0000000000..5b0b8d205c --- /dev/null +++ b/multimedia/sound/speech-dispatcher/files/0001-Remove-pyxdg-dependency.patch @@ -0,0 +1,45 @@ +From 5ede80b0713c75b21925203c3ef389c86cb69e6d Mon Sep 17 00:00:00 2001 +From: Bastien Nocera +Date: Fri, 20 Jul 2018 15:04:48 +0200 +Subject: [PATCH] Remove pyxdg dependency + +And use the same algorithm as GLib to determine the base user config +directory (XDG_CONFIG_HOME, then ~/.config then /tmp/$USERNAME/.config) +--- + src/api/python/speechd_config/config.py.in | 13 ++++++++++--- + 1 file changed, 10 insertions(+), 3 deletions(-) + +diff --git a/src/api/python/speechd_config/config.py.in b/src/api/python/speechd_config/config.py.in +index ccf8803..e8393e5 100644 +--- a/src/api/python/speechd_config/config.py.in ++++ b/src/api/python/speechd_config/config.py.in +@@ -30,8 +30,6 @@ import socket + import sys + import time + +-from xdg import BaseDirectory +- + # Locale/gettext configuration + + locale.setlocale(locale.LC_ALL, '') +@@ -167,7 +165,16 @@ class Tests: + + def user_conf_dir(self): + """Return user configuration directory""" +- return os.path.join(BaseDirectory.xdg_config_home, "speech-dispatcher") ++ config_dir = os.environ['XDG_CONFIG_HOME'] ++ if not config_dir: ++ home_dir = os.environ['HOME'] ++ if home_dir: ++ config_dir = os.path.join(home_dir, ".config") ++ else: ++ tmpdir = os.environ['TMPDIR'] or "/tmp/" ++ config_dir = os.path.join(tmpdir, os.getlogin(), ".config") ++ ++ return os.path.join(config_dir, "speech-dispatcher") + + def system_conf_dir(self): + """Determine system configuration directory""" +-- +2.17.1 + diff --git a/multimedia/sound/speech-dispatcher/pspec.xml b/multimedia/sound/speech-dispatcher/pspec.xml index a1079e6535..587e8963ca 100644 --- a/multimedia/sound/speech-dispatcher/pspec.xml +++ b/multimedia/sound/speech-dispatcher/pspec.xml @@ -3,7 +3,7 @@ speech-dispatcher - http://www.freebsoft.org/speechd + https://freebsoft.org/speechd PisiLinux Community admins@pisilinux.org @@ -15,7 +15,7 @@ library speech dispatcher: common interface to speech synthesis Speech Dispatcher is a device independent layer for speech synthesis that provides a common easy to use interface for both client applications (programs that want to speak) and for software synthesizers (programs actually able to convert text to speech). - https://devel.freebsoft.org/pub/projects/speechd/speech-dispatcher-0.8.6.tar.gz + https://github.com/brailcom/speechd/releases/download/0.9.0/speech-dispatcher-0.9.0.tar.gz glib2-devel libsndfile-devel @@ -25,12 +25,16 @@ intltool gettext-devel texinfo + help2man pkgconfig libtool-ltdl libao-devel alsa-lib-devel pulseaudio-libs-devel + + 0001-Remove-pyxdg-dependency.patch + @@ -85,6 +89,13 @@ + + 2019-03-23 + 0.9.0 + Version bump. + Pisi Linux Community + admin@pisilinux.org + 2018-09-21 0.8.6