From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-accessibility/festival/Manifest | 18 +++ app-accessibility/festival/festival-2.1-r1.ebuild | 126 +++++++++++++++++++++ .../festival/files/festival-2.1-gcc4.7.patch | 29 +++++ .../files/festival-2.1-gentoo-system.patch | 124 ++++++++++++++++++++ .../festival/files/festival-2.1-init-scm.patch | 24 ++++ .../festival/files/festival-2.1-ldflags.patch | 12 ++ app-accessibility/festival/metadata.xml | 12 ++ 7 files changed, 345 insertions(+) create mode 100644 app-accessibility/festival/Manifest create mode 100644 app-accessibility/festival/festival-2.1-r1.ebuild create mode 100644 app-accessibility/festival/files/festival-2.1-gcc4.7.patch create mode 100644 app-accessibility/festival/files/festival-2.1-gentoo-system.patch create mode 100644 app-accessibility/festival/files/festival-2.1-init-scm.patch create mode 100644 app-accessibility/festival/files/festival-2.1-ldflags.patch create mode 100644 app-accessibility/festival/metadata.xml (limited to 'app-accessibility/festival') diff --git a/app-accessibility/festival/Manifest b/app-accessibility/festival/Manifest new file mode 100644 index 000000000000..6ceac5312281 --- /dev/null +++ b/app-accessibility/festival/Manifest @@ -0,0 +1,18 @@ +AUX festival-2.1-gcc4.7.patch 924 SHA256 7aef97c6784c268ab7e7ab0007673c5d54914409d7246ae1be0f63ca83e882de SHA512 d5d41c1dd60339fd219c51da7f1d6f9348832b2ffe4181787dacdca024d218dc7dbca168b9fbcb75795d681d534d77089aa8bf6fcbfbb47e2946f17c16a12071 WHIRLPOOL 2ad145f28cd1690e5f7e9dd94cc642c6ba4596c9326424e49804b74e97a7bd0da4f3b6c10a584db6f1dac1e8d053557ee4a68cba64a86376bf6bff3358e04bea +AUX festival-2.1-gentoo-system.patch 7736 SHA256 bf595e5bda12ac753265a7630b8ba3042951191f180e08ed375955d76cab2d4b SHA512 bd15a7668e8702b1171b8a5b0ad615f6dd22ca2f2940f91abd1617fcf29aab70d97f6bf940ff5b8887bd0799af1545f781d17e23000c1f339bd9808afac4860a WHIRLPOOL 7db3db87eaa686755625b87e524d8fe52db56c2c22d0424783375bd7640a9bb11b01220b22335d6a0ea3a4eb4a8ccc6462fb0b486ec3d7a69e134a6e3dc4277a +AUX festival-2.1-init-scm.patch 856 SHA256 71bc918dffd72adb21b8cd7394358929e23aa1e32849a4c7f0aa85aa6d4cba40 SHA512 bf86a21659affa4e7ec2eefedb0bfb3650473a90c72fe30e5ad8aabb9a20a344a792c6f612af466fc50359b4dec7e6f9afb358f1e509428513781b93e7c3c874 WHIRLPOOL 1dcf0fe1c256aa87b88f1173604be58a66cb1dec9841a082d4f77e4ca4e661639ff1a7fe8bd5c4579a9244ce7143bf48f9fe2d5f09fde7d52ceb02502c3e2a49 +AUX festival-2.1-ldflags.patch 438 SHA256 4242057ced3647a0f0c9ba3047b290ae498d30d26a0436a95237fc9a653941b2 SHA512 5c7eb23673aef0ddcc0d13bec73caa90c807fdd884f73cda33c28bc80d701ef80fbf417987f078f692d418cb3a67a6243652017bb34537a75fd32b29819b9726 WHIRLPOOL 6f16a00a4a8cd1557984c65e6e14e1096b2e817d92d236176f75293c2f815a5a6a6eafa3719c2aafac161682fa179cbe35400d93dc62fa182aba49217d3241e9 +DIST festival-2.1-release.tar.gz 787313 SHA256 06f3dcbad9d26e27443fc66947a0faf0c6679482220df4b5f42a261adf758080 SHA512 1f9f28af7106c98e313d3c4d4bb26a7f927c1214fa5a0e2b4972fc85e1011e328331b73852abb57f26fa5062263d1dbccaf65e3be59c6ec762ccf340fc93797a WHIRLPOOL 0e90a9b3e673ea7ca63a4fdb7f60868db3a74347281267aad20a94548f385b8c1a66472145f0b7c7e4c02a30a695ca012e25443ffdb9ecbafd4cd3bac2f72568 +DIST festlex_CMU.tar.gz 1925748 SHA256 c19430919bca45d5368cd4c82af6153fbcc96a487ebd30b78b5f3c08718b7c07 SHA512 c293344020fd3337193303cd5dfb7e2b0a1012770a484d8bccaae921b0c61b75699204bec45fee0db754506d6f1558fd616866cc94e76afcbb85a4dcbcf9542b WHIRLPOOL 040094e7dcbfb280a18b5862927855cdde62a49f8eac8d63045c1f92f720cc0041f2991ebacb05d457cd77c4c471e935a808a6e185df28e7f87d0e1d08f21905 +DIST festlex_OALD.tar.gz 1472516 SHA256 61afc02c4b9dee6322412958ea8be477ee451c3cdab789b88c4907e3e377ccd5 SHA512 0221c3d78140c6cb4e74f98edbdf0dbe5987a8efa3e7205844a5c01c31a98aaced3b20e4a42b09aaa4a3c93c9225d9f24d96df3fb5d963092e955d4cb4674aac WHIRLPOOL 12f96f04d0b7257a032e9e720136bb79e1377fa63f83cd5f3b35dbed5687da838dc4c11de183df89794a389d139c83ea1ea4df3ab6e7c87018c408ed9dbdf290 +DIST festlex_POSLEX.tar.gz 242914 SHA256 5ef8cc5d35e9f2141b5a0a4774df82dc9731fe7e9800eb09ecf264f2f8503e7b SHA512 5c3857a195f5f5ebc4c366f37685437af41eb7e86a1a13b41b08cab91e536114ae4ddfa8b124acb40ec32c13b53d0dbf2c857d4c756b0720c9a363866ecb8c47 WHIRLPOOL 8c5b1ed51b89377bb56cfdb12cc0affb9646cdf57b8c908deb547c3bb08c66881c59bef5f04ed1973b6f00c8ce45e0f85b9339afddb2bc460599f5ca11b8f05e +DIST festvox_cmu_us_awb_cg.tar.gz 4452760 SHA256 f6010538b3e2f32152cc75741a62b8c7eecfaa3e51153c9db735723002807264 SHA512 b77174d2e9ab914ee3c4d6e0d83e29b64034bb45d3fe021acf3a6da13304acc819c4ac5b1046a6f022312e90aa23c73b585aaf11f927e80aee4533584b60356b WHIRLPOOL fe2aa698dfa917f8e72c49bb1399c3c430d65da2b3b072d53cb6810e6cde49b19de8c5b44e0ee23647a93ded1fc6a39c80eab059c25e3eb28805a7d9977f3539 +DIST festvox_cmu_us_rms_cg.tar.gz 5222226 SHA256 5f0ffc3181df76b63f3c13db3cdc6e67e02639a3982c6b6fa55bbbd2fe1cbc30 SHA512 a251fa27f6cabecb29cf4199cb040cb2ce512a6a447840d31b0d2055d26e6a86f4730bbe3e0f1612e413858f41fdbdd184f04575f9f64658d3f34171612ee172 WHIRLPOOL c9a5f712952c2c88d901e49cf33f03328d44fd6befaca16bcf5041a82beeb092bd6fd47751b7da9da6393c752a3b4b9ae52119a99a6ad1aca6b335cc78a8c2ae +DIST festvox_cmu_us_slt_arctic_hts.tar.gz 955706 SHA256 adcc187fc7db39e17c119811936be57f0b788908f06c3d9b330856ad8357b128 SHA512 58908094c7e538118471ebd80d86d91f681d0958587f0c5ee6c3a00e1ad5f41519e7bb2a96353f9a68946aba343e11c2949fe2b1efafc53f0d8a6b20d7e3e1f8 WHIRLPOOL 2e87cedb571b4ece257e8c27ab9570fe183691ebc17ddb8fc4323201bd4fc2a449f30a5879a3ce8cc8f8673283c3162761235bf253c96a089d86796b898607a0 +DIST festvox_kallpc16k.tar.gz 4104056 SHA256 9eb6336f35c202c8069d37e489fb009a7e9fd8539cd47644329db1e92c6aba83 SHA512 ad8d45e04cb704f31a01de8f4d1b3adb4530563728e8b331b0a730c762bd0c0590e5d49f893404a0199f51fb6afce4b786107ae1fdbc4d1b61c3139ce805267c WHIRLPOOL c0242c9abb733c30cbba75178de8aa825a0be17bc24a2851eff64147a080c2cbd0d374de1e6e4a8bce562f727474d1e80d26535efe12e8ed640d7eb7bce75832 +DIST festvox_rablpc16k.tar.gz 5369001 SHA256 54835837ca734e62c0210c0f9dd27380d2ad89819ae91ec6e8cfab4e515b7bdc SHA512 11539bfb822eec9c4803c8526364d3cf6ad735a0edfd018471e95df1447e0cd3e19fdee44faaf0f0fbceed281a06b21a971f0c2a3a3ff6c46ea8272202f53f11 WHIRLPOOL 08266d82182ebc939965f52ef591043de664ed8380105e42eb39b4a96f50bda5d8958d9b7850e963fe1e8324fd6a5d05a5d1d7ab41f4c88940e61fe783dbf557 +DIST speech_tools-2.1-release.tar.gz 1681999 SHA256 ff6167cd929a88e2f91b47191c6c4dae87c9c06ba39fccc4465af9d79e9b2be9 SHA512 6ef9a7dd01ede152c4dafd0b2037312d62a79d875813d74ea048899a52eee505b93ffbabef9b6c0a1d15aeadb5508fd18a2f392e85276847fe071173aec5db96 WHIRLPOOL 6df6ca5168462599fadf209827e367c963af5ca6be05277618c9d09aac34a3b151665b860a14fa4742482cc77246e372671ac94b23bdca63bbbb7b8c7b234644 +EBUILD festival-2.1-r1.ebuild 3667 SHA256 d5bacdf140574fe95158127b515f4e1edce4a5d0a111a0088f233eea29360209 SHA512 7b3bd3fcaba747e7358f4eb5257d6fb951c5d3a4cf9051820d8c118585735ecc59a3e768c750974698d225b52d370db72a91e6c7698f36d396a9fec05e41dc41 WHIRLPOOL 314a216d787af342b2bc566079218ab028f7c9c2848d91da7ca755b6befc71e63edb7d2e4e80ab83d72f419784c8145d9618c1e3a518568a5fe0d503fcda4fb5 +MISC ChangeLog 2712 SHA256 c86041ce3939bb15c55a4b60d2ec10b9b7f3a2fede4260bdd96c8e550640b0bd SHA512 8106b814c8a2b3d1eeafa3b350ac28c93c904b18c6c19c419f0199b2b711b4d7a8ca048d3eafe621a43c9e41831a696ff6ab63c40089d564f0f49c9b0a08957a WHIRLPOOL 5f4f166af918e9f34fa5ce232d505c772270f4aa1a1e2aee4b083e9b912e3d136437e2692fce8a87e77aca8107f0821ad752629de0673f5162021ba644dca94b +MISC ChangeLog-2015 21631 SHA256 0b2658058802ac8f8a7f2863750ff37c7c9b19c2b7835774fe1a1fd8873caf05 SHA512 fba6e700ebda57551c447a73684b544410ade20d6f888a32a6b8c094b1bd9ec738295a07cdec9744b13c819f1153718676e00639e0472e692b26c4e3da68ade8 WHIRLPOOL 19fba883debb1996a8d44b1c8575830fd7a0c0761214cf6210e3b124f59a4559a1e4ff8fb4343e094bef3dca1ad46e186694f02c10de6975621e745e7275af47 +MISC metadata.xml 375 SHA256 2d266a45b4fb056159839f940687765d7e13a01d0748fac50bbbcbb4a19d2483 SHA512 affeb58d8d6f6659fc2d00b01bb627307920575589c7c78358b26074c94831af9a40bc2b0ba9e55758f968adf7b6a15bbc1542db83b1457107fd9fbdd2a3d224 WHIRLPOOL 4509576afbf26fe58f3dbac4b99d56b01588c69ee22f65bb50694d214ec6c06c5eaf7136cacb2da1259486d499d643b73726744e3d942bdfd5a3849630612644 diff --git a/app-accessibility/festival/festival-2.1-r1.ebuild b/app-accessibility/festival/festival-2.1-r1.ebuild new file mode 100644 index 000000000000..ea2559bf691b --- /dev/null +++ b/app-accessibility/festival/festival-2.1-r1.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="2" +inherit eutils multilib toolchain-funcs user + +MY_PV="${PV}-release" +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Festival Text to Speech engine" +HOMEPAGE="http://www.cstr.ed.ac.uk/projects/festival/" +SITE="http://www.festvox.org/packed/${PN}/${PV}" +SRC_URI="${SITE}/${MY_P}.tar.gz + ${SITE}/festlex_CMU.tar.gz + ${SITE}/festlex_OALD.tar.gz + ${SITE}/festlex_POSLEX.tar.gz + ${SITE}/festvox_cmu_us_awb_cg.tar.gz + ${SITE}/festvox_cmu_us_rms_cg.tar.gz + ${SITE}/festvox_cmu_us_slt_arctic_hts.tar.gz + ${SITE}/festvox_rablpc16k.tar.gz + ${SITE}/festvox_kallpc16k.tar.gz + ${SITE}/speech_tools-${MY_PV}.tar.gz" + +LICENSE="FESTIVAL HPND BSD rc regexp-UofT free-noncomm" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="~app-accessibility/speech-tools-2.1 + >=sys-libs/ncurses-5.6-r2" +RDEPEND="${DEPEND} + media-sound/alsa-utils +" + +S=${WORKDIR}/festival + +pkg_setup() { + enewuser festival -1 -1 -1 audio +} + +src_prepare() { + # tell festival to use the speech-tools we have installed. + sed -i -e "s:\(EST=\).*:\1${EPREFIX}/usr/share/speech-tools:" "${S}"/config/config.in + sed -i -e "s:\$(EST)/lib:/usr/$(get_libdir):" "${S}"/config/project.mak + + # fix the reference to /usr/lib/festival + sed -i -e "s:\(FTLIBDIR.*=.*\)\$.*:\1${EPREFIX}/usr/share/festival:" "${S}"/config/project.mak + + # Fix path for examples in festival.scm + sed -i -e "s:\.\./examples/:${EPREFIX}/usr/share/doc/${PF}/examples/:" "${S}"/lib/festival.scm + + epatch "${FILESDIR}/${P}-ldflags.patch" + epatch "${FILESDIR}/${P}-init-scm.patch" + epatch "${FILESDIR}/${P}-gentoo-system.patch" + + # copy what we need for MultiSyn from speech_tools. + cp -pr "${WORKDIR}"/speech_tools/base_class "${S}"/src/modules/MultiSyn + + epatch "${FILESDIR}/${P}-gcc4.7.patch" + + echo "(Parameter.set 'Audio_Command \"aplay -q -c 1 -t raw -f s16 -r \$SR \$FILE\")" >> "${S}"/lib/siteinit.scm + echo "(Parameter.set 'Audio_Method 'Audio_Command)" >> "${S}"/lib/siteinit.scm +} + +src_configure() { + econf || die "econf failed" +} + +src_compile() { + emake -j1 PROJECT_LIBDEPS="" REQUIRED_LIBDEPS="" LOCAL_LIBDEPS="" \ + OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "emake failed" +} + +src_install() { + # Install the binaries + dobin src/main/festival + dobin lib/etc/*Linux*/audsp + dolib.a src/lib/libFestival.a + + # Install the main libraries + insinto /usr/share/festival + doins -r lib/* + + # Install the examples + insinto /usr/share/doc/${PF} + doins -r examples + + # Need to fix saytime, etc. to look for festival in the correct spot + for ex in "${D}"/usr/share/doc/${PF}/examples/*.sh; do + exnoext=${ex%%.sh} + chmod a+x "${exnoext}" + dosed "s:${S}/bin/festival:/usr/bin/festival:" "${exnoext##$D}" + done + + # Install the header files + insinto /usr/include/festival + doins src/include/*.h + + insinto /etc/festival + doins lib/site* + + # Install the docs + dodoc "${S}"/{ACKNOWLEDGMENTS,NEWS,README} + doman "${S}"/doc/{festival.1,festival_client.1} + + # create the directory where our log file will go. + diropts -m 0755 -o festival -g audio + keepdir /var/log/festival + +} + +pkg_postinst() { + elog + elog " Useful examples include saytime, text2wave. For example, try:" + elog " \"/usr/share/doc/${PF}/examples/saytime\"" + elog + elog " Or for something more fun:" + elog ' "echo "Gentoo can speak" | festival --tts"' + elog + elog "This version also allows configuration of site specific" + elog "initialization in /etc/festival/siteinit.scm and" + elog "variables in /etc/festival/sitevars.scm." + elog +} diff --git a/app-accessibility/festival/files/festival-2.1-gcc4.7.patch b/app-accessibility/festival/files/festival-2.1-gcc4.7.patch new file mode 100644 index 000000000000..8ebc8cc472c0 --- /dev/null +++ b/app-accessibility/festival/files/festival-2.1-gcc4.7.patch @@ -0,0 +1,29 @@ +diff -uNr festival.orig/src/modules/MultiSyn/base_class/EST_TSimpleVector.cc festival/src/modules/MultiSyn/base_class/EST_TSimpleVector.cc +--- festival.orig/src/modules/MultiSyn/base_class/EST_TSimpleVector.cc 2012-12-02 23:03:27.000000000 +0000 ++++ festival/src/modules/MultiSyn/base_class/EST_TSimpleVector.cc 2012-12-02 23:21:17.000000000 +0000 +@@ -42,6 +42,7 @@ + + #include "EST_TSimpleVector.h" + #include "EST_matrix_support.h" ++#include + #include + #include "EST_cutils.h" + +@@ -49,7 +50,7 @@ + { + if (this->p_column_step==1 && a.p_column_step==1) + { +- resize(a.n(), FALSE); ++ this->resize(a.n(), FALSE); + memcpy((void *)(this->p_memory), (const void *)(a.p_memory), this->n() * sizeof(T)); + } + else +@@ -70,7 +71,7 @@ + int old_offset = this->p_offset; + unsigned int q; + +- just_resize(newn, &old_vals); ++ this->just_resize(newn, &old_vals); + + if (set && old_vals) + { diff --git a/app-accessibility/festival/files/festival-2.1-gentoo-system.patch b/app-accessibility/festival/files/festival-2.1-gentoo-system.patch new file mode 100644 index 000000000000..a09e1379eebf --- /dev/null +++ b/app-accessibility/festival/files/festival-2.1-gentoo-system.patch @@ -0,0 +1,124 @@ +diff -uNr festival.orig/config/systems/GentooLinux.mak festival/config/systems/GentooLinux.mak +--- festival.orig/config/systems/GentooLinux.mak 1969-12-31 19:00:00.000000000 -0500 ++++ festival/config/systems/GentooLinux.mak 2011-02-09 10:43:28.000000000 -0500 +@@ -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 ## ++ ## -------------------------------------------------------------------- ## ++ ## Settings for Gentoo Linux distributions. ## ++ ## ## ++ ########################################################################### ++ ++MANDIR=$(INSTALL_PREFIX)/share/man ++# Gentoo does not use termcap ++OS_LIBS = $(LDFLAGS) -ldl -lncurses +diff -uNr festival.orig/config/systems/Makefile festival/config/systems/Makefile +--- festival.orig/config/systems/Makefile 2011-02-09 10:41:01.000000000 -0500 ++++ festival/config/systems/Makefile 2011-02-09 10:44:22.000000000 -0500 +@@ -41,6 +41,7 @@ + Linux.mak \ + RedHatLinux.mak \ + DebianGNULinux.mak \ ++ GentooLinux.mak \ + alpha_Linux.mak \ + alpha_OSF1V4.0.mak \ + alpha_RedHatLinux.mak \ +@@ -94,6 +95,7 @@ + sparc_SunOS5.8.mak \ + sparc_SunOS5.mak \ + unknown_DebianGNULinux.mak \ ++ unknown_GentooLinux.mak \ + unknown_Linux.mak \ + unknown_RedHatLinux.mak \ + power_macintosh_Darwin.mak \ +diff -uNr festival.orig/config/systems/unknown_GentooLinux.mak festival/config/systems/unknown_GentooLinux.mak +--- festival.orig/config/systems/unknown_GentooLinux.mak 1969-12-31 19:00:00.000000000 -0500 ++++ festival/config/systems/unknown_GentooLinux.mak 2011-02-09 10:45:34.000000000 -0500 +@@ -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 ## ++## -------------------------------------------------------------------- ## ++## Settings for Gentoo Linux distributions. ## ++## ## ++########################################################################### ++ ++include $(EST)/config/systems/Linux.mak ++include $(EST)/config/systems/GentooLinux.mak +diff -uNr festival.orig/config/system.sh festival/config/system.sh +--- festival.orig/config/system.sh 2011-02-09 10:41:01.000000000 -0500 ++++ festival/config/system.sh 2011-02-09 10:42:10.000000000 -0500 +@@ -70,6 +70,10 @@ + 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/festival/files/festival-2.1-init-scm.patch b/app-accessibility/festival/files/festival-2.1-init-scm.patch new file mode 100644 index 000000000000..efe575b0c2b7 --- /dev/null +++ b/app-accessibility/festival/files/festival-2.1-init-scm.patch @@ -0,0 +1,24 @@ +--- festival/lib/init.scm 2006-09-15 01:34:32.000000000 -0500 ++++ festival/lib/init.scm 2006-09-15 01:50:30.000000000 -0500 +@@ -52,8 +52,8 @@ + + ;;; A chance to set various variables to a local setting e.g. + ;;; lexdir, voices_dir audio etc etc. +-(if (probe_file (path-append libdir "sitevars.scm")) +- (load (path-append libdir "sitevars.scm"))) ++(if (probe_file "/etc/festival/sitevars.scm") ++ (load "/etc/festival/sitevars.scm")) + + ;;; CSTR siod extensions + (require 'cstr) +@@ -133,8 +133,8 @@ + ;;; + ;;; Local site initialization, if the file exists load it + ;;; +-(if (probe_file (path-append libdir "siteinit.scm")) +- (load (path-append libdir "siteinit.scm"))) ++(if (probe_file "/etc/festival/siteinit.scm") ++ (load "/etc/festival/siteinit.scm")) + + ;;; User initialization, if a user has a personal customization + ;;; file loaded it diff --git a/app-accessibility/festival/files/festival-2.1-ldflags.patch b/app-accessibility/festival/files/festival-2.1-ldflags.patch new file mode 100644 index 000000000000..e6559c8a8168 --- /dev/null +++ b/app-accessibility/festival/files/festival-2.1-ldflags.patch @@ -0,0 +1,12 @@ +diff -uNr festival.orig/config/systems/Linux.mak festival/config/systems/Linux.mak +--- festival.orig/config/systems/Linux.mak 2011-02-09 10:08:20.000000000 -0500 ++++ festival/config/systems/Linux.mak 2011-02-09 10:09:04.000000000 -0500 +@@ -46,7 +46,7 @@ + JAVAH=/usr/bin/javah + + TCL_LIBRARY = -ltcl +-OS_LIBS = -ldl ++OS_LIBS = $(OPTIMISE_LDFLAGS) -ldl + + ## the native audio module for this type of system + NATIVE_AUDIO_MODULE = LINUX16 diff --git a/app-accessibility/festival/metadata.xml b/app-accessibility/festival/metadata.xml new file mode 100644 index 000000000000..1dacdab965c1 --- /dev/null +++ b/app-accessibility/festival/metadata.xml @@ -0,0 +1,12 @@ + + + + + accessibility@gentoo.org + Gentoo Accessibility Project + + + sound@gentoo.org + Gentoo Sound project + + -- cgit v1.2.3