From fd68d103d98a3035ac301d4d47ab3cbd0be9c429 Mon Sep 17 00:00:00 2001 From: "Vadim A. Misbakh-Soloviov" Date: Sat, 3 Jun 2017 03:36:23 +0700 Subject: svox: added; sphinx: dropped (buildsystem is crazy, release model is crazy, no submodules, ... Well, f*ck this shit until they`ll write normal buildsystem) --- app-accessibility/cmuclmtk/ChangeLog | 16 - app-accessibility/cmuclmtk/Manifest | 4 - app-accessibility/cmuclmtk/cmuclmtk-0.7.ebuild | 63 ---- app-accessibility/cmuclmtk/metadata.xml | 5 - app-accessibility/julius/Manifest | 8 +- app-accessibility/julius/julius-4.2.2.ebuild | 45 --- app-accessibility/julius/julius-4.3.1.ebuild | 41 +++ app-accessibility/pocketsphinx/ChangeLog | 16 - app-accessibility/pocketsphinx/Manifest | 1 - app-accessibility/pocketsphinx/metadata.xml | 5 - .../pocketsphinx/pocketsphinx-0.8.ebuild | 64 ---- app-accessibility/sphinx3/ChangeLog | 41 --- app-accessibility/sphinx3/Manifest | 1 - .../sphinx3/files/sphinx3-0.8_heap_fix.patch | 34 -- app-accessibility/sphinx3/metadata.xml | 5 - app-accessibility/sphinx3/sphinx3-0.8.ebuild | 63 ---- app-accessibility/sphinxbase/ChangeLog | 16 - app-accessibility/sphinxbase/Manifest | 1 - app-accessibility/sphinxbase/metadata.xml | 5 - app-accessibility/sphinxbase/sphinxbase-0.8.ebuild | 63 ---- app-accessibility/sphinxtrain/ChangeLog | 16 - app-accessibility/sphinxtrain/Manifest | 1 - app-accessibility/sphinxtrain/metadata.xml | 5 - .../sphinxtrain/sphinxtrain-1.0.8.ebuild | 63 ---- ...utoconf-building-of-library-using-libtool.patch | 123 +++++++ .../0002-gitignore-for-autotools-files.patch | 51 +++ ...onvert-text-to-.wav-using-svox-text-to-sp.patch | 399 +++++++++++++++++++++ .../svox/files/patches/0004-add-header-files.patch | 59 +++ .../files/patches/0005-Install-lang-files.patch | 32 ++ .../svox/files/patches/0006-Set-picolangdir.patch | 40 +++ .../svox/files/patches/0007-stdint-uintptr.patch | 48 +++ .../svox/files/patches/conditional/pipe.patch | 69 ++++ app-accessibility/svox/svox-9999.ebuild | 29 ++ profiles/categories | 3 + 34 files changed, 895 insertions(+), 540 deletions(-) delete mode 100644 app-accessibility/cmuclmtk/ChangeLog delete mode 100644 app-accessibility/cmuclmtk/Manifest delete mode 100644 app-accessibility/cmuclmtk/cmuclmtk-0.7.ebuild delete mode 100644 app-accessibility/cmuclmtk/metadata.xml delete mode 100644 app-accessibility/julius/julius-4.2.2.ebuild create mode 100644 app-accessibility/julius/julius-4.3.1.ebuild delete mode 100644 app-accessibility/pocketsphinx/ChangeLog delete mode 100644 app-accessibility/pocketsphinx/Manifest delete mode 100644 app-accessibility/pocketsphinx/metadata.xml delete mode 100644 app-accessibility/pocketsphinx/pocketsphinx-0.8.ebuild delete mode 100644 app-accessibility/sphinx3/ChangeLog delete mode 100644 app-accessibility/sphinx3/Manifest delete mode 100644 app-accessibility/sphinx3/files/sphinx3-0.8_heap_fix.patch delete mode 100644 app-accessibility/sphinx3/metadata.xml delete mode 100644 app-accessibility/sphinx3/sphinx3-0.8.ebuild delete mode 100644 app-accessibility/sphinxbase/ChangeLog delete mode 100644 app-accessibility/sphinxbase/Manifest delete mode 100644 app-accessibility/sphinxbase/metadata.xml delete mode 100644 app-accessibility/sphinxbase/sphinxbase-0.8.ebuild delete mode 100644 app-accessibility/sphinxtrain/ChangeLog delete mode 100644 app-accessibility/sphinxtrain/Manifest delete mode 100644 app-accessibility/sphinxtrain/metadata.xml delete mode 100644 app-accessibility/sphinxtrain/sphinxtrain-1.0.8.ebuild create mode 100644 app-accessibility/svox/files/patches/0001-autoconf-building-of-library-using-libtool.patch create mode 100644 app-accessibility/svox/files/patches/0002-gitignore-for-autotools-files.patch create mode 100644 app-accessibility/svox/files/patches/0003-pico2wave-Convert-text-to-.wav-using-svox-text-to-sp.patch create mode 100644 app-accessibility/svox/files/patches/0004-add-header-files.patch create mode 100644 app-accessibility/svox/files/patches/0005-Install-lang-files.patch create mode 100644 app-accessibility/svox/files/patches/0006-Set-picolangdir.patch create mode 100644 app-accessibility/svox/files/patches/0007-stdint-uintptr.patch create mode 100644 app-accessibility/svox/files/patches/conditional/pipe.patch create mode 100644 app-accessibility/svox/svox-9999.ebuild create mode 100644 profiles/categories diff --git a/app-accessibility/cmuclmtk/ChangeLog b/app-accessibility/cmuclmtk/ChangeLog deleted file mode 100644 index bed26ba..0000000 --- a/app-accessibility/cmuclmtk/ChangeLog +++ /dev/null @@ -1,16 +0,0 @@ -# ChangeLog for app-accessibility/sphinxbase -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinxbase/ChangeLog,v 1.3 2012/02/24 11:29:47 patrick Exp $ - - 24 Feb 2012; Patrick Lauer sphinxbase-0.7.ebuild: - Restricting pypy - - 12 Jan 2012; Michał Górny sphinxbase-0.7.ebuild: - Fix invalid use of autotools-utils.eclass. - -*sphinxbase-0.7 (17 Nov 2011) - - 17 Nov 2011; Jesus Rivero +sphinxbase-0.7.ebuild, - +metadata.xml: - Initial commit - diff --git a/app-accessibility/cmuclmtk/Manifest b/app-accessibility/cmuclmtk/Manifest deleted file mode 100644 index 9f6e8ba..0000000 --- a/app-accessibility/cmuclmtk/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST sphinxbase-0.7.tar.gz 3291922 SHA256 389cb99a545f7d615a2b3bc3f7362a490ca45fc4dc440140ae1d2a41f87773ec SHA512 c5cc4e60a43fdaabce8b75c89eaa5e3dc4a0ef1f4fc253a20da8098eea7f13cf1e344ce42ae8a70f34bce20547fc2c88858fc3ab62ce8386fed666dfa43e1109 WHIRLPOOL b1a2238595b371ffe4c9b48d7ab0b604be2adc1b4e3cab3f9a17c3e9c587cdfa5bfcb33e5c8e0fc9bf282873f7ab4fb3ee03551b2063c1398e51eefa83a0e15a -EBUILD sphinxbase-0.7.ebuild 1449 SHA256 57b1c727e1354b54bc373441ac1bf24128a16debb614c8e8745e09b590f328c5 SHA512 e33876bab2f97a8caab6195efbdafd42a2f6e99e88d984ecfb2269cc8277f9f9d77aba0efb142cf0f89e72575b775b99aa83bb15846b090b3b856cc10499fdc2 WHIRLPOOL dbb6ac60118b1b56ab99cdb7a2d32c90709d86f098cd5e117220d34e36201e3959990f6ac059da399874c47664dd70ad0b48597fe47121f5c7b51a1dce84980e -MISC ChangeLog 583 SHA256 99b3c67ee46887808ddeff5c482fbd5deb8cfa9f5bc3ba8e1c432da569edfc80 SHA512 6bae772821f8be72f3722135b6730480fca9b566caf5db3996dc7775f6405fe88129bdca9c83ae15182bc9052636fc6006d187109aa46b0408aabef00db29475 WHIRLPOOL eea1971cc53be581453b35588af336b8f295b4cd928d7b2502c87f8861b6222d50a53eba3238ef98500d0a57881ba41de26cb3bd9aa099d582ec69045ff65ffb -MISC metadata.xml 167 SHA256 acc2d68b15e57417767543ba061a4fa58d7382904217f0e7408ce94887509bce SHA512 3f87942cf2780bc16b22b25c38907b3dd0c1d9dd319b8117878921d93cfd047dbd0a663d70e48d4244b98dee58398d1d75dbe9612281226ceddcc866b3be0bb7 WHIRLPOOL 649c0441fb431848e59c09c006e1a97b9775577085affd2f4ff2aea9bb1e636093c1ad65cb2fc07a330babbb8505e5327e8f1d04dcf5b56f30b8a539364aee3d diff --git a/app-accessibility/cmuclmtk/cmuclmtk-0.7.ebuild b/app-accessibility/cmuclmtk/cmuclmtk-0.7.ebuild deleted file mode 100644 index 0fbc154..0000000 --- a/app-accessibility/cmuclmtk/cmuclmtk-0.7.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinxbase/sphinxbase-0.7.ebuild,v 1.3 2012/02/24 11:29:47 patrick Exp $ - -EAPI=3 -PYTHON_DEPEND="python? 2:2.6" -RESTRICT_PYTHON_ABIS="3* 2.7-pypy-*" -SUPPORT_PYTHON_ABIS="1" - -inherit autotools-utils python - -DESCRIPTION="Support library required by the Sphinx Speech Recognition Engine" -HOMEPAGE="http://cmusphinx.sourceforge.net/" -SRC_URI="mirror://sourceforge/cmusphinx/${P}.tar.gz" - -LICENSE="BSD as-is" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc lapack python static-libs" - -RDEPEND="lapack? ( virtual/lapack )" -DEPEND="${RDEPEND} - doc? ( >=app-doc/doxygen-1.4.7 )" - -# Due to generated Python setup.py. -AUTOTOOLS_IN_SOURCE_BUILD=1 - -src_configure() { - local myeconfargs=( - $( use_with lapack ) - # python modules are built through distutils - # so disable the ugly wrapper - --without-python - ) - - autotools-utils_src_configure -} - -src_compile() { - autotools-utils_src_compile - - if use python; then - python_copy_sources python - - building() { - emake PYTHON="$(PYTHON)" PYTHON_INCLUDEDIR="$(python_get_includedir)" PYTHON_LIBDIR="$(python_get_libdir)" - } - - python_execute_function -s --source-dir python building - fi -} - -src_install() { - autotools-utils_src_install - - if use python; then - python_execute_function -s --source-dir python -d - fi - - if use doc; then - dohtml doc/html/* - fi -} diff --git a/app-accessibility/cmuclmtk/metadata.xml b/app-accessibility/cmuclmtk/metadata.xml deleted file mode 100644 index 72d214a..0000000 --- a/app-accessibility/cmuclmtk/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - accessibility - diff --git a/app-accessibility/julius/Manifest b/app-accessibility/julius/Manifest index 60e3429..b5ccac2 100644 --- a/app-accessibility/julius/Manifest +++ b/app-accessibility/julius/Manifest @@ -1,7 +1 @@ -AUX julius-4.1-makefile.patch 10908 RMD160 d59ea21d9c0279bf28be2a03206dc5733fad338e SHA1 40df0f52c81433aac90bbe399cc1df3f11c58b63 SHA256 8fa76475548cde8133c398a6dbaccee3d0be2d797746adb6e2126ef709f9d467 -AUX julius-4.1-mkfacrash.patch 578 RMD160 7f44847081f4779c77106429d6f635ea82b3f1b6 SHA1 ed59e6accacfbe202024534331d2782d8c73b075 SHA256 9f596306b82478cd33c749760865165da2aacc3289b81fb0ea252b83625ba3bf -AUX julius-4.1-newParam.patch 3687 RMD160 353736266f7667ecae0aaa9c5bdb95d1c6701030 SHA1 a67e098bdbf9392c79a501a528a7bc057753e5c5 SHA256 c594e947b49555d53fe8c27f82df1cc7eda32882df706c34cf20e3a7810f8c23 -DIST julius-4.1.tar.gz 1133938 RMD160 bf7621c07147986ddd1dd446e28feeb3eae163db SHA1 7ec08930febc399ac6b220b6c8882f6d49339b29 SHA256 56e12b556946027962ba2706bf84286cac9ab417b79bcbf5b2b19cf31020f418 -EBUILD julius-4.1.ebuild 974 RMD160 ce8df57232d3b8e153fa6bd1a98131b590402ce2 SHA1 f725c858f9bfd1a005ea5413e90eaecc6e55f7ef SHA256 82ac92499fc189edbe42b20d496a38af7064b76b64081b48100815d4485cea6f -MISC ChangeLog 911 RMD160 d7a76ced1b7ee91ddfaef16d11ed5e078d601cd9 SHA1 6b1728fb93b0a1c4027459d8c7f78201b0e3aa6a SHA256 6b5ac6f248d3b6f5c0fa90f9274b7590acb0c0fbdf8d3f5f76f20916fdc873f8 -MISC metadata.xml 209 RMD160 184537d7a401571abe0e5cbf9258ba3947d19382 SHA1 f2ea13baedca19e24be6ed7c3e6b765f7ff67cba SHA256 b0f0595f625235a62d9d40753827ae160e42156371fd9568bd2779042517f5e8 +DIST julius-4.3.1.tar.gz 1761555 SHA256 4bf77c7b91f4bb0686c375c70bd4f2077e7de7db44f60716af9f3660f65a6253 SHA512 67dca6b1c9e2b18b08cd9ea2c7b1a751c3a26285d59de7e78bd709737c0c44ab8dc3cf78440bc5e603df6a7e7e881ee4cdb8aa10c829f20e4780ffda4b37619b WHIRLPOOL 5f5f411ca74894ca467d7388b764323be2168c525c09ce849466ae0dc33bc793b3584e1d3c06cfb9333cb0dbf0a087cbbfd11d8b8dc59c0c4d0b7b87cfb8869a diff --git a/app-accessibility/julius/julius-4.2.2.ebuild b/app-accessibility/julius/julius-4.2.2.ebuild deleted file mode 100644 index e248153..0000000 --- a/app-accessibility/julius/julius-4.2.2.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="1" - -inherit eutils - -DESCRIPTION="High-performance, two-pass large vocabulary continuous speech recognition" -HOMEPAGE="http://julius.sourceforge.jp/en_index.php" -SRC_URI="mirror://sourceforge.jp/${PN}/33146/${P}.tar.gz" - -LICENSE="julius" -SLOT="0" -KEYWORDS="~x86" -IUSE="" - -LANGS="ja" - -for LNG in ${LANGS}; do - IUSE="${IUSE} linguas_${LNG}" -done - -DEPEND=">=sys-libs/readline-4.1 - media-libs/alsa-lib - media-libs/libsndfile - sys-libs/zlib" -RDEPEND=${DEPEND} - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/julius-4.1-makefile.patch - epatch "${FILESDIR}"/julius-4.1-newParam.patch - epatch "${FILESDIR}"/julius-4.1-mkfacrash.patch -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - dodoc 00readme.txt Release.txt || die - - for LNG in ${LINGUAS}; do - dodoc 00readme-${LNG}.txt Release-${LNG}.txt || die - done -} diff --git a/app-accessibility/julius/julius-4.3.1.ebuild b/app-accessibility/julius/julius-4.3.1.ebuild new file mode 100644 index 0000000..898a2b4 --- /dev/null +++ b/app-accessibility/julius/julius-4.3.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MAGIC=60273 + +inherit eutils + +DESCRIPTION="High-performance, two-pass large vocabulary continuous speech recognition" +HOMEPAGE="http://julius.sourceforge.jp/en_index.php" +SRC_URI="mirror://sourceforge.jp/${PN}/${MAGIC}/${P}.tar.gz" + +LICENSE="julius" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +LANGS="ja" + +DOCS=( 00readme.txt Release.txt ) + +for LNG in ${LANGS}; do + IUSE="${IUSE} l10n_${LNG}" +done + +DEPEND=" + >=sys-libs/readline-4.1 + media-libs/alsa-lib + media-libs/libsndfile + sys-libs/zlib +" +RDEPEND=${DEPEND} + +src_install() { + local l + for l in ${LINGUAS}; do + DOCS+=( 00readme-${l}.txt Release-${l}.txt ) + done + default +} diff --git a/app-accessibility/pocketsphinx/ChangeLog b/app-accessibility/pocketsphinx/ChangeLog deleted file mode 100644 index bed26ba..0000000 --- a/app-accessibility/pocketsphinx/ChangeLog +++ /dev/null @@ -1,16 +0,0 @@ -# ChangeLog for app-accessibility/sphinxbase -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinxbase/ChangeLog,v 1.3 2012/02/24 11:29:47 patrick Exp $ - - 24 Feb 2012; Patrick Lauer sphinxbase-0.7.ebuild: - Restricting pypy - - 12 Jan 2012; Michał Górny sphinxbase-0.7.ebuild: - Fix invalid use of autotools-utils.eclass. - -*sphinxbase-0.7 (17 Nov 2011) - - 17 Nov 2011; Jesus Rivero +sphinxbase-0.7.ebuild, - +metadata.xml: - Initial commit - diff --git a/app-accessibility/pocketsphinx/Manifest b/app-accessibility/pocketsphinx/Manifest deleted file mode 100644 index cad3a57..0000000 --- a/app-accessibility/pocketsphinx/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pocketsphinx-0.8.tar.gz 23781837 SHA256 874c4c083d91c8ff26a2aec250b689e537912ff728923c141c4dac48662cce7a SHA512 b53ab8883ddbc2c66c6a6af1bac318f3cdfd5a495cb636f33eb649d42f28780b36c43dfd9a61f213d6a1b83f0fba6b114d44b38d9fa091acf62a8e529118e583 WHIRLPOOL 90078dea3bcfeca6f04fb058e9d9d42e505dc3919606ef6f392abaf91251421243a02d6892eafb1c8890ab430b6f87a81b7b0c1c5df73675a737923d384ce674 diff --git a/app-accessibility/pocketsphinx/metadata.xml b/app-accessibility/pocketsphinx/metadata.xml deleted file mode 100644 index 72d214a..0000000 --- a/app-accessibility/pocketsphinx/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - accessibility - diff --git a/app-accessibility/pocketsphinx/pocketsphinx-0.8.ebuild b/app-accessibility/pocketsphinx/pocketsphinx-0.8.ebuild deleted file mode 100644 index 60d532a..0000000 --- a/app-accessibility/pocketsphinx/pocketsphinx-0.8.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $ - -EAPI=5 -PYTHON_DEPEND="python? 2:2.6" -RESTRICT_PYTHON_ABIS="3* 2.7-pypy-*" -SUPPORT_PYTHON_ABIS="1" - -inherit autotools-utils python - -DESCRIPTION="Support library required by the Sphinx Speech Recognition Engine" -HOMEPAGE="http://cmusphinx.sourceforge.net/" -SRC_URI="mirror://sourceforge/cmusphinx/${P}.tar.gz" - -LICENSE="BSD as-is" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~armel ~mipsel" -IUSE="doc lapack python static-libs" - -RDEPEND="lapack? ( virtual/lapack )" -DEPEND="${RDEPEND} - app-accessibility/sphinxbase - doc? ( >=app-doc/doxygen-1.4.7 )" - -# Due to generated Python setup.py. -AUTOTOOLS_IN_SOURCE_BUILD=1 - -src_configure() { - local myeconfargs=( - $( use_with lapack ) - # python modules are built through distutils - # so disable the ugly wrapper - --without-python - ) - - autotools-utils_src_configure -} - -src_compile() { - autotools-utils_src_compile - - if use python; then - python_copy_sources python - - building() { - emake PYTHON="$(PYTHON)" PYTHON_INCLUDEDIR="$(python_get_includedir)" PYTHON_LIBDIR="$(python_get_libdir)" - } - - python_execute_function -s --source-dir python building - fi -} - -src_install() { - autotools-utils_src_install - - if use python; then - python_execute_function -s --source-dir python -d - fi - - if use doc; then - dohtml doc/html/* - fi -} diff --git a/app-accessibility/sphinx3/ChangeLog b/app-accessibility/sphinx3/ChangeLog deleted file mode 100644 index 8e78872..0000000 --- a/app-accessibility/sphinx3/ChangeLog +++ /dev/null @@ -1,41 +0,0 @@ -# ChangeLog for app-accessibility/sphinx3 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinx3/ChangeLog,v 1.9 2012/11/28 18:15:13 radhermit Exp $ - - 28 Nov 2012; Tim Harder sphinx3-0.6.3.ebuild, - sphinx3-0.8.ebuild: - Fix LICENSE (bug #445040 by ulm). - - 23 May 2012; Mike Frysinger sphinx3-0.8.ebuild: - Inherit eutils eclass for epatch. - - 26 Feb 2012; Patrick Lauer sphinx3-0.8.ebuild: - Restricting jython - - 12 Jan 2012; Michał Górny sphinx3-0.8.ebuild: - Fix invalid use of autotools-utils.eclass. - -*sphinx3-0.8 (17 Nov 2011) - - 17 Nov 2011; Jesus Rivero +sphinx3-0.8.ebuild, - +files/sphinx3-0.8_heap_fix.patch: - Version bump. Closes bug #344991 - - 01 Apr 2009; William Hubbs sphinx3-0.6.3.ebuild: - Stable on x86. - - 30 Sep 2006; William Hubbs -sphinx3-0.6.ebuild: - Removed an older, broken ebuild. - -*sphinx3-0.6.3 (30 Sep 2006) - - 30 Sep 2006; William Hubbs +sphinx3-0.6.3.ebuild: - version bump, also closes #145667. - -*sphinx3-0.6 (04 Jul 2006) - - 04 Jul 2006; Jon Hood +metadata.xml, - +sphinx3-0.6.ebuild: - Initial import, bug #129149 with help from Franklin Marmon - . - diff --git a/app-accessibility/sphinx3/Manifest b/app-accessibility/sphinx3/Manifest deleted file mode 100644 index cb8a44e..0000000 --- a/app-accessibility/sphinx3/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST sphinx3-0.8.tar.gz 25226326 SHA256 1cf76a086f9b509e35f7226df2e61b0a0bf8b0858b9676e5b18cfc47b2ea2741 SHA512 85b8e574e2f92a758c8c56ef11b873c49ef8a376e964f30a12d75850d4a0db56e3108eaea25fa5587675ef2ffa4531a13f0f182a85cc8e434c6bcee42058e050 WHIRLPOOL 0f3604b4fa320f59e4ee65b79c4a779c48f2822a944b28b85a740826244f5eb7adc072538919c97ebf4eb270660fbe6f5b30b55cc67ec6276358063cf340aa7b diff --git a/app-accessibility/sphinx3/files/sphinx3-0.8_heap_fix.patch b/app-accessibility/sphinx3/files/sphinx3-0.8_heap_fix.patch deleted file mode 100644 index b7b71d9..0000000 --- a/app-accessibility/sphinx3/files/sphinx3-0.8_heap_fix.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff -uNr sphinx3-0.8.orig/python/setup.py sphinx3-0.8/python/setup.py ---- sphinx3-0.8.orig/python/setup.py 2008-12-31 23:20:08.000000000 -0500 -+++ sphinx3-0.8/python/setup.py 2011-11-17 09:46:57.000000000 -0500 -@@ -8,15 +8,10 @@ - define_macros = [] - - module = Extension('_sphinx3', -- include_dirs = ['../../sphinxbase/include', -- '../include', -- '/usr/local/include/sphinxbase/', -- '/usr/local/include/sphinx3', -- ], -+ include_dirs = ['../include', -+ '@GENTOO_PORTAGE_EPREFIX@/usr/include/sphinxbase'], - define_macros = define_macros, -- library_dirs = ['../../sphinxbase/src/libsphinxbase/.libs', -- '../src/libs3decoder/.libs', -- '../../sphinxbase/lib/debug', -+ library_dirs = ['../src/libs3decoder/.libs', - '../lib/debug', - ], - libraries = ['sphinxbase', 's3decoder'], -diff -uNr sphinx3-0.8.orig/src/libs3decoder/libsearch/vithist.c sphinx3-0.8/src/libs3decoder/libsearch/vithist.c ---- sphinx3-0.8.orig/src/libs3decoder/libsearch/vithist.c 2008-12-31 13:27:56.000000000 -0500 -+++ sphinx3-0.8/src/libs3decoder/libsearch/vithist.c 2011-11-17 09:46:24.000000000 -0500 -@@ -647,7 +647,7 @@ - { - int32 se, fe, filler_done, th; - vithist_entry_t *ve; -- heap_t h; -+ heap_t *h; - s3wid_t *wid; - int32 i; - diff --git a/app-accessibility/sphinx3/metadata.xml b/app-accessibility/sphinx3/metadata.xml deleted file mode 100644 index b723de1..0000000 --- a/app-accessibility/sphinx3/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - -accessibility - diff --git a/app-accessibility/sphinx3/sphinx3-0.8.ebuild b/app-accessibility/sphinx3/sphinx3-0.8.ebuild deleted file mode 100644 index b0a6477..0000000 --- a/app-accessibility/sphinx3/sphinx3-0.8.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinx3/sphinx3-0.8.ebuild,v 1.5 2012/11/28 18:15:13 radhermit Exp $ - -EAPI=3 -PYTHON_DEPEND="python? 2:2.6" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.* *-jython" - -inherit autotools-utils prefix python eutils - -DESCRIPTION="CMU Speech Recognition engine" -HOMEPAGE="http://cmusphinx.sourceforge.net/" -SRC_URI="mirror://sourceforge/cmusphinx/${P}.tar.gz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc python static-libs" - -DEPEND=">=app-accessibility/sphinxbase-${PV}[static-libs?,python?]" -RDEPEND="${DEPEND}" - -# Due to generated Python setup.py. -AUTOTOOLS_IN_SOURCE_BUILD=1 - -src_prepare() { - epatch "${FILESDIR}/${P}_heap_fix.patch" - eprefixify 'python/setup.py' -} - -src_compile() { - autotools-utils_src_compile - - if use python; then - python_copy_sources python - - building() { - "$(PYTHON)" setup.py build - } - - python_execute_function -s --source-dir python building - fi -} - -src_install() { - local DOCS=( AUTHORS ChangeLog NEWS README ) - autotools-utils_src_install - - if use doc; then - cd doc - dohtml -r -x CVS s3* s3 *.html - fi - - if use python; then - installing() { - "$(PYTHON)" setup.py install \ - --install-lib="${D}/$(python_get_sitedir)" - } - - python_execute_function -s --source-dir python installing - fi -} diff --git a/app-accessibility/sphinxbase/ChangeLog b/app-accessibility/sphinxbase/ChangeLog deleted file mode 100644 index bed26ba..0000000 --- a/app-accessibility/sphinxbase/ChangeLog +++ /dev/null @@ -1,16 +0,0 @@ -# ChangeLog for app-accessibility/sphinxbase -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinxbase/ChangeLog,v 1.3 2012/02/24 11:29:47 patrick Exp $ - - 24 Feb 2012; Patrick Lauer sphinxbase-0.7.ebuild: - Restricting pypy - - 12 Jan 2012; Michał Górny sphinxbase-0.7.ebuild: - Fix invalid use of autotools-utils.eclass. - -*sphinxbase-0.7 (17 Nov 2011) - - 17 Nov 2011; Jesus Rivero +sphinxbase-0.7.ebuild, - +metadata.xml: - Initial commit - diff --git a/app-accessibility/sphinxbase/Manifest b/app-accessibility/sphinxbase/Manifest deleted file mode 100644 index 406639f..0000000 --- a/app-accessibility/sphinxbase/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST sphinxbase-0.8.tar.gz 3313197 SHA256 55708944872bab1015b8ae07b379bf463764f469163a8fd114cbb16c5e486ca8 SHA512 fdb13c07e591e868c395d5f8209ec389fb9d5a93d99104a00cb82382e84d320091ae7e74d53225706331d4959ab5e248fa622582a148bfdb6ab5c38470d1963c WHIRLPOOL df050d547a263954574902ce08d966a184d428ea5ec700128fde2fee5d78f948a5920e2b92540f052e4a1d6ac208b388350d7ad66c0548ee945f99ceab0f0a0c diff --git a/app-accessibility/sphinxbase/metadata.xml b/app-accessibility/sphinxbase/metadata.xml deleted file mode 100644 index 72d214a..0000000 --- a/app-accessibility/sphinxbase/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - accessibility - diff --git a/app-accessibility/sphinxbase/sphinxbase-0.8.ebuild b/app-accessibility/sphinxbase/sphinxbase-0.8.ebuild deleted file mode 100644 index 0fbc154..0000000 --- a/app-accessibility/sphinxbase/sphinxbase-0.8.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinxbase/sphinxbase-0.7.ebuild,v 1.3 2012/02/24 11:29:47 patrick Exp $ - -EAPI=3 -PYTHON_DEPEND="python? 2:2.6" -RESTRICT_PYTHON_ABIS="3* 2.7-pypy-*" -SUPPORT_PYTHON_ABIS="1" - -inherit autotools-utils python - -DESCRIPTION="Support library required by the Sphinx Speech Recognition Engine" -HOMEPAGE="http://cmusphinx.sourceforge.net/" -SRC_URI="mirror://sourceforge/cmusphinx/${P}.tar.gz" - -LICENSE="BSD as-is" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc lapack python static-libs" - -RDEPEND="lapack? ( virtual/lapack )" -DEPEND="${RDEPEND} - doc? ( >=app-doc/doxygen-1.4.7 )" - -# Due to generated Python setup.py. -AUTOTOOLS_IN_SOURCE_BUILD=1 - -src_configure() { - local myeconfargs=( - $( use_with lapack ) - # python modules are built through distutils - # so disable the ugly wrapper - --without-python - ) - - autotools-utils_src_configure -} - -src_compile() { - autotools-utils_src_compile - - if use python; then - python_copy_sources python - - building() { - emake PYTHON="$(PYTHON)" PYTHON_INCLUDEDIR="$(python_get_includedir)" PYTHON_LIBDIR="$(python_get_libdir)" - } - - python_execute_function -s --source-dir python building - fi -} - -src_install() { - autotools-utils_src_install - - if use python; then - python_execute_function -s --source-dir python -d - fi - - if use doc; then - dohtml doc/html/* - fi -} diff --git a/app-accessibility/sphinxtrain/ChangeLog b/app-accessibility/sphinxtrain/ChangeLog deleted file mode 100644 index bed26ba..0000000 --- a/app-accessibility/sphinxtrain/ChangeLog +++ /dev/null @@ -1,16 +0,0 @@ -# ChangeLog for app-accessibility/sphinxbase -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinxbase/ChangeLog,v 1.3 2012/02/24 11:29:47 patrick Exp $ - - 24 Feb 2012; Patrick Lauer sphinxbase-0.7.ebuild: - Restricting pypy - - 12 Jan 2012; Michał Górny sphinxbase-0.7.ebuild: - Fix invalid use of autotools-utils.eclass. - -*sphinxbase-0.7 (17 Nov 2011) - - 17 Nov 2011; Jesus Rivero +sphinxbase-0.7.ebuild, - +metadata.xml: - Initial commit - diff --git a/app-accessibility/sphinxtrain/Manifest b/app-accessibility/sphinxtrain/Manifest deleted file mode 100644 index 2a9f474..0000000 --- a/app-accessibility/sphinxtrain/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST sphinxtrain-1.0.8.tar.gz 8925803 SHA256 548e3e513ceaa1b2fd6fd7ed1724349e0a4bf7bdeb11be9c91787e6f2b865203 SHA512 465d2c4ade9acc7b49c1d975449c38ac01d5a3ff332f9841be66cd8ca9d2f0b68fd36cc8a46384c8b510042efa91c3887a080481e84f2d0deb9775a598835f2b WHIRLPOOL d9ccbe09d125579e15167fa625bb72c86e114f9c394e909488216ae2f4e6af4c7b968d469455b65c4aff2a41a7d97701ac290df2cbc6b0450c64c94b042ae94d diff --git a/app-accessibility/sphinxtrain/metadata.xml b/app-accessibility/sphinxtrain/metadata.xml deleted file mode 100644 index 72d214a..0000000 --- a/app-accessibility/sphinxtrain/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - accessibility - diff --git a/app-accessibility/sphinxtrain/sphinxtrain-1.0.8.ebuild b/app-accessibility/sphinxtrain/sphinxtrain-1.0.8.ebuild deleted file mode 100644 index 0fbc154..0000000 --- a/app-accessibility/sphinxtrain/sphinxtrain-1.0.8.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinxbase/sphinxbase-0.7.ebuild,v 1.3 2012/02/24 11:29:47 patrick Exp $ - -EAPI=3 -PYTHON_DEPEND="python? 2:2.6" -RESTRICT_PYTHON_ABIS="3* 2.7-pypy-*" -SUPPORT_PYTHON_ABIS="1" - -inherit autotools-utils python - -DESCRIPTION="Support library required by the Sphinx Speech Recognition Engine" -HOMEPAGE="http://cmusphinx.sourceforge.net/" -SRC_URI="mirror://sourceforge/cmusphinx/${P}.tar.gz" - -LICENSE="BSD as-is" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc lapack python static-libs" - -RDEPEND="lapack? ( virtual/lapack )" -DEPEND="${RDEPEND} - doc? ( >=app-doc/doxygen-1.4.7 )" - -# Due to generated Python setup.py. -AUTOTOOLS_IN_SOURCE_BUILD=1 - -src_configure() { - local myeconfargs=( - $( use_with lapack ) - # python modules are built through distutils - # so disable the ugly wrapper - --without-python - ) - - autotools-utils_src_configure -} - -src_compile() { - autotools-utils_src_compile - - if use python; then - python_copy_sources python - - building() { - emake PYTHON="$(PYTHON)" PYTHON_INCLUDEDIR="$(python_get_includedir)" PYTHON_LIBDIR="$(python_get_libdir)" - } - - python_execute_function -s --source-dir python building - fi -} - -src_install() { - autotools-utils_src_install - - if use python; then - python_execute_function -s --source-dir python -d - fi - - if use doc; then - dohtml doc/html/* - fi -} diff --git a/app-accessibility/svox/files/patches/0001-autoconf-building-of-library-using-libtool.patch b/app-accessibility/svox/files/patches/0001-autoconf-building-of-library-using-libtool.patch new file mode 100644 index 0000000..c8a6e27 --- /dev/null +++ b/app-accessibility/svox/files/patches/0001-autoconf-building-of-library-using-libtool.patch @@ -0,0 +1,123 @@ +From 9fe1aa475b2667446b081623abc5c6f6083a76e6 Mon Sep 17 00:00:00 2001 +From: Mathieu Parent +Date: Sat, 24 Oct 2009 17:03:37 +0200 +Subject: [PATCH 1/7] autoconf building of library (using libtool) + +--- + pico/Makefile.am | 36 ++++++++++++++++++++++++++++++++++++ + pico/autogen.sh | 36 ++++++++++++++++++++++++++++++++++++ + pico/configure.in | 16 ++++++++++++++++ + 3 files changed, 88 insertions(+), 0 deletions(-) + create mode 100644 pico/Makefile.am + create mode 100755 pico/autogen.sh + create mode 100644 pico/configure.in + +diff --git a/Makefile.am b/Makefile.am +new file mode 100644 +index 0000000..6d8a10c +--- /dev/null ++++ b/Makefile.am +@@ -0,0 +1,36 @@ ++## Makefile.am -- Process this file with automake to produce Makefile.in ++ ++ACLOCAL_AMFLAGS = -I m4 ++ ++lib_LTLIBRARIES = libttspico.la ++libttspico_la_SOURCES = \ ++ lib/picoacph.c \ ++ lib/picoapi.c \ ++ lib/picobase.c \ ++ lib/picocep.c \ ++ lib/picoctrl.c \ ++ lib/picodata.c \ ++ lib/picodbg.c \ ++ lib/picoextapi.c \ ++ lib/picofftsg.c \ ++ lib/picokdbg.c \ ++ lib/picokdt.c \ ++ lib/picokfst.c \ ++ lib/picoklex.c \ ++ lib/picoknow.c \ ++ lib/picokpdf.c \ ++ lib/picokpr.c \ ++ lib/picoktab.c \ ++ lib/picoos.c \ ++ lib/picopal.c \ ++ lib/picopam.c \ ++ lib/picopr.c \ ++ lib/picorsrc.c \ ++ lib/picosa.c \ ++ lib/picosig.c \ ++ lib/picosig2.c \ ++ lib/picospho.c \ ++ lib/picotok.c \ ++ lib/picotrns.c \ ++ lib/picowa.c ++ +diff --git a/autogen.sh b/autogen.sh +new file mode 100755 +index 0000000..a2f757c +--- /dev/null ++++ b/autogen.sh +@@ -0,0 +1,36 @@ ++#!/bin/sh ++ ++#created by aclocal ++rm -rf autom4te.cache ++rm -f aclocal.m4 ++ ++#created by libtoolize ++rm -rf m4 ++rm -f ltmain.sh ++ ++#created by autoconf ++rm -f configure ++ ++#created by automake ++rm -f install-sh missing depcomp Makefile.in config.guess config.sub ++ ++#created by ./configure ++rm -rf .deps ++rm -f Makefile config.log config.status libtool ++ ++if [ "$1" = "clean" ]; then ++ exit ++fi ++ ++IPATHS="-I lib" ++ ++aclocal $IPATHS ++libtoolize ++autoconf $IPATHS ++automake --add-missing ++ ++rm -rf autom4te.cache ++ ++echo "Now run ./configure and then make." ++exit 0 ++ +diff --git a/configure.ac b/configure.ac +new file mode 100644 +index 0000000..0afb56d +--- /dev/null ++++ b/configure.ac +@@ -0,0 +1,16 @@ ++dnl Process this file with autoconf to produce a configure script. ++ ++AC_PREREQ(2.59) ++ ++AC_INIT([svox], [1.0], [math.parent@gmail.com]) ++ ++AM_INIT_AUTOMAKE([1.9 foreign]) ++ ++AC_PROG_CC ++LT_INIT ++AC_PROG_LIBTOOL ++ ++AC_CONFIG_FILES([Makefile]) ++AC_OUTPUT ++ ++AC_CONFIG_MACRO_DIR([m4]) +-- +1.7.1 + diff --git a/app-accessibility/svox/files/patches/0002-gitignore-for-autotools-files.patch b/app-accessibility/svox/files/patches/0002-gitignore-for-autotools-files.patch new file mode 100644 index 0000000..f70368a --- /dev/null +++ b/app-accessibility/svox/files/patches/0002-gitignore-for-autotools-files.patch @@ -0,0 +1,51 @@ +From b56b0a4bdf3e11271caab744f532cb055c517b51 Mon Sep 17 00:00:00 2001 +From: Mathieu Parent +Date: Sat, 24 Oct 2009 17:12:42 +0200 +Subject: [PATCH 2/7] gitignore for autotools files + +--- + pico/.gitignore | 32 ++++++++++++++++++++++++++++++++ + 1 files changed, 32 insertions(+), 0 deletions(-) + create mode 100644 pico/.gitignore + +diff --git a/.gitignore b/.gitignore +new file mode 100644 +index 0000000..4235569 +--- /dev/null ++++ b/.gitignore +@@ -0,0 +1,32 @@ ++#created by aclocal ++autom4te.cache ++aclocal.m4 ++ ++#created by libtoolize ++m4 ++ltmain.sh ++ ++#created by autoconf ++configure ++ ++#created by automake ++install-sh ++missing ++depcomp ++Makefile.in ++config.guess ++config.sub ++ ++#created by ./configure ++.deps ++Makefile ++config.log ++config.status ++libtool ++ ++#created by make ++*.o ++*.lo ++.libs ++libttspico.la ++ +-- +1.7.1 + diff --git a/app-accessibility/svox/files/patches/0003-pico2wave-Convert-text-to-.wav-using-svox-text-to-sp.patch b/app-accessibility/svox/files/patches/0003-pico2wave-Convert-text-to-.wav-using-svox-text-to-sp.patch new file mode 100644 index 0000000..c2c1da9 --- /dev/null +++ b/app-accessibility/svox/files/patches/0003-pico2wave-Convert-text-to-.wav-using-svox-text-to-sp.patch @@ -0,0 +1,399 @@ +From 8bec80dccc9f4fe147a500486813f4e89a0d56d8 Mon Sep 17 00:00:00 2001 +From: Mathieu Parent +Date: Sun, 25 Oct 2009 15:19:01 +0100 +Subject: [PATCH 3/7] pico2wave: Convert text to .wav using svox text-to-speech system. + +--- + pico/.gitignore | 1 + + pico/Makefile.am | 7 + + pico/bin/pico2wave.c | 341 ++++++++++++++++++++++++++++++++++++++++++++++++++ + pico/configure.in | 3 + + 4 files changed, 352 insertions(+), 0 deletions(-) + create mode 100644 pico/bin/pico2wave.c + +diff --git a/.gitignore b/.gitignore +index 4235569..a110298 100644 +--- a/.gitignore ++++ b/.gitignore +@@ -29,4 +29,5 @@ libtool + *.lo + .libs + libttspico.la ++pico2wave + +diff --git a/Makefile.am b/Makefile.am +index 6d8a10c..0d9472d 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -34,3 +34,10 @@ libttspico_la_SOURCES = \ + lib/picotrns.c \ + lib/picowa.c + ++bin_PROGRAMS = pico2wave ++pico2wave_SOURCES = \ ++ bin/pico2wave.c ++pico2wave_LDADD = \ ++ libttspico.la -lm -lpopt ++pico2wave_CFLAGS = -Wall -I lib ++ +diff --git a/bin/pico2wave.c b/bin/pico2wave.c +new file mode 100644 +index 0000000..0c035a7 +--- /dev/null ++++ b/bin/pico2wave.c +@@ -0,0 +1,341 @@ ++/* pico2wave.c ++ ++ * Copyright (C) 2009 Mathieu Parent ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ * ++ * Convert text to .wav using svox text-to-speech system. ++ * ++ */ ++ ++ ++#include ++#include ++#include ++#include ++ ++#include ++#include ++#include ++ ++ ++/* adaptation layer defines */ ++#define PICO_MEM_SIZE 2500000 ++#define DummyLen 100000000 ++ ++/* string constants */ ++#define MAX_OUTBUF_SIZE 128 ++const char * PICO_LINGWARE_PATH = "./lang/"; ++const char * PICO_VOICE_NAME = "PicoVoice"; ++ ++/* supported voices ++ Pico does not seperately specify the voice and locale. */ ++const char * picoSupportedLangIso3[] = { "eng", "eng", "deu", "spa", "fra", "ita" }; ++const char * picoSupportedCountryIso3[] = { "USA", "GBR", "DEU", "ESP", "FRA", "ITA" }; ++const char * picoSupportedLang[] = { "en-US", "en-GB", "de-DE", "es-ES", "fr-FR", "it-IT" }; ++const char * picoInternalLang[] = { "en-US", "en-GB", "de-DE", "es-ES", "fr-FR", "it-IT" }; ++const char * picoInternalTaLingware[] = { "en-US_ta.bin", "en-GB_ta.bin", "de-DE_ta.bin", "es-ES_ta.bin", "fr-FR_ta.bin", "it-IT_ta.bin" }; ++const char * picoInternalSgLingware[] = { "en-US_lh0_sg.bin", "en-GB_kh0_sg.bin", "de-DE_gl0_sg.bin", "es-ES_zl0_sg.bin", "fr-FR_nk0_sg.bin", "it-IT_cm0_sg.bin" }; ++const char * picoInternalUtppLingware[] = { "en-US_utpp.bin", "en-GB_utpp.bin", "de-DE_utpp.bin", "es-ES_utpp.bin", "fr-FR_utpp.bin", "it-IT_utpp.bin" }; ++const int picoNumSupportedVocs = 6; ++ ++/* adapation layer global variables */ ++void * picoMemArea = NULL; ++pico_System picoSystem = NULL; ++pico_Resource picoTaResource = NULL; ++pico_Resource picoSgResource = NULL; ++pico_Resource picoUtppResource = NULL; ++pico_Engine picoEngine = NULL; ++pico_Char * picoTaFileName = NULL; ++pico_Char * picoSgFileName = NULL; ++pico_Char * picoUtppFileName = NULL; ++pico_Char * picoTaResourceName = NULL; ++pico_Char * picoSgResourceName = NULL; ++pico_Char * picoUtppResourceName = NULL; ++int picoSynthAbort = 0; ++ ++ ++int main(int argc, const char *argv[]) { ++ char * wavefile = NULL; ++ char * lang = "en-US"; ++ int langIndex = -1, langIndexTmp = -1; ++ char * text; ++ int8_t * buffer; ++ size_t bufferSize = 256; ++ ++ /* Parsing options */ ++ poptContext optCon; /* context for parsing command-line options */ ++ int opt; /* used for argument parsing */ ++ ++ struct poptOption optionsTable[] = { ++ { "wave", 'w', POPT_ARG_STRING, &wavefile, 0, ++ "Write output to this WAV file (extension SHOULD be .wav)", "filename.wav" }, ++ { "lang", 'l', POPT_ARG_STRING | POPT_ARGFLAG_SHOW_DEFAULT, &lang, 0, ++ "Language", "lang" }, ++ POPT_AUTOHELP ++ POPT_TABLEEND ++ }; ++ optCon = poptGetContext(NULL, argc, argv, optionsTable, POPT_CONTEXT_POSIXMEHARDER); ++ poptSetOtherOptionHelp(optCon, ""); ++ ++ /* Reporting about invalid extra options */ ++ while ((opt = poptGetNextOpt(optCon)) != -1) { ++ switch (opt) { ++ default: ++ fprintf(stderr, "Invalid option %s: %s\n", ++ poptBadOption(optCon, 0), poptStrerror(opt)); ++ poptPrintHelp(optCon, stderr, 0); ++ exit(1); ++ } ++ } ++ ++ /* Mandatory option: --wave */ ++ if(!wavefile) { ++ fprintf(stderr, "Mandatory option: %s\n\n", ++ "--wave=filename.wav"); ++ poptPrintHelp(optCon, stderr, 0); ++ exit(1); ++ } ++ /* option: --lang */ ++ for(langIndexTmp =0; langIndexTmp */ ++ const char **extra_argv; ++ extra_argv = poptGetArgs(optCon); ++ if(extra_argv) { ++ text = (char *) &(*extra_argv)[0]; ++ } else { ++ //TODO: stdin not supported yet. ++ fprintf(stderr, "Missing argument: %s\n\n", ++ ""); ++ poptPrintHelp(optCon, stderr, 0); ++ exit(1); ++ } ++ ++ poptFreeContext(optCon); ++ ++ buffer = malloc( bufferSize ); ++ ++ int ret, getstatus; ++ pico_Char * inp = NULL; ++ pico_Char * local_text = NULL; ++ short outbuf[MAX_OUTBUF_SIZE/2]; ++ pico_Int16 bytes_sent, bytes_recv, text_remaining, out_data_type; ++ pico_Retstring outMessage; ++ ++ picoSynthAbort = 0; ++ ++ picoMemArea = malloc( PICO_MEM_SIZE ); ++ if((ret = pico_initialize( picoMemArea, PICO_MEM_SIZE, &picoSystem ))) { ++ pico_getSystemStatusMessage(picoSystem, ret, outMessage); ++ fprintf(stderr, "Cannot initialize pico (%i): %s\n", ret, outMessage); ++ goto terminate; ++ } ++ ++ /* Load the text analysis Lingware resource file. */ ++ picoTaFileName = (pico_Char *) malloc( PICO_MAX_DATAPATH_NAME_SIZE + PICO_MAX_FILE_NAME_SIZE ); ++ strcpy((char *) picoTaFileName, PICO_LINGWARE_PATH); ++ strcat((char *) picoTaFileName, (const char *) picoInternalTaLingware[langIndex]); ++ if((ret = pico_loadResource( picoSystem, picoTaFileName, &picoTaResource ))) { ++ pico_getSystemStatusMessage(picoSystem, ret, outMessage); ++ fprintf(stderr, "Cannot load text analysis resource file (%i): %s\n", ret, outMessage); ++ goto unloadTaResource; ++ } ++ ++ /* Load the signal generation Lingware resource file. */ ++ picoSgFileName = (pico_Char *) malloc( PICO_MAX_DATAPATH_NAME_SIZE + PICO_MAX_FILE_NAME_SIZE ); ++ strcpy((char *) picoSgFileName, PICO_LINGWARE_PATH); ++ strcat((char *) picoSgFileName, (const char *) picoInternalSgLingware[langIndex]); ++ if((ret = pico_loadResource( picoSystem, picoSgFileName, &picoSgResource ))) { ++ pico_getSystemStatusMessage(picoSystem, ret, outMessage); ++ fprintf(stderr, "Cannot load signal generation Lingware resource file (%i): %s\n", ret, outMessage); ++ goto unloadSgResource; ++ } ++ ++ /* Load the utpp Lingware resource file if exists - NOTE: this file is optional ++ and is currently not used. Loading is only attempted for future compatibility. ++ If this file is not present the loading will still succeed. // ++ picoUtppFileName = (pico_Char *) malloc( PICO_MAX_DATAPATH_NAME_SIZE + PICO_MAX_FILE_NAME_SIZE ); ++ strcpy((char *) picoUtppFileName, PICO_LINGWARE_PATH); ++ strcat((char *) picoUtppFileName, (const char *) picoInternalUtppLingware[langIndex]); ++ ret = pico_loadResource( picoSystem, picoUtppFileName, &picoUtppResource ); ++ pico_getSystemStatusMessage(picoSystem, ret, outMessage); ++ printf("pico_loadResource: %i: %s\n", ret, outMessage); ++ */ ++ ++ /* Get the text analysis resource name. */ ++ picoTaResourceName = (pico_Char *) malloc( PICO_MAX_RESOURCE_NAME_SIZE ); ++ if((ret = pico_getResourceName( picoSystem, picoTaResource, (char *) picoTaResourceName ))) { ++ pico_getSystemStatusMessage(picoSystem, ret, outMessage); ++ fprintf(stderr, "Cannot get the text analysis resource name (%i): %s\n", ret, outMessage); ++ goto unloadUtppResource; ++ } ++ ++ /* Get the signal generation resource name. */ ++ picoSgResourceName = (pico_Char *) malloc( PICO_MAX_RESOURCE_NAME_SIZE ); ++ if((ret = pico_getResourceName( picoSystem, picoSgResource, (char *) picoSgResourceName ))) { ++ pico_getSystemStatusMessage(picoSystem, ret, outMessage); ++ fprintf(stderr, "Cannot get the signal generation resource name (%i): %s\n", ret, outMessage); ++ goto unloadUtppResource; ++ } ++ ++ ++ /* Create a voice definition. */ ++ if((ret = pico_createVoiceDefinition( picoSystem, (const pico_Char *) PICO_VOICE_NAME ))) { ++ pico_getSystemStatusMessage(picoSystem, ret, outMessage); ++ fprintf(stderr, "Cannot create voice definition (%i): %s\n", ret, outMessage); ++ goto unloadUtppResource; ++ } ++ ++ /* Add the text analysis resource to the voice. */ ++ if((ret = pico_addResourceToVoiceDefinition( picoSystem, (const pico_Char *) PICO_VOICE_NAME, picoTaResourceName ))) { ++ pico_getSystemStatusMessage(picoSystem, ret, outMessage); ++ fprintf(stderr, "Cannot add the text analysis resource to the voice (%i): %s\n", ret, outMessage); ++ goto unloadUtppResource; ++ } ++ ++ /* Add the signal generation resource to the voice. */ ++ if((ret = pico_addResourceToVoiceDefinition( picoSystem, (const pico_Char *) PICO_VOICE_NAME, picoSgResourceName ))) { ++ pico_getSystemStatusMessage(picoSystem, ret, outMessage); ++ fprintf(stderr, "Cannot add the signal generation resource to the voice (%i): %s\n", ret, outMessage); ++ goto unloadUtppResource; ++ } ++ ++ /* Create a new Pico engine. */ ++ if((ret = pico_newEngine( picoSystem, (const pico_Char *) PICO_VOICE_NAME, &picoEngine ))) { ++ pico_getSystemStatusMessage(picoSystem, ret, outMessage); ++ fprintf(stderr, "Cannot create a new pico engine (%i): %s\n", ret, outMessage); ++ goto disposeEngine; ++ } ++ ++ local_text = (pico_Char *) text ; ++ text_remaining = strlen((const char *) local_text) + 1; ++ ++ inp = (pico_Char *) local_text; ++ ++ size_t bufused = 0; ++ ++ picoos_Common common = (picoos_Common) pico_sysGetCommon(picoSystem); ++ ++ picoos_SDFile sdOutFile = NULL; ++ ++ picoos_bool done = TRUE; ++ if(TRUE != (done = picoos_sdfOpenOut(common, &sdOutFile, ++ (picoos_char *) wavefile, SAMPLE_FREQ_16KHZ, PICOOS_ENC_LIN))) ++ { ++ fprintf(stderr, "Cannot open output wave file\n"); ++ ret = 1; ++ goto disposeEngine; ++ } ++ ++ /* synthesis loop */ ++ while (text_remaining) { ++ /* Feed the text into the engine. */ ++ if((ret = pico_putTextUtf8( picoEngine, inp, text_remaining, &bytes_sent ))) { ++ pico_getSystemStatusMessage(picoSystem, ret, outMessage); ++ fprintf(stderr, "Cannot put Text (%i): %s\n", ret, outMessage); ++ goto disposeEngine; ++ } ++ ++ text_remaining -= bytes_sent; ++ inp += bytes_sent; ++ ++ do { ++ if (picoSynthAbort) { ++ goto disposeEngine; ++ } ++ /* Retrieve the samples and add them to the buffer. */ ++ getstatus = pico_getData( picoEngine, (void *) outbuf, ++ MAX_OUTBUF_SIZE, &bytes_recv, &out_data_type ); ++ if((getstatus !=PICO_STEP_BUSY) && (getstatus !=PICO_STEP_IDLE)){ ++ pico_getSystemStatusMessage(picoSystem, getstatus, outMessage); ++ fprintf(stderr, "Cannot get Data (%i): %s\n", getstatus, outMessage); ++ goto disposeEngine; ++ } ++ if (bytes_recv) { ++ if ((bufused + bytes_recv) <= bufferSize) { ++ memcpy(buffer+bufused, (int8_t *) outbuf, bytes_recv); ++ bufused += bytes_recv; ++ } else { ++ done = picoos_sdfPutSamples( ++ sdOutFile, ++ bufused / 2, ++ (picoos_int16*) (buffer)); ++ bufused = 0; ++ memcpy(buffer, (int8_t *) outbuf, bytes_recv); ++ bufused += bytes_recv; ++ } ++ } ++ } while (PICO_STEP_BUSY == getstatus); ++ /* This chunk of synthesis is finished; pass the remaining samples. */ ++ if (!picoSynthAbort) { ++ done = picoos_sdfPutSamples( ++ sdOutFile, ++ bufused / 2, ++ (picoos_int16*) (buffer)); ++ } ++ picoSynthAbort = 0; ++ } ++ ++ if(TRUE != (done = picoos_sdfCloseOut(common, &sdOutFile))) ++ { ++ fprintf(stderr, "Cannot close output wave file\n"); ++ ret = 1; ++ goto disposeEngine; ++ } ++ ++disposeEngine: ++ if (picoEngine) { ++ pico_disposeEngine( picoSystem, &picoEngine ); ++ pico_releaseVoiceDefinition( picoSystem, (pico_Char *) PICO_VOICE_NAME ); ++ picoEngine = NULL; ++ } ++unloadUtppResource: ++ if (picoUtppResource) { ++ pico_unloadResource( picoSystem, &picoUtppResource ); ++ picoUtppResource = NULL; ++ } ++unloadSgResource: ++ if (picoSgResource) { ++ pico_unloadResource( picoSystem, &picoSgResource ); ++ picoSgResource = NULL; ++ } ++unloadTaResource: ++ if (picoTaResource) { ++ pico_unloadResource( picoSystem, &picoTaResource ); ++ picoTaResource = NULL; ++ } ++terminate: ++ if (picoSystem) { ++ pico_terminate(&picoSystem); ++ picoSystem = NULL; ++ } ++ exit(ret); ++} ++ +diff --git a/configure.ac b/configure.ac +index 0afb56d..349eb1d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -14,3 +14,6 @@ AC_CONFIG_FILES([Makefile]) + AC_OUTPUT + + AC_CONFIG_MACRO_DIR([m4]) ++ ++AC_CHECK_LIB(popt, poptGetContext) ++ +-- +1.7.1 + diff --git a/app-accessibility/svox/files/patches/0004-add-header-files.patch b/app-accessibility/svox/files/patches/0004-add-header-files.patch new file mode 100644 index 0000000..cc6e69f --- /dev/null +++ b/app-accessibility/svox/files/patches/0004-add-header-files.patch @@ -0,0 +1,59 @@ +From 0866cb3f7cfe4b8bae1edc8d0dbf18c85e9ca74f Mon Sep 17 00:00:00 2001 +From: Mathieu Parent +Date: Tue, 27 Oct 2009 18:29:45 +0100 +Subject: [PATCH 4/7] add header files + +--- + pico/Makefile.am | 36 ++++++++++++++++++++++++++++++++++++ + 1 files changed, 36 insertions(+), 0 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 0d9472d..9151042 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -34,6 +34,42 @@ libttspico_la_SOURCES = \ + lib/picotrns.c \ + lib/picowa.c + ++libttspico_ladir = $(includedir) ++libttspico_la_HEADERS = \ ++ lib/picoacph.h \ ++ lib/picoapid.h \ ++ lib/picoapi.h \ ++ lib/picobase.h \ ++ lib/picocep.h \ ++ lib/picoctrl.h \ ++ lib/picodata.h \ ++ lib/picodbg.h \ ++ lib/picodefs.h \ ++ lib/picodsp.h \ ++ lib/picoextapi.h \ ++ lib/picofftsg.h \ ++ lib/picokdbg.h \ ++ lib/picokdt.h \ ++ lib/picokfst.h \ ++ lib/picoklex.h \ ++ lib/picoknow.h \ ++ lib/picokpdf.h \ ++ lib/picokpr.h \ ++ lib/picoktab.h \ ++ lib/picoos.h \ ++ lib/picopal.h \ ++ lib/picopam.h \ ++ lib/picopltf.h \ ++ lib/picopr.h \ ++ lib/picorsrc.h \ ++ lib/picosa.h \ ++ lib/picosig2.h \ ++ lib/picosig.h \ ++ lib/picospho.h \ ++ lib/picotok.h \ ++ lib/picotrns.h \ ++ lib/picowa.h ++ + bin_PROGRAMS = pico2wave + pico2wave_SOURCES = \ + bin/pico2wave.c +-- +1.7.1 + diff --git a/app-accessibility/svox/files/patches/0005-Install-lang-files.patch b/app-accessibility/svox/files/patches/0005-Install-lang-files.patch new file mode 100644 index 0000000..fceefe3 --- /dev/null +++ b/app-accessibility/svox/files/patches/0005-Install-lang-files.patch @@ -0,0 +1,32 @@ +From 486b9f924bdf38f5f213feed2631060b44024c11 Mon Sep 17 00:00:00 2001 +From: Mathieu Parent +Date: Tue, 27 Oct 2009 23:06:46 +0100 +Subject: [PATCH 5/7] Install lang files + +--- + pico/Makefile.am | 9 +++++++++ + 1 files changed, 9 insertions(+), 0 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 9151042..8898050 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -70,6 +70,15 @@ libttspico_la_HEADERS = \ + lib/picotrns.h \ + lib/picowa.h + ++picolangdir = $(datadir)/pico/lang ++picolang_DATA = \ ++ lang/de-DE*.bin \ ++ lang/en-GB*.bin \ ++ lang/en-US*.bin \ ++ lang/es-ES*.bin \ ++ lang/fr-FR*.bin \ ++ lang/it-IT*.bin ++ + bin_PROGRAMS = pico2wave + pico2wave_SOURCES = \ + bin/pico2wave.c +-- +1.7.1 + diff --git a/app-accessibility/svox/files/patches/0006-Set-picolangdir.patch b/app-accessibility/svox/files/patches/0006-Set-picolangdir.patch new file mode 100644 index 0000000..395ca5e --- /dev/null +++ b/app-accessibility/svox/files/patches/0006-Set-picolangdir.patch @@ -0,0 +1,40 @@ +From 0102d423b79de7af982c8d4619d816f95a9b9278 Mon Sep 17 00:00:00 2001 +From: Mathieu Parent +Date: Thu, 29 Oct 2009 23:55:19 +0100 +Subject: [PATCH 6/7] Set picolangdir + +--- + pico/Makefile.am | 2 +- + pico/bin/pico2wave.c | 4 ++++ + 2 files changed, 5 insertions(+), 1 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 8898050..a19c42a 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -84,5 +84,5 @@ pico2wave_SOURCES = \ + bin/pico2wave.c + pico2wave_LDADD = \ + libttspico.la -lm -lpopt +-pico2wave_CFLAGS = -Wall -I lib ++pico2wave_CFLAGS = -Wall -Dpicolangdir=\"$(picolangdir)\" -I lib + +diff --git a/bin/pico2wave.c b/bin/pico2wave.c +index 0c035a7..ec7ab79 100644 +--- a/bin/pico2wave.c ++++ b/bin/pico2wave.c +@@ -35,7 +35,11 @@ + + /* string constants */ + #define MAX_OUTBUF_SIZE 128 ++#ifdef picolangdir ++const char * PICO_LINGWARE_PATH = picolangdir "/"; ++#else + const char * PICO_LINGWARE_PATH = "./lang/"; ++#endif + const char * PICO_VOICE_NAME = "PicoVoice"; + + /* supported voices +-- +1.7.1 + diff --git a/app-accessibility/svox/files/patches/0007-stdint-uintptr.patch b/app-accessibility/svox/files/patches/0007-stdint-uintptr.patch new file mode 100644 index 0000000..47641cc --- /dev/null +++ b/app-accessibility/svox/files/patches/0007-stdint-uintptr.patch @@ -0,0 +1,48 @@ +diff --git a/lib/picoapi.h b/lib/picoapi.h +index aa60358..6770845 100644 +--- a/lib/picoapi.h ++++ b/lib/picoapi.h +@@ -151,6 +151,7 @@ typedef struct pico_engine *pico_Engine; + #define PICO_UINT32_MAX 0xffffffff + + #include ++#include + + #if (SHRT_MAX == PICO_INT16_MAX) + typedef short pico_Int16; +diff --git a/lib/picoctrl.h b/lib/picoctrl.h +index f7b9b6e..4c2161f 100644 +--- a/lib/picoctrl.h ++++ b/lib/picoctrl.h +@@ -31,6 +31,7 @@ + #include "picoos.h" + #include "picorsrc.h" + #include "picodata.h" ++#include + + #ifdef __cplusplus + extern "C" { +diff --git a/lib/picopr.c b/lib/picopr.c +index 7cf1824..ece3297 100644 +--- a/lib/picopr.c ++++ b/lib/picopr.c +@@ -34,6 +34,7 @@ + #include "picokpr.h" + #include "picopr.h" + #include "picoktab.h" ++#include + + #ifdef __cplusplus + extern "C" { +diff --git a/lib/picorsrc.h b/lib/picorsrc.h +index 4dfb19e..77fd357 100644 +--- a/lib/picorsrc.h ++++ b/lib/picorsrc.h +@@ -36,6 +36,7 @@ + #include "picodefs.h" + #include "picoos.h" + #include "picoknow.h" ++#include + + #ifdef __cplusplus + extern "C" { diff --git a/app-accessibility/svox/files/patches/conditional/pipe.patch b/app-accessibility/svox/files/patches/conditional/pipe.patch new file mode 100644 index 0000000..5197a93 --- /dev/null +++ b/app-accessibility/svox/files/patches/conditional/pipe.patch @@ -0,0 +1,69 @@ +--- a/bin/pico2wave.c 2017-06-03 00:40:35.618459894 +0700 ++++ b/bin/pico2wave.c 2017-06-03 01:17:42.060099975 +0700 +@@ -83,7 +83,7 @@ + + struct poptOption optionsTable[] = { + { "wave", 'w', POPT_ARG_STRING, &wavefile, 0, +- "Write output to this WAV file (extension SHOULD be .wav)", "filename.wav" }, ++ "Write output (WAV) to this file instead of stdout", "filename.wav" }, + { "lang", 'l', POPT_ARG_STRING | POPT_ARGFLAG_SHOW_DEFAULT, &lang, 0, + "Language", "lang" }, + POPT_AUTOHELP +@@ -103,12 +103,12 @@ + } + } + +- /* Mandatory option: --wave */ +- if(!wavefile) { +- fprintf(stderr, "Mandatory option: %s\n\n", +- "--wave=filename.wav"); +- poptPrintHelp(optCon, stderr, 0); +- exit(1); ++ if((!wavefile) || (strcmp(wavefile, (char *) "-") == 0)) { ++ wavefile = (char *) "/dev/stdout"; // directly /proc/self/fd/1 ? ++ } ++ if(strlen(wavefile)==0) { ++ fprintf(stderr, "It is impossible to write in the file with empty name\n"); ++ exit(1); + } + /* option: --lang */ + for(langIndexTmp =0; langIndexTmp"); +- poptPrintHelp(optCon, stderr, 0); +- exit(1); ++ short err; ++ size_t len; ++ err = getdelim(&text, &len, EOF, stdin); ++ if (-1 == err) { ++ fprintf(stderr, "Failed to read text either from stdin or cmdline arguments\n"); ++ exit(1); ++ } + } + + poptFreeContext(optCon); + +--- a/lib/picoos.c 2017-06-03 00:31:10.487658265 +0700 ++++ b/lib/picoos.c 2017-06-03 01:21:10.057477739 +0700 +@@ -1749,16 +1749,11 @@ + sdf->bufPos = 0; + sdf->aborted = FALSE; + if (picoos_CreateBinary(g, &(sdf->file), fileName)) { +- if (picoos_has_extension(fileName, (picoos_char *) ".wav")) { + sdf->fileType = FILE_TYPE_WAV; + done = picoos_writeWavHeader(sdf->file, sdf->sf, sdf->enc, + DummyLen, &(sdf->hdrSize)); +- } else { + /* we prefer not to treat other formats, rather than treat it as raw */ + /* fileType = FILE_TYPE_RAW; */ +- sdf->fileType = FILE_TYPE_OTHER; +- done = FALSE; +- } + + if (FILE_TYPE_OTHER == sdf->fileType) { + picoos_emRaiseWarning(g->em, PICO_EXC_UNEXPECTED_FILE_TYPE, diff --git a/app-accessibility/svox/svox-9999.ebuild b/app-accessibility/svox/svox-9999.ebuild new file mode 100644 index 0000000..c1adc7c --- /dev/null +++ b/app-accessibility/svox/svox-9999.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools git-r3 + +EGIT_REPO_URI="https://android.googlesource.com/platform/external/svox/" + +DESCRIPTION="SVOX PicoTTS text-to-speech engine" +HOMEPAGE="https://android.googlesource.com/platform/external/svox/+/master" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="" +IUSE="+pipe" + +DEPEND="" +RDEPEND="${DEPEND}" + +PATCHES=("${FILESDIR}/patches") + +S="${WORKDIR}/${P}/pico" + +src_prepare() { + use pipe && PATCHES+=("${FILESDIR}/patches/conditional/pipe.patch") + default + eautoreconf +} diff --git a/profiles/categories b/profiles/categories new file mode 100644 index 0000000..5cf8dd6 --- /dev/null +++ b/profiles/categories @@ -0,0 +1,3 @@ +cross-arm-none-eabi +cross-arm-none-eabi-elf +cross-armv7a-hardfloat-linux-gnueabi -- cgit v1.2.3-65-gdbad