diff options
Diffstat (limited to 'app-accessibility/speech-tools')
14 files changed, 607 insertions, 0 deletions
diff --git a/app-accessibility/speech-tools/Manifest b/app-accessibility/speech-tools/Manifest new file mode 100644 index 00000000..74e0e0f3 --- /dev/null +++ b/app-accessibility/speech-tools/Manifest @@ -0,0 +1 @@ +DIST speech_tools-2.5.0-release.tar.gz 1328624 BLAKE2B 445dd5a5e39c02352a850fd92de5b3852ae382a4bd013dccb3fdd46b0b22ce0bd10d089f9e860ae3d3e73a489b20b7c8b78335e57a49e40ae01b0f4997d55315 SHA512 013540a5252efb57633f442143a51bc87aac719dfb46c8f47e750322d19dac9b504f55125462a2ee74a6b0bd2661a63a1fc73a8c3c6d2886e38b136a80447fd7 diff --git a/app-accessibility/speech-tools/files/speech-tools-2.1-underlinking.patch b/app-accessibility/speech-tools/files/speech-tools-2.1-underlinking.patch new file mode 100644 index 00000000..35011735 --- /dev/null +++ b/app-accessibility/speech-tools/files/speech-tools-2.1-underlinking.patch @@ -0,0 +1,11 @@ +--- speech_tools.orig/config/systems/GentooLinux.mak.old 2013-11-24 01:49:44.000000000 +0200 ++++ speech_tools/config/systems/GentooLinux.mak 2013-11-24 13:04:14.327758435 +0200 +@@ -38,6 +38,7 @@ + ########################################################################### + + MANDIR=$(INSTALL_PREFIX)/share/man ++GENTOO_ALSA_LIBS=$(shell pkg-config --libs alsa) + GENTOO_CURSES_LIBS=$(shell pkg-config --libs ncurses) + # Gentoo does not use termcap +-OS_LIBS = $(GENTOO_CURSES_LIBS) $(LDFLAGS) -ldl ++OS_LIBS = $(GENTOO_ALSA_LIBS) $(GENTOO_CURSES_LIBS) $(LDFLAGS) -ldl diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-GentooLinux.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-GentooLinux.patch new file mode 100644 index 00000000..4e9cab1f --- /dev/null +++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-GentooLinux.patch @@ -0,0 +1,124 @@ +diff --git speech_tools-orig/config/systems/GentooLinux.mak speech_tools/config/systems/GentooLinux.mak +--- /dev/null ++++ speech_tools/config/systems/GentooLinux.mak +@@ -0,0 +1,42 @@ ++ ########################################################################### ++ ## ## ++ ## Centre for Speech Technology Research ## ++ ## University of Edinburgh, UK ## ++ ## Copyright (c) 1996 ## ++ ## All Rights Reserved. ## ++ ## ## ++ ## Permission is hereby granted, free of charge, to use and distribute ## ++ ## this software and its documentation without restriction, including ## ++ ## without limitation the rights to use, copy, modify, merge, publish, ## ++ ## distribute, sublicense, and/or sell copies of this work, and to ## ++ ## permit persons to whom this work is furnished to do so, subject to ## ++ ## the following conditions: ## ++ ## 1. The code must retain the above copyright notice, this list of ## ++ ## conditions and the following disclaimer. ## ++ ## 2. Any modifications must be clearly marked as such. ## ++ ## 3. Original authors' names are not deleted. ## ++ ## 4. The authors' names are not used to endorse or promote products ## ++ ## derived from this software without specific prior written ## ++ ## permission. ## ++ ## ## ++ ## THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ## ++ ## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ## ++ ## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ## ++ ## SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ## ++ ## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ## ++ ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ## ++ ## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ## ++ ## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ## ++ ## THIS SOFTWARE. ## ++ ## ## ++ ########################################################################### ++ ## ## ++ ## Author: William Hubbs <williamh@gentoo.org> ## ++ ## -------------------------------------------------------------------- ## ++ ## Settings for Gentoo Linux distributions. ## ++ ## ## ++ ########################################################################### ++ ++MANDIR=$(INSTALL_PREFIX)/share/man ++# Gentoo does not use termcap ++OS_LIBS = $(LDFLAGS) -ldl -lncurses +diff -pur speech_tools-orig/config/systems/Makefile speech_tools/config/systems/Makefile +--- speech_tools-orig/config/systems/Makefile 2010-04-19 21:18:26.000000000 +0200 ++++ speech_tools/config/systems/Makefile 2018-03-14 07:42:46.502929681 +0100 +@@ -41,6 +41,7 @@ SYSTEMS = \ + Linux.mak \ + RedHatLinux.mak \ + DebianGNULinux.mak \ ++ GentooLinux.mak \ + alpha_Linux.mak \ + alpha_OSF1V4.0.mak \ + alpha_RedHatLinux.mak \ +@@ -96,6 +97,7 @@ SYSTEMS = \ + sparc_SunOS5.mak \ + sparc_unknown.mak \ + unknown_DebianGNULinux.mak \ ++ unknown_GentooLinux.mak \ + unknown_Linux.mak \ + unknown_RedHatLinux.mak \ + power_macintosh_Darwin.mak \ +diff -pur speech_tools-orig/config/systems/unknown_GentooLinux.mak speech_tools/config/systems/unknown_GentooLinux.mak +--- /dev/null ++++ speech_tools/config/systems/unknown_GentooLinux.mak +@@ -0,0 +1,41 @@ ++ ########################################################################### ++ ## ## ++ ## Centre for Speech Technology Research ## ++ ## University of Edinburgh, UK ## ++ ## Copyright (c) 1996 ## ++ ## All Rights Reserved. ## ++ ## ## ++ ## Permission is hereby granted, free of charge, to use and distribute ## ++ ## this software and its documentation without restriction, including ## ++ ## without limitation the rights to use, copy, modify, merge, publish, ## ++ ## distribute, sublicense, and/or sell copies of this work, and to ## ++ ## permit persons to whom this work is furnished to do so, subject to ## ++ ## the following conditions: ## ++ ## 1. The code must retain the above copyright notice, this list of ## ++ ## conditions and the following disclaimer. ## ++ ## 2. Any modifications must be clearly marked as such. ## ++ ## 3. Original authors' names are not deleted. ## ++ ## 4. The authors' names are not used to endorse or promote products ## ++ ## derived from this software without specific prior written ## ++ ## permission. ## ++ ## ## ++ ## THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ## ++ ## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ## ++ ## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ## ++ ## SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ## ++ ## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ## ++ ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ## ++ ## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ## ++ ## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ## ++ ## THIS SOFTWARE. ## ++ ## ## ++ ########################################################################### ++ ## ## ++ ## Author: William Hubbs <williamh@gentoo.org> ## ++ ## -------------------------------------------------------------------- ## ++ ## Settings for Gentoo Linux distributions. ## ++ ## ## ++ ########################################################################### ++ ++ include $(EST)/config/systems/Linux.mak ++ include $(EST)/config/systems/GentooLinux.mak +diff -pur speech_tools-orig/config/system.sh speech_tools/config/system.sh +--- speech_tools-orig/config/system.sh 2002-12-27 22:20:14.000000000 +0100 ++++ speech_tools/config/system.sh 2018-03-14 07:42:46.502929681 +0100 +@@ -70,6 +70,10 @@ if [ "$OSTYPE" = Linux ] + then + OSTYPE=DebianGNULinux + OSREV=`cat /etc/debian_version` ++ elif [ -f "/etc/gentoo-release" ] ++ then ++ OSTYPE=GentooLinux ++ OSREV= + else + # Generic unknown GNU/Linux system. + OSTYPE=Linux diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-base_class.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-base_class.patch new file mode 100644 index 00000000..87b4a456 --- /dev/null +++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-base_class.patch @@ -0,0 +1,12 @@ +diff --git a/base_class/Makefile b/base_class/Makefile +index 7a5d802..d2deabc 100644 +--- a/base_class/Makefile ++++ b/base_class/Makefile +@@ -72,7 +72,3 @@ FILES = $(SRCS) EST_Pathname_win32.cc $(T) $(H)\ + ALL = .buildlib $(BUILD_DIRS) + + include $(TOP)/config/common_make_rules +- +-# Always compile with -O3 as its an important function +-rateconv.o: +- $(CXX_COMMAND) -O3 rateconv.cc -o rateconv.o diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-etcpath.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-etcpath.patch new file mode 100644 index 00000000..1730d669 --- /dev/null +++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-etcpath.patch @@ -0,0 +1,18 @@ +diff -pur speech_tools-orig/main/siod_main.cc speech_tools/main/siod_main.cc +--- speech_tools-orig/main/siod_main.cc 2013-10-15 00:13:51.000000000 +0200 ++++ speech_tools/main/siod_main.cc 2018-03-14 07:55:28.652641361 +0100 +@@ -222,10 +222,10 @@ static void siod_lisp_vars(void) + cons(flocons(subminor),NIL)))); + + EST_Pathname etcdircommon = est_libdir; +- etcdircommon += "etc"; ++ etcdircommon += "etc/"; + +- EST_Pathname etcdir = etcdircommon; +- etcdir += est_ostype; ++ EST_Pathname etcdir = {{HORRIBLELIBARCHKLUDGE}}; ++ etcdir += "festival/etc/"; + + // Modify my PATH to include these directories + siod_set_lval("etc-path",cons(rintern(etcdir), +Only in speech_tools/main: siod_main.cc.orig diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc42.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc42.patch new file mode 100644 index 00000000..173d3b9d --- /dev/null +++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc42.patch @@ -0,0 +1,81 @@ +diff --git a/config/compilers/Makefile b/config/compilers/Makefile +index 3d3d5bb..e21bf9b 100644 +--- a/config/compilers/Makefile ++++ b/config/compilers/Makefile +@@ -41,7 +41,7 @@ COMPILERS = gcc.mak gcc27.mak gcc28.mak gcc295.mak \ + egcs.mak gcc27emx.mak intel80.mak \ + suncc.mak suncc40.mak \ + jolt.mak jdk.mak jdk12.mak none.mak \ +- jikes.mak gcc296.mak gcc30.mak gcc31.mak gcc32.mak ++ jikes.mak gcc296.mak gcc30.mak gcc31.mak gcc32.mak gcc42.mak + + FILES = Makefile $(COMPILERS) gcc_defaults.mak suncc_defaults.mak jdk_defaults.mak jikes_defaults.mak + +diff --git a/config/compilers/gcc42.mak b/config/compilers/gcc42.mak +new file mode 100644 +index 0000000..3bbf897 +--- /dev/null ++++ b/config/compilers/gcc42.mak +@@ -0,0 +1,62 @@ ++ ########################################################################### ++ ## ## ++ ## Centre for Speech Technology Research ## ++ ## University of Edinburgh, UK ## ++ ## Copyright (c) 1999 ## ++ ## All Rights Reserved. ## ++ ## ## ++ ## Permission is hereby granted, free of charge, to use and distribute ## ++ ## this software and its documentation without restriction, including ## ++ ## without limitation the rights to use, copy, modify, merge, publish, ## ++ ## distribute, sublicense, and/or sell copies of this work, and to ## ++ ## permit persons to whom this work is furnished to do so, subject to ## ++ ## the following conditions: ## ++ ## 1. The code must retain the above copyright notice, this list of ## ++ ## conditions and the following disclaimer. ## ++ ## 2. Any modifications must be clearly marked as such. ## ++ ## 3. Original authors' names are not deleted. ## ++ ## 4. The authors' names are not used to endorse or promote products ## ++ ## derived from this software without specific prior written ## ++ ## permission. ## ++ ## ## ++ ## THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ## ++ ## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ## ++ ## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ## ++ ## SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ## ++ ## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ## ++ ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ## ++ ## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ## ++ ## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ## ++ ## THIS SOFTWARE. ## ++ ## ## ++ ########################################################################### ++ ## ## ++ ## Author: William Hubbs (williamh@gentoo.org) ## ++ ## Date: Sun Aug 25 2002 ## ++ ## -------------------------------------------------------------------- ## ++ ## Settings for GCC-4.2 ## ++ ## ## ++ ########################################################################### ++ ++include $(EST)/config/compilers/gcc_defaults.mak ++ ++ifndef GCC42 ++ GCC42 = gcc ++endif ++ ++CC= $(GCC42) ++CXX = g++ ++ ++COMPILER_DESC=gcc-4.[234] ++ ++SHARED_CCFLAGS = -fPIC ++SHARED_CXXFLAGS = -fPIC ++SHARED_LINKFLAGS = ++ ++ ifndef GCC_MAKE_SHARED_LIB ++ MAKE_SHARED_LIB = $(CXX) -shared -o XXX -Wl,-soname,YYY ++ else ++ MAKE_SHARED_LIB = $(GCC_MAKE_SHARED_LIB) ++ endif ++ ++STATIC_LINKFLAGS = -Dstatic diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc43-include.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc43-include.patch new file mode 100644 index 00000000..66c19a24 --- /dev/null +++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc43-include.patch @@ -0,0 +1,23 @@ +diff -pur speech_tools-orig/base_class/EST_TSimpleMatrix.cc speech_tools/base_class/EST_TSimpleMatrix.cc +--- speech_tools-orig/base_class/EST_TSimpleMatrix.cc 2013-04-13 14:51:56.000000000 +0200 ++++ speech_tools/base_class/EST_TSimpleMatrix.cc 2018-03-14 07:48:57.169248488 +0100 +@@ -42,6 +42,7 @@ + + #include "EST_TSimpleMatrix.h" + #include "EST_TVector.h" ++#include <cstring> + #include <fstream> + #include <iostream> + #include "EST_cutils.h" +diff -pur speech_tools-orig/base_class/EST_TSimpleVector.cc speech_tools/base_class/EST_TSimpleVector.cc +--- speech_tools-orig/base_class/EST_TSimpleVector.cc 2013-04-13 14:52:21.000000000 +0200 ++++ speech_tools/base_class/EST_TSimpleVector.cc 2018-03-14 07:48:57.169248488 +0100 +@@ -42,6 +42,7 @@ + + #include "EST_TSimpleVector.h" + #include "EST_matrix_support.h" ++#include <cstring> + #include <fstream> + #include "EST_cutils.h" + #include <string.h> +Only in speech_tools/base_class: EST_TSimpleVector.cc.orig diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-gentoo-config.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-gentoo-config.patch new file mode 100644 index 00000000..2c1cc147 --- /dev/null +++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-gentoo-config.patch @@ -0,0 +1,25 @@ +diff --git a/config/config.in b/config/config.in +index 8edebc8..53f71d6 100644 +--- a/config/config.in ++++ b/config/config.in +@@ -56,16 +56,16 @@ CONFIGURATION = + ## + ## OPTIMISE=4 will turn off DEBUG + +-OPTIMISE=3 ++OPTIMISE=0 + WARN=1 + # VERBOSE=1 +-#DEBUG=1 ++DEBUG=0 + # PROFILE=gprof +-#SHARED=2 ++SHARED=2 + + ## Directory specific selections which override the above + +-OPTIMISE_sigpr = 3 ++#OPTIMISE_sigpr = 3 + + ########################################################################### + ## Feature selection. diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-ldflags-fix.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-ldflags-fix.patch new file mode 100644 index 00000000..3fb59d7a --- /dev/null +++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-ldflags-fix.patch @@ -0,0 +1,12 @@ +diff -pur speech_tools-orig/config/rules/defaults.mak speech_tools/config/rules/defaults.mak +--- speech_tools-orig/config/rules/defaults.mak 2001-04-04 13:55:32.000000000 +0200 ++++ speech_tools/config/rules/defaults.mak 2018-03-14 07:57:50.330139925 +0100 +@@ -196,6 +196,6 @@ endif + ## Link a program (not including libraries) + + ifndef LINK_COMMAND +- LINK_COMMAND = $(CXX) $(LINKFLAGS) $(TEMPLATES) ++ LINK_COMMAND = $(CXX) $(LINKFLAGS) $(OS_LIBS) $(TEMPLATES) + endif + +Only in speech_tools/config/rules: defaults.mak.orig diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-mixed-cxxflag-cflag-fix.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-mixed-cxxflag-cflag-fix.patch new file mode 100644 index 00000000..796fdf9c --- /dev/null +++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-mixed-cxxflag-cflag-fix.patch @@ -0,0 +1,12 @@ +diff -uNr speech_tools.orig/config/compilers/gcc_defaults.mak speech_tools/config/compilers/gcc_defaults.mak +--- speech_tools.orig/config/compilers/gcc_defaults.mak 2012-11-28 18:33:27.000000000 -0500 ++++ speech_tools/config/compilers/gcc_defaults.mak 2012-11-28 18:33:46.000000000 -0500 +@@ -48,7 +48,7 @@ + COMPILER_VERSION_COMMAND=$(CXX) -v 2>&1 | tail -1 | sed -e 's/^....//' + + CFLAGS = $(GCC_SYSTEM_OPTIONS) $(CC_OTHER_FLAGS) +-CXXFLAGS = $(GCC_SYSTEM_OPTIONS) -fno-implicit-templates $(CC_OTHER_FLAGS) $(OMP_OPTS) $(OMP_DEFS) ++CXXFLAGS = $(GCC_SYSTEM_OPTIONS) -fno-implicit-templates $(CXX_OTHER_FLAGS) $(OMP_OPTS) $(OMP_DEFS) + + DEBUG_CCFLAGS = -g + DEBUG_CXXFLAGS = -g diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-ncurses-tinfo.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-ncurses-tinfo.patch new file mode 100644 index 00000000..8fd110aa --- /dev/null +++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-ncurses-tinfo.patch @@ -0,0 +1,11 @@ +diff -uNr speech_tools.orig/config/systems/GentooLinux.mak speech_tools/config/systems/GentooLinux.mak +--- speech_tools.orig/config/systems/GentooLinux.mak 2013-08-06 22:35:28.000000000 -0400 ++++ speech_tools/config/systems/GentooLinux.mak 2013-08-06 22:36:18.000000000 -0400 +@@ -38,5 +38,6 @@ + ########################################################################### + + MANDIR=$(INSTALL_PREFIX)/share/man ++GENTOO_CURSES_LIBS=$(shell pkg-config --libs ncurses) + # Gentoo does not use termcap +-OS_LIBS = $(LDFLAGS) -ldl -lncurses ++OS_LIBS = $(GENTOO_CURSES_LIBS) $(LDFLAGS) -ldl diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-remove-shared-refs.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-remove-shared-refs.patch new file mode 100644 index 00000000..0900a8fc --- /dev/null +++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-remove-shared-refs.patch @@ -0,0 +1,95 @@ +From 067e73c8563247bc317ba5e632d5a56ccdf0de0c Mon Sep 17 00:00:00 2001 +From: William Hubbs <w.d.hubbs@gmail.com> +Date: Fri, 17 Jul 2009 01:14:33 -0500 +Subject: [PATCH 8/9] remove shared setup references + +--- + scripts/build_docbook_index.prl | 2 -- + scripts/cxx_to_docbook.prl | 2 -- + scripts/pm.prl | 2 -- + scripts/raw_to_xgraph.prl | 2 -- + scripts/resynth.sh | 2 -- + scripts/tex_to_images.prl | 2 -- + 6 files changed, 0 insertions(+), 12 deletions(-) + +diff --git a/scripts/build_docbook_index.prl b/scripts/build_docbook_index.prl +index f07a234..728324d 100644 +--- a/scripts/build_docbook_index.prl ++++ b/scripts/build_docbook_index.prl +@@ -35,8 +35,6 @@ sub useage + END + } + +-#__SHARED_SETUP__ +- + $title=''; + $mode='debug'; + $verbose=0; +diff --git a/scripts/cxx_to_docbook.prl b/scripts/cxx_to_docbook.prl +index 9bde698..a8f61c4 100644 +--- a/scripts/cxx_to_docbook.prl ++++ b/scripts/cxx_to_docbook.prl +@@ -37,8 +37,6 @@ sub useage + END + } + +-#__SHARED_SETUP__ +- + $level=0; + $title=undef; + $chapter='chapter'; +diff --git a/scripts/pm.prl b/scripts/pm.prl +index c2be12a..31bb512 100755 +--- a/scripts/pm.prl ++++ b/scripts/pm.prl +@@ -56,8 +56,6 @@ sub useage + END + } + +-#__SHARED_SETUP__ +- + while ($#ARGV>=0) + { + if ($ARGV[0] eq "-f") +diff --git a/scripts/raw_to_xgraph.prl b/scripts/raw_to_xgraph.prl +index 8924981..f280ecf 100644 +--- a/scripts/raw_to_xgraph.prl ++++ b/scripts/raw_to_xgraph.prl +@@ -56,8 +56,6 @@ Convert raw sample data into something xgraph can plot. + END + } + +-#__SHARED_SETUP__ +- + $stream = STDIN; + $sample_rate = 1; + +diff --git a/scripts/resynth.sh b/scripts/resynth.sh +index 0cdc63d..f978fc8 100755 +--- a/scripts/resynth.sh ++++ b/scripts/resynth.sh +@@ -63,8 +63,6 @@ EOF + exit $1 + } + +-#__SHARED_SETUP__ +- + invert=false + voiced='' + pre=0 +diff --git a/scripts/tex_to_images.prl b/scripts/tex_to_images.prl +index 08cb604..6799428 100644 +--- a/scripts/tex_to_images.prl ++++ b/scripts/tex_to_images.prl +@@ -79,8 +79,6 @@ END + exit($_[0]); + } + +-#__SHARED_SETUP__ +- + $out_pattern="image_NNN.FFF"; + $scale=3; + $over=2; +-- +1.6.3.3 + diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-sharedlib.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-sharedlib.patch new file mode 100644 index 00000000..ec3a38dd --- /dev/null +++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-sharedlib.patch @@ -0,0 +1,52 @@ +diff --git a/config/rules/defaults.mak b/config/rules/defaults.mak +index aca1573..cb3fcba 100644 +--- a/config/rules/defaults.mak ++++ b/config/rules/defaults.mak +@@ -69,15 +69,21 @@ ifdef N + MADE_FROM_ABOVE:=$(N) + endif + ++ifneq ($(SHARED),0) ++ LIBTYPE=so ++else ++ LIBTYPE=a ++endif ++ + ifndef PROJECT_LIBDEPS +- PROJECT_LIBDEPS = $(foreach l,$(PROJECT_LIBRARIES),$(PROJECT_LIBRARY_DIR_$(l))/lib$(l).a) ++ PROJECT_LIBDEPS = $(foreach l,$(PROJECT_LIBRARIES),$(PROJECT_LIBRARY_DIR_$(l))/lib$(l).$(LIBTYPE)) + endif + ifndef PROJECT_LIBS + PROJECT_LIBS = $(foreach l,$(PROJECT_LIBRARIES),-L$(PROJECT_LIBRARY_DIR_$(l)) -l$(l)) + endif + + ifndef REQUIRED_LIBDEPS +- REQUIRED_LIBDEPS = $(foreach l,$(REQUIRED_LIBRARIES),$(REQUIRED_LIBRARY_DIR_$(l))/lib$(l).a) ++ REQUIRED_LIBDEPS = $(foreach l,$(REQUIRED_LIBRARIES),$(REQUIRED_LIBRARY_DIR_$(l))/lib$(l).$(LIBTYPE)) + endif + ifndef REQUIRED_LIBS + REQUIRED_LIBS = $(foreach l,$(REQUIRED_LIBRARIES),-L$(REQUIRED_LIBRARY_DIR_$(l)) -l$(l)) +diff --git a/config/rules/library.mak b/config/rules/library.mak +index 0181988..2038239 100644 +--- a/config/rules/library.mak ++++ b/config/rules/library.mak +@@ -103,14 +103,14 @@ endif + ########################################################################### + + lib%.so : lib%.a +- @echo Make Shared Library $* ++ @echo Make Shared Library $(*F) + @if [ ! -d shared_space ] ; then mkdir shared_space ; else $(RM) -f shared_space/*.o ; fi + @(cd shared_space ; $(AR) x ../$< ) +- @echo Link Shared Library $* +- if [ -n "$(PROJECT_LIBRARY_NEEDS_SYSLIBS_$*)" ] ; then libs='$(JAVA_PROJECT_LIBS)' ; fi ;\ +- $(subst XXX,$@.$(PROJECT_LIBRARY_VERSION_$*),$(MAKE_SHARED_LIB)) shared_space/*.o $(PROJECT_LIBRARY_USES_$*:%=-L. -l%) $$libs ++ @echo Link Shared Library $(*F) ++ if [ -n "$(PROJECT_LIBRARY_NEEDS_SYSLIBS_$(*F))" ] ; then libs='$(JAVA_PROJECT_LIBS)' ; fi ;\ ++ $(subst XXX,$@.$(PROJECT_LIBRARY_VERSION_$(*F)),$(subst YYY,$(@F).$(PROJECT_LIBRARY_VERSION_$(*F)),$(MAKE_SHARED_LIB))) shared_space/*.o $(PROJECT_LIBRARY_USES_$(*F):%=-L. -l%) $$libs + @$(RM) -f shared_space/*.o $@ +- @ln -s $@.$(PROJECT_LIBRARY_VERSION_$*) $@ ++ @ln -s $(@F).$(PROJECT_LIBRARY_VERSION_$(*F)) $@ + + ########################################################################### + ## ## diff --git a/app-accessibility/speech-tools/speech-tools-2.5.ebuild b/app-accessibility/speech-tools/speech-tools-2.5.ebuild new file mode 100644 index 00000000..618456e8 --- /dev/null +++ b/app-accessibility/speech-tools/speech-tools-2.5.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2017 Gentoo Foundation +# Copyright 2020 The Trinity Desktop Project +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit flag-o-matic toolchain-funcs + +# Don't use Gentoo mirrors +RESTRICT="mirror" + +MY_P="${P/speech-/speech_}" +MY_P="${MY_P}.0" + +DESCRIPTION="Speech tools for Festival Text to Speech engine" +HOMEPAGE="http://www.festvox.org" +SRC_URI="http://www.festvox.org/packed/festival/${PV}/${MY_P}-release.tar.gz" + +LICENSE="FESTIVAL HPND BSD rc regexp-UofT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="nas X" + +RDEPEND=" + nas? ( media-libs/nas ) + X? ( x11-libs/libX11 + x11-libs/libXt ) + media-libs/alsa-lib + sys-libs/ncurses:0= +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +S="${WORKDIR}/speech_tools" + +src_prepare() { + # Old patchset, unrolled. + eapply "${FILESDIR}/${P}-all-gcc42.patch" + eapply "${FILESDIR}/${P}-all-GentooLinux.patch" + eapply "${FILESDIR}/${P}-all-sharedlib.patch" + eapply "${FILESDIR}/${P}-all-gcc43-include.patch" + eapply "${FILESDIR}/${P}-all-remove-shared-refs.patch" + eapply "${FILESDIR}/${P}-all-base_class.patch" + eapply "${FILESDIR}/${P}-all-etcpath.patch" + eapply "${FILESDIR}/${P}-all-gentoo-config.patch" + eapply "${FILESDIR}/${P}-all-ldflags-fix.patch" + eapply "${FILESDIR}/${P}-all-mixed-cxxflag-cflag-fix.patch" + eapply "${FILESDIR}/${P}-all-ncurses-tinfo.patch" + + sed -i -e 's,{{HORRIBLELIBARCHKLUDGE}},"/usr/$(get_libdir)",' \ + main/siod_main.cc || die + + # WRT Gentoo bug #309983 + sed -i -e "s:\(GCC_SYSTEM_OPTIONS =\).*:\1:" \ + "${S}"/config/systems/sparc_SunOS5.mak || die + + # Fix underlinking, Gentoo bug #493204 + eapply "${FILESDIR}/${PN}-2.1-underlinking.patch" + + eapply_user +} + +src_configure() { + local CONFIG=config/config.in + sed -i -e 's/@COMPILERTYPE@/gcc42/' ${CONFIG} || die + if use nas; then + sed -i -e "s/#.*\(INCLUDE_MODULES += NAS_AUDIO\)/\1/" \ + ${CONFIG} || die + fi + if ! use X; then + sed -i -e "s/-lX11 -lXt//" config/modules/esd_audio.mak || die + fi + econf +} + +src_compile() { + emake -j1 CC="$(tc-getCC)" CXX="$(tc-getCXX)" CXX_OTHER_FLAGS="${CXXFLAGS}" CC_OTHER_FLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + dolib.so lib/libest*.so* + + dodoc "${S}"/README.md + dodoc "${S}"/lib/cstrutt.dtd + + insinto /usr/share/doc/${PF} + doins -r lib/example_data + + insinto /usr/share/speech-tools + doins -r config base_class + + insinto /usr/share/speech-tools/lib + doins -r lib/siod + + cd include || die + insinto /usr/include/speech-tools + doins -r * + dosym ../../include/speech-tools /usr/share/speech-tools/include + + cd ../bin || die + for file in *; do + [ "${file}" = "Makefile" ] && continue + dobin ${file} + dstfile="${D}/usr/bin/${file}" + sed -i -e "s:${S}/testsuite/data:/usr/share/speech-tools/testsuite:g" \ + ${dstfile} || die + sed -i -e "s:${S}/bin:/usr/$(get_libdir)/speech-tools:g" \ + ${dstfile} || die + sed -i -e "s:${S}/main:/usr/$(get_libdir)/speech-tools:g" \ + ${dstfile} || die + + # This just changes LD_LIBRARY_PATH + sed -i -e "s:${S}/lib:/usr/$(get_libdir):g" ${dstfile} || die + done + + cd "${S}" || die + exeinto /usr/$(get_libdir)/speech-tools + for file in `find main -perm /111 -type f`; do + doexe ${file} + done + + #Remove /usr/bin/resynth as it is broken. See Gentoo bug #253556 + rm "${D}/usr/bin/resynth" || die + + # Remove bcat (only useful for testing on windows, see Gentoo bug #418301). + rm "${D}/usr/bin/bcat" || die + rm "${D}/usr/$(get_libdir)/speech-tools/bcat" || die +} |