diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2005-07-24 01:59:17 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2005-07-24 01:59:17 +0000 |
commit | 545e945711272f26632e12f0ea05bc9a132183e8 (patch) | |
tree | 6b33aa42db3675d7bdb4b9a5e0502833dd7e2109 /app-accessibility/festival | |
parent | Trim whitespace. (diff) | |
download | historical-545e945711272f26632e12f0ea05bc9a132183e8.tar.gz historical-545e945711272f26632e12f0ea05bc9a132183e8.tar.bz2 historical-545e945711272f26632e12f0ea05bc9a132183e8.zip |
Revision bump with cleanups thanks to Vincent Poinot <vincent.poinot@wanadoo.fr>. Also, it now uses the correct toolchain compiler.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'app-accessibility/festival')
-rw-r--r-- | app-accessibility/festival/ChangeLog | 10 | ||||
-rw-r--r-- | app-accessibility/festival/Manifest | 10 | ||||
-rw-r--r-- | app-accessibility/festival/festival-1.4.3-r4.ebuild | 163 | ||||
-rw-r--r-- | app-accessibility/festival/files/digest-festival-1.4.3-r4 | 13 |
4 files changed, 191 insertions, 5 deletions
diff --git a/app-accessibility/festival/ChangeLog b/app-accessibility/festival/ChangeLog index 7ba6f6bff48b..f31cdca10377 100644 --- a/app-accessibility/festival/ChangeLog +++ b/app-accessibility/festival/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-accessibility/festival # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival/ChangeLog,v 1.25 2005/07/21 09:06:24 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival/ChangeLog,v 1.26 2005/07/24 01:59:17 eradicator Exp $ + +*festival-1.4.3-r4 (24 Jul 2005) + + 24 Jul 2005; Jeremy Huddleston <eradicator@gentoo.org> + +festival-1.4.3-r4.ebuild: + Revision bump with cleanups thanks to Vincent Poinot + <vincent.poinot@wanadoo.fr>. Also, it now uses the correct toolchain + compiler. 21 Jul 2005; Jeremy Huddleston <eradicator@gentoo.org> -festival-1.4.3-r1.ebuild, festival-1.4.3-r3.ebuild: diff --git a/app-accessibility/festival/Manifest b/app-accessibility/festival/Manifest index 06b4d06cc521..84999835eb50 100644 --- a/app-accessibility/festival/Manifest +++ b/app-accessibility/festival/Manifest @@ -1,10 +1,12 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 8aef0da5f2604f7e4a467ad640993356 ChangeLog 7241 +MD5 945c610d541061245d271ab60ad6120e ChangeLog 7500 MD5 46db43791444b3bd68c0c435c132dda7 festival-1.4.3-r2.ebuild 5847 MD5 4f5d797c455932135181f0c31b5e71b2 metadata.xml 185 MD5 89d78b31997c9fe76e5af065f8729326 festival-1.4.3-r3.ebuild 5920 +MD5 86c05ffa1874c06aceb5b8daf42bb4d5 festival-1.4.3-r4.ebuild 4932 +MD5 c7f0c77b597f9a682ad2921edb0d26fb files/digest-festival-1.4.3-r4 863 MD5 f38f904b9dfc77c788a63f51ccd2abb7 files/digest-festival-1.4.3-r2 863 MD5 44bdf5d07947b391cecc75ed8ca49445 files/festival-1.4.2.patch 8724 MD5 b380d6440fe49096f7705d6f1adf01ee files/festival-1.4.3-asterisk.patch 3028 @@ -15,7 +17,7 @@ MD5 f38f904b9dfc77c788a63f51ccd2abb7 files/digest-festival-1.4.3-r3 863 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) -iD8DBQFC32WuArHZZzCEUG0RArCIAKCFV03McLFt3I5CUBfaZlgzugO9AACcCnHQ -G5v44hd+sd5AlhS7tAgEe9Q= -=HPQ7 +iD8DBQFC4vYHArHZZzCEUG0RAugwAJ9WGYKxda/5dO4IzMXCU9SiVVtnLQCeKWZe +i3/3MexOEIgqQqlXI1CbOks= +=1gvK -----END PGP SIGNATURE----- diff --git a/app-accessibility/festival/festival-1.4.3-r4.ebuild b/app-accessibility/festival/festival-1.4.3-r4.ebuild new file mode 100644 index 000000000000..39288a259f81 --- /dev/null +++ b/app-accessibility/festival/festival-1.4.3-r4.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival/festival-1.4.3-r4.ebuild,v 1.1 2005/07/24 01:59:17 eradicator Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="Festival Text to Speech engine" +HOMEPAGE="http://www.cstr.ed.ac.uk/" +SITE="http://www.speech.cs.cmu.edu/${PN}/cstr/${PN}/${PV}" +SRC_URI="${SITE}/${P}-release.tar.gz + ${SITE}/festlex_CMU.tar.gz + ${SITE}/festlex_OALD.tar.gz + ${SITE}/festlex_POSLEX.tar.gz + ${SITE}/festvox_don.tar.gz + ${SITE}/festvox_kallpc16k.tar.gz + ${SITE}/festvox_kedlpc16k.tar.gz + ${SITE}/festvox_rablpc16k.tar.gz + tts-es? ( ${SITE}/festvox_ellpc11k.tar.gz ) + doc? ( ${SITE}/festdoc-1.4.2.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="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="asterisk doc mbrola tts-es" + +RDEPEND=">=app-accessibility/speech-tools-1.2.3-r2 + mbrola? ( >=app-accessibility/mbrola-3.0.1h-r2 )" + +DEPEND="${RDEPEND} + sys-apps/findutils + sys-apps/sed" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + + use doc && mv festdoc-1.4.2 festdoc + + epatch ${FILESDIR}/${PN}-gcc3.3.diff + + use asterisk && epatch ${FILESDIR}/${P}-asterisk.patch + + sed -i -e "s@EST=\$(TOP)/../speech_tools@EST=/usr/share/speech-tools@" ${S}/config/config.in + + # testsuite still fails to build under gcc-3.2 + # sed -i '/^BUILD_DIRS =/s/testsuite//' ${S}/Makefile || die + + sed -i -e "/^const char \*festival_libdir/s:FTLIBDIR:\"/usr/share/festival\":" ${S}/src/arch/festival/festival.cc + sed -i -e '/^MODULE_LIBS/s/-ltermcap/-lncurses/' ${S}/config/modules/editline.mak || die + + # Fix hardcoded path for examples that will be finally installed in /usr/$(get_libdir)/festival/examples + sed -i -e "s:\.\./examples/:/usr/share/doc/${PF}/examples/:" ${S}/lib/festival.scm +} + +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 ${S}/src/main/festival + dobin ${S}/lib/etc/*Linux*/audsp + + # Install the main libraries + insinto /usr/share/festival + doins ${S}/lib/* + + # Install the examples + insinto /usr/share/doc/${PF}/examples/ + doins -r ${S}/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 ${S}/src/include/*.h + + # Install the dicts + insinto /usr/share/festival/dicts + doins -r ${S}/lib/dicts/* + + # Installs all existing voices, no matter what language. + insinto /usr/share/festival/voices + doins -r ${S}/lib/voices/* + + # Sample server.scm configuration for the server + insinto /etc/festival + doins ${FILESDIR}/server.scm + + # Install the init script + exeinto /etc/init.d + newexe ${FILESDIR}/festival.rc festival + + use mbrola && mbrola_voices + + # Install the docs + dodoc ${S}/{ACKNOWLEDGMENTS,NEWS,README} + doman ${S}/doc/{festival.1,festival_client.1} + + if use doc; then + dohtml ${WORKDIR}/festdoc/festival/html/*.html + dodoc ${WORKDIR}/festdoc/festival/festival.ps + doinfo ${WORKDIR}/festdoc/festival/info/* + fi +} + +pkg_postinst() { + einfo + einfo " Useful examples include saytime, text2wave. For example, try:" + einfo " \"/usr/share/doc/${PF}/examples/saytime\"" + einfo + einfo " Or for something more fun:" + einfo ' "echo "Gentoo can speak" | festival --tts"' + einfo + einfo " To enable the festival server at boot, run" + einfo " rc-update add festival default" + einfo + einfo " You must setup the server's port, access list, etc in this file:" + einfo " /etc/festival/server.scm" + einfo +} + +# This is because Portage will not remove links from Festival to MBROLA +# databases: as long as the target of a link exists, the link cannot be +# removed by Portage. +# So we do it by hand here... +pkg_prerm() { + find /usr/share/festival/voices -type l -path "*_mbrola*" -exec rm -f {} \; +} + +# 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.4.3-r4 b/app-accessibility/festival/files/digest-festival-1.4.3-r4 new file mode 100644 index 000000000000..459b679b65de --- /dev/null +++ b/app-accessibility/festival/files/digest-festival-1.4.3-r4 @@ -0,0 +1,13 @@ +MD5 c070523bea2baa0bcaa2d922481abbb5 festival-1.4.3-release.tar.gz 630179 +MD5 a3ffcd09dcbf1306fdef3c84c1c521d6 festlex_CMU.tar.gz 1697709 +MD5 45a03689025849d02ec963a5b338ef37 festlex_OALD.tar.gz 1472516 +MD5 742c266e4c4978fae2b5c1bf6f549eb4 festlex_POSLEX.tar.gz 242914 +MD5 90442079e34a3a694077f8715d15fbdf festvox_don.tar.gz 645583 +MD5 abbd12e1d04ecdcae07f1d0044f3a947 festvox_kallpc16k.tar.gz 4104056 +MD5 35d4a2f377d05913ddae61db542afca1 festvox_kedlpc16k.tar.gz 4221528 +MD5 cefcdda6cd48027da36d78f2f711451b festvox_rablpc16k.tar.gz 5369001 +MD5 e96a97644d36fcb89952ca65c283cea3 festvox_ellpc11k.tar.gz 1473907 +MD5 faabc25a6c1b11854c41adc257c47bdb festdoc-1.4.2.tar.gz 1652551 +MD5 d0c3e727003e715a65daf01003101813 festvox_us1.tar.gz 11040 +MD5 fbcc8baacbff3aa2aaaf5a93701bb5e0 festvox_us2.tar.gz 11037 +MD5 06dbfe2edaab6ffa31deeaf522e0c33e festvox_us3.tar.gz 11220 |