espeak moved into main for pisi 2.0

This commit is contained in:
2016-01-24 15:59:56 +02:00
parent 656f99654a
commit cc652033fc
6 changed files with 247 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "espeak-%s-source" % get.srcVERSION()
def setup():
# Build against portaudio v19
shelltools.copy("src/portaudio19.h", "src/portaudio.h")
# Remove binary voice dictionaries, we'll build them
shelltools.system("rm -rf espeak-data/*_dict")
def build():
autotools.make("-C src CXXFLAGS='%s' CFLAGS='%s' LDFLAGS='%s'" % (get.CXXFLAGS(), get.CFLAGS(), get.LDFLAGS()))
shelltools.system("./compile-voices")
def install():
shelltools.cd("src")
autotools.rawInstall("DESTDIR=%s BINDIR=/usr/bin INCDIR=/usr/include/espeak LIBDIR=/usr/lib" % get.installDIR())
shelltools.cd("..")
pisitools.dodoc("ReadMe", "ChangeLog.txt", "License.txt")