index
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/copyleft/gpl.txt.
|
||||
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
|
||||
def setup():
|
||||
shelltools.system("sed -i 's/cicero //g' configure.ac")
|
||||
shelltools.system("sed -i 's/sd_cicero//g' src/modules/Makefile.am")
|
||||
|
||||
autotools.autoreconf("-i")
|
||||
autotools.configure("--disable-static \
|
||||
--enable-shared \
|
||||
--without-flite \
|
||||
--with-alsa \
|
||||
--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 ")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
#autotools.install()
|
||||
|
||||
# Conflicts with openTTS
|
||||
pisitools.remove("/usr/share/info/ssip.info")
|
||||
|
||||
# Set executable bit
|
||||
shelltools.chmod("%s/usr/lib/python3.6/site-packages/speechd/_test.py" % get.installDIR(), 0755)
|
||||
|
||||
# Create log directory, it should be world unreadable
|
||||
pisitools.dodir("/var/log/speech-dispatcher")
|
||||
shelltools.chmod("%s/var/log/speech-dispatcher" % get.installDIR(), 0700)
|
||||
|
||||
pisitools.dodoc("AUTHORS", "COPYING*", "README*")
|
||||
@@ -0,0 +1,45 @@
|
||||
From 5ede80b0713c75b21925203c3ef389c86cb69e6d Mon Sep 17 00:00:00 2001
|
||||
From: Bastien Nocera <hadess@hadess.net>
|
||||
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
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Speech-Dispatcher an high-level device independent layer for speech synthesis.
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/speech-dispatcher -d
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,138 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>speech-dispatcher</Name>
|
||||
<Homepage>https://freebsoft.org/speechd</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2+</License>
|
||||
<License>GPLv2</License>
|
||||
<IsA>service</IsA>
|
||||
<IsA>app:console</IsA>
|
||||
<IsA>library</IsA>
|
||||
<Summary>speech dispatcher: common interface to speech synthesis</Summary>
|
||||
<Description>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).</Description>
|
||||
<Archive sha1sum="e8a84edbbf9a46de4547f505db597a977871dda0" type="targz">https://github.com/brailcom/speechd/releases/download/0.9.0/speech-dispatcher-0.9.0.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>glib2-devel</Dependency>
|
||||
<Dependency>libsndfile-devel</Dependency>
|
||||
<Dependency>dotconf-devel</Dependency>
|
||||
<Dependency>espeak-devel</Dependency>
|
||||
<Dependency>python3-devel</Dependency>
|
||||
<Dependency>intltool</Dependency>
|
||||
<Dependency>gettext-devel</Dependency>
|
||||
<Dependency>texinfo</Dependency>
|
||||
<Dependency>help2man</Dependency>
|
||||
<Dependency>pkgconfig</Dependency>
|
||||
<Dependency>libtool-ltdl</Dependency>
|
||||
<Dependency>libao-devel</Dependency>
|
||||
<Dependency>alsa-lib-devel</Dependency>
|
||||
<Dependency>pulseaudio-libs-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">0001-Remove-pyxdg-dependency.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>speech-dispatcher</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>glib2</Dependency>
|
||||
<Dependency>libao</Dependency>
|
||||
<Dependency>espeak</Dependency>
|
||||
<Dependency>dotconf</Dependency>
|
||||
<Dependency>alsa-lib</Dependency>
|
||||
<Dependency>libsndfile</Dependency>
|
||||
<Dependency>libtool-ltdl</Dependency>
|
||||
<Dependency>pulseaudio-libs</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="config">/etc/speech-dispatcher</Path>
|
||||
<Path fileType="data">/var/log/speech-dispatcher</Path>
|
||||
<Path fileType="data">/usr/share/speech-dispatcher</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/lib/systemd/system/speech-dispatcherd.service">speech-dispatcherd.service</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python3-speech-dispatcher</Name>
|
||||
<Summary>Python3 bindings for speech-dispatcher</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">speech-dispatcher</Dependency>
|
||||
<Dependency>python3</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Replaces>
|
||||
<Package>python-speech-dispatcher</Package>
|
||||
</Replaces>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/python3.*</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>speech-dispatcher-devel</Name>
|
||||
<Summary>Development headers for speech-dispatcher</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">speech-dispatcher</Dependency>
|
||||
<Dependency>glib2-devel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="header">/usr/lib/pkgconfig/</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="6">
|
||||
<Date>2019-03-25</Date>
|
||||
<Version>0.9.0</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2018-09-21</Date>
|
||||
<Version>0.8.6</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Ayhan Yalçınsoy</Name>
|
||||
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2017-03-19</Date>
|
||||
<Version>0.8.6</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Ayhan Yalçınsoy</Name>
|
||||
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2016-12-30</Date>
|
||||
<Version>0.8.6</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2016-06-09</Date>
|
||||
<Version>0.8.3</Version>
|
||||
<Comment>Release Bump</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2016-05-08</Date>
|
||||
<Version>0.8.3</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>speech-dispatcher</Name>
|
||||
<Summary xml:lang="tr">Konuşma sentezi ortak arayüzü</Summary>
|
||||
<Description xml:lang="tr">Speech Dispatcher, seslendirme yapılmak istenen veya konuşma sentezi yapan uygulamalar için ortak ve kolay kullanımlı bir arayüz sunan, cihaz-bağımsız bir katmandır.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>python-speech-dispatcher</Name>
|
||||
<Summary xml:lang="tr">speech-dispatcher için Python bağlayıcıları</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>speech-dispatcher-devel</Name>
|
||||
<Summary xml:lang="tr">speech-dispatcher için geliştirme başlıkları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user