diff options
Diffstat (limited to 'app-accessibility')
-rw-r--r-- | app-accessibility/festival/ChangeLog | 9 | ||||
-rw-r--r-- | app-accessibility/festival/festival-1.96_beta.ebuild | 151 | ||||
-rw-r--r-- | app-accessibility/festival/files/digest-festival-1.96_beta | 39 |
3 files changed, 198 insertions, 1 deletions
diff --git a/app-accessibility/festival/ChangeLog b/app-accessibility/festival/ChangeLog index ecfba5574002..e4408cb516b2 100644 --- a/app-accessibility/festival/ChangeLog +++ b/app-accessibility/festival/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-accessibility/festival # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival/ChangeLog,v 1.67 2007/07/06 10:39:12 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival/ChangeLog,v 1.68 2007/08/28 05:17:33 williamh Exp $ + +*festival-1.96_beta (28 Aug 2007) + + 28 Aug 2007; William Hubbs <williamh@gentoo.org> + +festival-1.96_beta.ebuild: + Version bump #188821. + Also, I have been able to re-enstate the dependency on speech-tools. 06 Jul 2007; Roy Marples <uberlord@gentoo.org> +files/festival-1.95_beta-fbsd.patch, festival-1.95_beta-r4.ebuild: diff --git a/app-accessibility/festival/festival-1.96_beta.ebuild b/app-accessibility/festival/festival-1.96_beta.ebuild new file mode 100644 index 000000000000..3b6b93297e84 --- /dev/null +++ b/app-accessibility/festival/festival-1.96_beta.ebuild @@ -0,0 +1,151 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival/festival-1.96_beta.ebuild,v 1.1 2007/08/28 05:17:33 williamh Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="Festival Text to Speech engine" +HOMEPAGE="http://www.cstr.ed.ac.uk/" +SITE="http://www.festvox.org/packed/festival/latest" +MY_P=${PN}-1.96-beta +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_arctic_hts.tar.gz + ${SITE}/festvox_cmu_us_bdl_arctic_hts.tar.gz + ${SITE}/festvox_cmu_us_jmk_arctic_hts.tar.gz + ${SITE}/festvox_cmu_us_slt_arctic_hts.tar.gz + ${SITE}/festvox_kallpc16k.tar.gz + ${SITE}/festvox_kedlpc16k.tar.gz + mbrola? ( + ${SITE}/festvox_us1.tar.gz + ${SITE}/festvox_us2.tar.gz + ${SITE}/festvox_us3.tar.gz )" +LICENSE="FESTIVAL BSD as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="mbrola" + +RDEPEND="mbrola? ( >=app-accessibility/mbrola-3.0.1h-r2 )" + +DEPEND="${RDEPEND} + >=app-accessibility/speech-tools-1.2.96_beta" + +S=${WORKDIR}/festival + +pkg_setup() { + enewuser festival -1 -1 -1 audio +} + +src_unpack() { + unpack ${A} + + # tell festival to use the speech-tools we have installed. + sed -i -e "s:\(EST=\).*:\1/usr/share/speech-tools:" ${S}/config/config.in + sed -i -e "s:\$(EST)/lib:/usr/$(get_libdir):" ${S}/config/project.mak + + # disable the multisyn modules + sed -i -e "s:\(ALSO_INCLUDE.*=.*MultiSyn\):# \1:" ${S}/config/config.in + + # fix the reference to /usr/lib/festival + sed -i -e "s:\(FTLIBDIR.*=.*\)\$.*:\1/usr/share/festival:" ${S}/config/project.mak + + # Fix path for examples in festival.scm + sed -i -e "s:\.\./examples/:/usr/share/doc/${PF}/examples/:" ${S}/lib/festival.scm + + # patch init.scm to look for siteinit.scm and sitevars.scm in /etc/festival + epatch ${FILESDIR}/${P}-init-scm.patch +} + +src_compile() { + econf || die + emake -j1 PROJECT_LIBDEPS="" REQUIRED_LIBDEPS="" LOCAL_LIBDEPS="" OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die +} + +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 + # Sample server.scm configuration for the server + doins ${FILESDIR}/server.scm + doins lib/site* + + # Install the init script + newinitd ${FILESDIR}/festival.rc festival + + # 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 + + use mbrola && mbrola_voices +} + +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 " To enable the festival server at boot, run" + elog " rc-update add festival default" + elog + elog " You must setup the server's port, access list, etc in this file:" + elog " /etc/festival/server.scm" + 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 +} + +# Fix mbrola databases: create symbolic links from festival voices +# directories to MBROLA install dirs. +mbrola_voices() { + + # This is in case there is no mbrola voice for a particular language. + local shopts=$(shopt -p nullglob) + shopt -s nullglob + + # This assumes all mbrola voices are named after the voices defined + # in MBROLA, i.e. if MBROLA contains a voice fr1, then the Festival + # counterpart should be named fr1_mbrola. + for language in ${S}/lib/voices/*; do + for mvoice in ${language}/*_mbrola; do + voice=${mvoice##*/} + database=${voice%%_mbrola} + dosym /opt/mbrola/${database} /usr/share/festival/voices/${language##*/}/${voice}/${database} + done + done + + # Restore shopts + ${shopts} +} diff --git a/app-accessibility/festival/files/digest-festival-1.96_beta b/app-accessibility/festival/files/digest-festival-1.96_beta new file mode 100644 index 000000000000..676d148e1d2e --- /dev/null +++ b/app-accessibility/festival/files/digest-festival-1.96_beta @@ -0,0 +1,39 @@ +MD5 74915f4ffb13471c7e529ae92b392453 festival-1.96-beta.tar.gz 731682 +RMD160 566eb3cc5983a969985a5e198b4ea9e4324377f6 festival-1.96-beta.tar.gz 731682 +SHA256 4fa48d3525957762c83f289fba361063b8855f57ff50b7db22754d844aeadbee festival-1.96-beta.tar.gz 731682 +MD5 a3ffcd09dcbf1306fdef3c84c1c521d6 festlex_CMU.tar.gz 1697709 +RMD160 852a007b5d50ff32d098a4dbd303a4d9c63a1802 festlex_CMU.tar.gz 1697709 +SHA256 b485c1e8e8e265e335aa99f083963496fa64b34a314050b10d589e942e10c963 festlex_CMU.tar.gz 1697709 +MD5 45a03689025849d02ec963a5b338ef37 festlex_OALD.tar.gz 1472516 +RMD160 d3fc4c549626dcc2a0d5d37fee7d8ebb3bf89c20 festlex_OALD.tar.gz 1472516 +SHA256 61afc02c4b9dee6322412958ea8be477ee451c3cdab789b88c4907e3e377ccd5 festlex_OALD.tar.gz 1472516 +MD5 742c266e4c4978fae2b5c1bf6f549eb4 festlex_POSLEX.tar.gz 242914 +RMD160 d52d6cf4f4300751598facf1b6ff7985a8210b09 festlex_POSLEX.tar.gz 242914 +SHA256 5ef8cc5d35e9f2141b5a0a4774df82dc9731fe7e9800eb09ecf264f2f8503e7b festlex_POSLEX.tar.gz 242914 +MD5 65130b3c466f1b9f5ea3d2ea211cf168 festvox_cmu_us_awb_arctic_hts.tar.gz 878090 +RMD160 abfcc3457c1735cf772b051c0ec884e55381ad9b festvox_cmu_us_awb_arctic_hts.tar.gz 878090 +SHA256 56b930028a14efdaa01b8b34add087bcde75b774b97b205d2f478413203d9a4d festvox_cmu_us_awb_arctic_hts.tar.gz 878090 +MD5 43283634ecceecaa4bb10277343b2852 festvox_cmu_us_bdl_arctic_hts.tar.gz 1060641 +RMD160 cab02ae2be1c3691cfcc2aa6c09ae6829fca9896 festvox_cmu_us_bdl_arctic_hts.tar.gz 1060641 +SHA256 caa679c728c8804f4a1dae6ab08e7b31f10b292e572598fb6432d0e18f40bd2b festvox_cmu_us_bdl_arctic_hts.tar.gz 1060641 +MD5 e8bd1298ac7aad7d752c0bdfe9c9287b festvox_cmu_us_jmk_arctic_hts.tar.gz 909045 +RMD160 5e9657f55d7aa10e852cd36d5a73f1dd106e6713 festvox_cmu_us_jmk_arctic_hts.tar.gz 909045 +SHA256 e4f623d1114922c8844ec266d46d558e1521e0ab3bc6e958cdf8f69c28bcc038 festvox_cmu_us_jmk_arctic_hts.tar.gz 909045 +MD5 28166834ae3b9e5dc5e2ef3476fb56c3 festvox_cmu_us_slt_arctic_hts.tar.gz 955706 +RMD160 541cc0959305c656bc4af4b848c666a707671fe3 festvox_cmu_us_slt_arctic_hts.tar.gz 955706 +SHA256 adcc187fc7db39e17c119811936be57f0b788908f06c3d9b330856ad8357b128 festvox_cmu_us_slt_arctic_hts.tar.gz 955706 +MD5 abbd12e1d04ecdcae07f1d0044f3a947 festvox_kallpc16k.tar.gz 4104056 +RMD160 f8be814267359ac9d4fa5d0bcade18e15b64beb2 festvox_kallpc16k.tar.gz 4104056 +SHA256 9eb6336f35c202c8069d37e489fb009a7e9fd8539cd47644329db1e92c6aba83 festvox_kallpc16k.tar.gz 4104056 +MD5 35d4a2f377d05913ddae61db542afca1 festvox_kedlpc16k.tar.gz 4221528 +RMD160 63480c4ed695c86fc8de0f3a0740196debc710ae festvox_kedlpc16k.tar.gz 4221528 +SHA256 6b8f11424bda5c81ae8a58f7838e2a9d12fdb39cdfff6ed89f611305391b1a36 festvox_kedlpc16k.tar.gz 4221528 +MD5 d0c3e727003e715a65daf01003101813 festvox_us1.tar.gz 11040 +RMD160 97cfd8e62347aa28cf2319174021bc002044ffd5 festvox_us1.tar.gz 11040 +SHA256 23b332513867d6e9c340dc888a7ce67843e5a3c03db328cd36975985057c8b8e festvox_us1.tar.gz 11040 +MD5 fbcc8baacbff3aa2aaaf5a93701bb5e0 festvox_us2.tar.gz 11037 +RMD160 62528dc44291be4f7e7fda1677f3074fcc9fdab7 festvox_us2.tar.gz 11037 +SHA256 d27ad26213144d956815e804c06e5473191ac12afb44f6a1029b3842e3a3007c festvox_us2.tar.gz 11037 +MD5 06dbfe2edaab6ffa31deeaf522e0c33e festvox_us3.tar.gz 11220 +RMD160 86946aa9718b7dacfbb884ba02254e59ebdb7247 festvox_us3.tar.gz 11220 +SHA256 af9ca4d1832e1971aa6e52f6a3ff8f729bf970c7bee1de7e8ac0611ca01871b8 festvox_us3.tar.gz 11220 |