diff options
16 files changed, 14 insertions, 1964 deletions
diff --git a/app-accessibility/festival/ChangeLog b/app-accessibility/festival/ChangeLog index 9f01bc4363ee..d92d9b7d3679 100644 --- a/app-accessibility/festival/ChangeLog +++ b/app-accessibility/festival/ChangeLog @@ -1,6 +1,19 @@ # ChangeLog for app-accessibility/festival # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival/ChangeLog,v 1.77 2008/03/13 02:55:28 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival/ChangeLog,v 1.78 2008/03/20 01:39:24 williamh Exp $ + + 20 Mar 2008; William Hubbs <williamh@gentoo.org> + -files/festival-1.4.3-asterisk.patch, + -files/festival-1.95_beta-asterisk.patch, + -files/festival-1.95_beta-fbsd.patch, + -files/festival-1.95_beta-gcc41-amd64-int-pointer.patch, + -files/festival-1.95_beta-gcc41-amd64.patch, + -files/festival-1.95_beta-gcc41.patch, -files/festival-gcc3.3.diff, + -files/festival-1.95_beta-init-scm.patch, -festival-1.4.3-r3.ebuild, + -festival-1.4.3-r4.ebuild, -festival-1.95_beta.ebuild, + -festival-1.95_beta-r1.ebuild, -festival-1.95_beta-r2.ebuild, + -festival-1.95_beta-r3.ebuild, -festival-1.95_beta-r4.ebuild: + Removed old versions. 13 Mar 2008; William Hubbs <williamh@gentoo.org> festival-1.96_beta.ebuild: diff --git a/app-accessibility/festival/festival-1.4.3-r3.ebuild b/app-accessibility/festival/festival-1.4.3-r3.ebuild deleted file mode 100644 index c2f8dcd6f987..000000000000 --- a/app-accessibility/festival/festival-1.4.3-r3.ebuild +++ /dev/null @@ -1,209 +0,0 @@ -# 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.4.3-r3.ebuild,v 1.15 2007/04/28 17:18:39 swegener Exp $ - -inherit eutils - -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_ellpc11k.tar.gz - ${SITE}/festvox_kallpc16k.tar.gz - ${SITE}/festvox_kedlpc16k.tar.gz - ${SITE}/festvox_rablpc16k.tar.gz - ${SITE}/festvox_us1.tar.gz - ${SITE}/festvox_us2.tar.gz - ${SITE}/festvox_us3.tar.gz - doc? ( ${SITE}/festdoc-1.4.2.tar.gz )" - -LICENSE="FESTIVAL BSD as-is" -SLOT="0" -KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86" -IUSE="asterisk doc" - -RDEPEND=">=app-accessibility/speech-tools-1.2.3-r2 - !>=app-accessibility/speech-tools-1.2.95_beta" -DEPEND="${RDEPEND} - sys-apps/sed" - -S=${WORKDIR}/${PN} - -src_unpack() { - unpack ${P}-release.tar.gz - unpack festlex_CMU.tar.gz - unpack festlex_OALD.tar.gz - unpack festlex_POSLEX.tar.gz - unpack festvox_don.tar.gz - unpack festvox_ellpc11k.tar.gz - unpack festvox_kallpc16k.tar.gz - unpack festvox_kedlpc16k.tar.gz - unpack festvox_rablpc16k.tar.gz - unpack festvox_us1.tar.gz - unpack festvox_us2.tar.gz - unpack festvox_us3.tar.gz - - cd ${S} - - use doc && unpack festdoc-1.4.2.tar.gz && mv festdoc-1.4.2 festdoc - - epatch ${FILESDIR}/${PN}-gcc3.3.diff - - use asterisk && epatch ${FILESDIR}/${P}-asterisk.patch - - sed -i "s@EST=\$(TOP)/../speech_tools@EST=/usr/share/speech-tools@" config/config.in - - # testsuite still fails to build under gcc-3.2 - # sed -i '/^BUILD_DIRS =/s/testsuite//' Makefile || die - - sed -i "/^const char \*festival_libdir/s:FTLIBDIR:\"/usr/share/festival\":" src/arch/festival/festival.cc - sed -i '/^MODULE_LIBS/s/-ltermcap/-lncurses/' config/modules/editline.mak || die -} - -src_compile() { - econf || die - emake -j1 \ - PROJECT_LIBDEPS="" \ - REQUIRED_LIBDEPS="" \ - LOCAL_LIBDEPS="" \ - OPTIMISE_CXXFLAGS="${CXXFLAGS}" \ - OPTIMISE_CCFLAGS="${CFLAGS}" \ - || die -} - -src_install() { - # Install the binaries - cd ${WORKDIR}/festival/src/main - dobin festival - cd ${WORKDIR}/festival/examples - dobin saytime - cd ${WORKDIR}/festival/bin - dobin text2wave - cd ${WORKDIR}/festival/lib/etc/*Linux* - dobin audsp - - einfo - einfo "Please ignore errors about skipped directories. They are harmless." - einfo - - # Install the main libraries - insinto /usr/share/festival - doins ${WORKDIR}/festival/lib/* - - # Install the header files - insinto /usr/include/festival - doins ${WORKDIR}/festival/src/include/*.h - - # Install the dicts and vioces - FESTLIB=${WORKDIR}/festival/lib - DESTLIB=/usr/share/festival - insinto ${DESTLIB}/dicts - doins ${FESTLIB}/dicts/COPYING.poslex \ - ${FESTLIB}/dicts/wsj.wp39.poslexR ${FESTLIB}/dicts/wsj.wp39.tri.ngrambin - insinto ${DESTLIB}/dicts/cmu - doins ${FESTLIB}/dicts/cmu/* - insinto ${DESTLIB}/dicts/oald - doins ${FESTLIB}/dicts/oald/* - - FESTLIB=${WORKDIR}/festival/lib/voices/spanish/el_diphone - DESTLIB=/usr/share/festival/voices/spanish/el_diphone - insinto ${DESTLIB}/festvox - doins ${FESTLIB}/festvox/* - insinto ${DESTLIB}/group - doins ${FESTLIB}/group/* - - FESTLIB=${WORKDIR}/festival/lib/voices/english - DESTLIB=/usr/share/festival/voices/english - insinto ${DESTLIB}/don_diphone - doins ${FESTLIB}/don_diphone/* - insinto ${DESTLIB}/don_diphone/festvox - doins ${FESTLIB}/don_diphone/festvox/* - - insinto ${DESTLIB}/kal_diphone - doins ${FESTLIB}/kal_diphone/* - insinto ${DESTLIB}/kal_diphone/festvox - doins ${FESTLIB}/kal_diphone/festvox/* - insinto ${DESTLIB}/kal_diphone/group - doins ${FESTLIB}/kal_diphone/group/* - - insinto ${DESTLIB}/ked_diphone - doins ${FESTLIB}/ked_diphone/* - insinto ${DESTLIB}/ked_diphone/festvox - doins ${FESTLIB}/ked_diphone/festvox/* - insinto ${DESTLIB}/ked_diphone/group - doins ${FESTLIB}/ked_diphone/group/* - - insinto ${DESTLIB}/rab_diphone - doins ${FESTLIB}/rab_diphone/* - insinto ${DESTLIB}/rab_diphone/festvox - doins ${FESTLIB}/rab_diphone/festvox/* - insinto ${DESTLIB}/rab_diphone/group - doins ${FESTLIB}/rab_diphone/group/* - - insinto ${DESTLIB}/us1_mbrola - doins ${FESTLIB}/us1_mbrola/* - insinto ${DESTLIB}/us1_mbrola/festvox - doins ${FESTLIB}/us1_mbrola/festvox/* - - insinto ${DESTLIB}/us2_mbrola - doins ${FESTLIB}/us2_mbrola/* - insinto ${DESTLIB}/us2_mbrola/festvox - doins ${FESTLIB}/us2_mbrola/festvox/* - - insinto ${DESTLIB}/us3_mbrola - doins ${FESTLIB}/us3_mbrola/* - insinto ${DESTLIB}/us3_mbrola/festvox - doins ${FESTLIB}/us3_mbrola/festvox/* - - # Sample server.scm configuration for the server - insinto /etc/festival - doins ${FILESDIR}/server.scm - - # Install the init script - newinitd ${FILESDIR}/festival.rc festival - - # Need to fix saytime to look for festival in the correct spot - dosed "s:${WORKDIR}/festival/bin/festival:/usr/bin/festival:" /usr/bin/saytime - dosed "s:${WORKDIR}/festival/bin/festival:/usr/bin/festival:" /usr/bin/text2wave - - # Install the docs - cd ${S} # needed - into /usr - dodoc ACKNOWLEDGMENTS NEWS README - doman doc/festival.1 doc/festival_client.1 - - if use doc; then - cd ${S}/festdoc/festival/html - dohtml *.html - cd ${S}/festdoc/festival - dodoc festival.ps - cd ${S}/festdoc/festival/info - doinfo * - fi - - # We used to put stuff here, so be safe for now... - dodir /usr/lib - dosym ../share/festival /usr/lib/festival -} - -pkg_postinst() { - einfo - einfo " To test festival, simply type:" - einfo ' "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 - einfo " Emerge mbrola to enable some additional voices." - einfo -} diff --git a/app-accessibility/festival/festival-1.4.3-r4.ebuild b/app-accessibility/festival/festival-1.4.3-r4.ebuild deleted file mode 100644 index 2310189c1b70..000000000000 --- a/app-accessibility/festival/festival-1.4.3-r4.ebuild +++ /dev/null @@ -1,165 +0,0 @@ -# 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.4.3-r4.ebuild,v 1.12 2007/04/28 17:18:39 swegener 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 - linguas_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="~alpha amd64 ~hppa ~ia64 mips ~ppc ~ppc64 sparc ~x86" -IUSE="asterisk doc linguas_es mbrola" - -RDEPEND=">=app-accessibility/speech-tools-1.2.3-r2 - !>=app-accessibility/speech-tools-1.2.95_beta - 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 - newinitd ${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... -# -# If we do this, it gets deleted during an upgrade. -#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/festival-1.95_beta-r1.ebuild b/app-accessibility/festival/festival-1.95_beta-r1.ebuild deleted file mode 100644 index 82d42029ec2e..000000000000 --- a/app-accessibility/festival/festival-1.95_beta-r1.ebuild +++ /dev/null @@ -1,168 +0,0 @@ -# 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.95_beta-r1.ebuild,v 1.10 2007/04/28 17:18:39 swegener Exp $ - -inherit eutils toolchain-funcs - -DESCRIPTION="Festival Text to Speech engine" -HOMEPAGE="http://www.cstr.ed.ac.uk/" -SITE="http://www.cstr.ed.ac.uk/downloads/${PN}/${PV/_beta//}" -MY_P=${PN}-1.95-beta -SRC_URI="${SITE}/${MY_P}.tar.gz - ${SITE}/speech_tools-1.2.95-beta.tar.gz - ${SITE}/festlex_POSLEX.tar.gz - ${SITE}/festlex_CMU.tar.gz - ${SITE}/festlex_OALD.tar.gz - ${SITE}/festvox_rablpc16k.tar.gz - ${SITE}/festvox_don.tar.gz - ${SITE}/festvox_kallpc16k.tar.gz - ${SITE}/festvox_kedlpc16k.tar.gz - ${SITE}/festvox_cmu_us_bdl_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_slt_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_jmk_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_awb_arctic_hts.tar.gz - linguas_es? ( ${SITE}/festvox_ellpc11k.tar.gz ) - mbrola? ( - ${SITE}/festvox_en1.tar.gz - ${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="asterisk esd linguas_es mbrola X" - -RDEPEND="sys-libs/ncurses - esd? ( media-sound/esound ) - mbrola? ( >=app-accessibility/mbrola-3.0.1h-r2 )" - -DEPEND="${RDEPEND} - X? ( - x11-libs/libX11 - x11-libs/libXt ) - sys-apps/sed" - -S=${WORKDIR} - -src_unpack() { - unpack ${A} - - use asterisk && epatch ${FILESDIR}/${P}-asterisk.patch - use esd && sed -i -e 's/# \(INCLUDE_MODULES += ESD_AUDIO\)/\1/' ${S}/speech_tools/config/config.in - use X || sed -i -e 's/-lX11 -lXt//' ${S}/speech_tools/config/modules/esd_audio.mak - - # 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}/festival/src/arch/festival/festival.cc - sed -i -e '/^MODULE_LIBS/s/-ltermcap/-lncurses/' ${S}/festival/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}/festival/lib/festival.scm - - # gcc 4.1 compatibility patches - epatch ${FILESDIR}/${P}-gcc41.patch - epatch ${FILESDIR}/${P}-gcc41-amd64.patch - epatch ${FILESDIR}/${P}-gcc41-amd64-int-pointer.patch - - epatch ${FILESDIR}/${P}-init-scm.patch -} - -src_compile() { - cd ${S}/speech_tools - econf || die - emake -j1 OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die - cd ${S}/festival - 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}/festival/src/main/festival - dobin ${S}/festival/lib/etc/*Linux*/audsp - - # Install the main libraries - insinto /usr/share/festival - doins ${S}/festival/lib/* - - # Install the examples - insinto /usr/share/doc/${PF}/examples/ - doins -r ${S}/festival/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}/festival/bin/festival:/usr/bin/festival:" ${exnoext##$D} - done - - # Install the header files - insinto /usr/include/festival - doins ${S}/festival/src/include/*.h - - # Install the dicts - insinto /usr/share/festival/dicts - doins -r ${S}/festival/lib/dicts/* - - # Installs all existing voices, no matter what language. - insinto /usr/share/festival/voices - doins -r ${S}/festival/lib/voices/* - - insinto /etc/festival - # Sample server.scm configuration for the server - doins ${FILESDIR}/server.scm - doins ${S}/festival/lib/site* - - # Install the init script - newinitd ${FILESDIR}/festival.rc festival - - use mbrola && mbrola_voices - - # Install the docs - dodoc ${S}/festival/{ACKNOWLEDGMENTS,NEWS,README} - doman ${S}/festival/doc/{festival.1,festival_client.1} -} - -pkg_postinst() { - einfo - elog " Useful examples include saytime, text2wave. For example, try:" - elog " \"/usr/share/doc/${PF}/examples/saytime\"" - einfo - elog " Or for something more fun:" - elog ' "echo "Gentoo can speak" | festival --tts"' - einfo - elog " To enable the festival server at boot, run" - elog " rc-update add festival default" - einfo - elog " You must setup the server's port, access list, etc in this file:" - elog " /etc/festival/server.scm" - einfo - elog "This version also allows configuration of site specific" - elog "initialization in /etc/festival/siteinit.scm and" - elog "variables in /etc/festival/sitevars.scm." - einfo -} - -# 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}/festival/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/festival-1.95_beta-r2.ebuild b/app-accessibility/festival/festival-1.95_beta-r2.ebuild deleted file mode 100644 index bb8c05f8d612..000000000000 --- a/app-accessibility/festival/festival-1.95_beta-r2.ebuild +++ /dev/null @@ -1,169 +0,0 @@ -# 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.95_beta-r2.ebuild,v 1.2 2007/04/28 17:18:39 swegener Exp $ - -inherit eutils toolchain-funcs - -DESCRIPTION="Festival Text to Speech engine" -HOMEPAGE="http://www.cstr.ed.ac.uk/" -SITE="http://www.cstr.ed.ac.uk/downloads/${PN}/${PV/_beta//}" -MY_P=${PN}-1.95-beta -SRC_URI="${SITE}/${MY_P}.tar.gz - ${SITE}/speech_tools-1.2.95-beta.tar.gz - ${SITE}/festlex_POSLEX.tar.gz - ${SITE}/festlex_CMU.tar.gz - ${SITE}/festlex_OALD.tar.gz - ${SITE}/festvox_rablpc16k.tar.gz - ${SITE}/festvox_don.tar.gz - ${SITE}/festvox_kallpc16k.tar.gz - ${SITE}/festvox_kedlpc16k.tar.gz - ${SITE}/festvox_cmu_us_bdl_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_slt_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_jmk_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_awb_arctic_hts.tar.gz - linguas_es? ( ${SITE}/festvox_ellpc11k.tar.gz ) - mbrola? ( - ${SITE}/festvox_en1.tar.gz - ${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="asterisk esd linguas_es mbrola X" - -RDEPEND="sys-libs/ncurses - esd? ( media-sound/esound ) - mbrola? ( >=app-accessibility/mbrola-3.0.1h-r2 )" - -DEPEND="${RDEPEND} - X? ( - x11-libs/libX11 - x11-libs/libXt ) - sys-apps/sed" - -S=${WORKDIR} - -src_unpack() { - unpack ${A} - - use asterisk && epatch ${FILESDIR}/${P}-asterisk.patch - use esd && sed -i -e 's/# \(INCLUDE_MODULES += ESD_AUDIO\)/\1/' ${S}/speech_tools/config/config.in - use X || sed -i -e 's/-lX11 -lXt//' ${S}/speech_tools/config/modules/esd_audio.mak - - # 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}/festival/src/arch/festival/festival.cc - sed -i -e '/^MODULE_LIBS/s/-ltermcap/-lncurses/' ${S}/festival/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}/festival/lib/festival.scm - - # gcc 4.1 compatibility patches - epatch ${FILESDIR}/${P}-gcc41.patch - epatch ${FILESDIR}/${P}-gcc41-amd64.patch - epatch ${FILESDIR}/${P}-gcc41-amd64-int-pointer.patch - - epatch ${FILESDIR}/${P}-init-scm.patch -} - -src_compile() { - cd ${S}/speech_tools - econf || die - emake -j1 OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die - cd ${S}/festival - 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}/festival/src/main/festival - dobin ${S}/festival/lib/etc/*Linux*/audsp - dolib.a ${S}/festival/src/lib/libFestival.a - - # Install the main libraries - insinto /usr/share/festival - doins ${S}/festival/lib/* - - # Install the examples - insinto /usr/share/doc/${PF}/examples/ - doins -r ${S}/festival/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}/festival/bin/festival:/usr/bin/festival:" ${exnoext##$D} - done - - # Install the header files - insinto /usr/include/festival - doins ${S}/festival/src/include/*.h - - # Install the dicts - insinto /usr/share/festival/dicts - doins -r ${S}/festival/lib/dicts/* - - # Installs all existing voices, no matter what language. - insinto /usr/share/festival/voices - doins -r ${S}/festival/lib/voices/* - - insinto /etc/festival - # Sample server.scm configuration for the server - doins ${FILESDIR}/server.scm - doins ${S}/festival/lib/site* - - # Install the init script - newinitd ${FILESDIR}/festival.rc festival - - use mbrola && mbrola_voices - - # Install the docs - dodoc ${S}/festival/{ACKNOWLEDGMENTS,NEWS,README} - doman ${S}/festival/doc/{festival.1,festival_client.1} -} - -pkg_postinst() { - einfo - elog " Useful examples include saytime, text2wave. For example, try:" - elog " \"/usr/share/doc/${PF}/examples/saytime\"" - einfo - elog " Or for something more fun:" - elog ' "echo "Gentoo can speak" | festival --tts"' - einfo - elog " To enable the festival server at boot, run" - elog " rc-update add festival default" - einfo - elog " You must setup the server's port, access list, etc in this file:" - elog " /etc/festival/server.scm" - einfo - elog "This version also allows configuration of site specific" - elog "initialization in /etc/festival/siteinit.scm and" - elog "variables in /etc/festival/sitevars.scm." - einfo -} - -# 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}/festival/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/festival-1.95_beta-r3.ebuild b/app-accessibility/festival/festival-1.95_beta-r3.ebuild deleted file mode 100644 index 47c6bd5e47ef..000000000000 --- a/app-accessibility/festival/festival-1.95_beta-r3.ebuild +++ /dev/null @@ -1,169 +0,0 @@ -# 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.95_beta-r3.ebuild,v 1.2 2007/04/28 17:18:39 swegener Exp $ - -inherit eutils toolchain-funcs - -DESCRIPTION="Festival Text to Speech engine" -HOMEPAGE="http://www.cstr.ed.ac.uk/" -SITE="http://www.cstr.ed.ac.uk/downloads/${PN}/${PV/_beta//}" -MY_P=${PN}-1.95-beta -SRC_URI="${SITE}/${MY_P}.tar.gz - ${SITE}/speech_tools-1.2.95-beta.tar.gz - ${SITE}/festlex_POSLEX.tar.gz - ${SITE}/festlex_CMU.tar.gz - ${SITE}/festlex_OALD.tar.gz - ${SITE}/festvox_rablpc16k.tar.gz - ${SITE}/festvox_don.tar.gz - ${SITE}/festvox_kallpc16k.tar.gz - ${SITE}/festvox_kedlpc16k.tar.gz - ${SITE}/festvox_cmu_us_bdl_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_slt_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_jmk_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_awb_arctic_hts.tar.gz - linguas_es? ( ${SITE}/festvox_ellpc11k.tar.gz ) - mbrola? ( - ${SITE}/festvox_en1.tar.gz - ${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="asterisk esd linguas_es mbrola X" - -RDEPEND="sys-libs/ncurses - esd? ( media-sound/esound ) - mbrola? ( >=app-accessibility/mbrola-3.0.1h-r2 )" - -DEPEND="${RDEPEND} - X? ( - x11-libs/libX11 - x11-libs/libXt ) - sys-apps/sed" - -S=${WORKDIR} - -src_unpack() { - unpack ${A} - - use asterisk && epatch ${FILESDIR}/${P}-asterisk.patch - use esd && sed -i -e 's/# \(INCLUDE_MODULES += ESD_AUDIO\)/\1/' ${S}/speech_tools/config/config.in - use X || sed -i -e 's/-lX11 -lXt//' ${S}/speech_tools/config/modules/esd_audio.mak - - # 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}/festival/src/arch/festival/festival.cc - sed -i -e '/^MODULE_LIBS/s/-ltermcap/-lncurses/' ${S}/festival/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}/festival/lib/festival.scm - - # gcc 4.1 compatibility patches - epatch ${FILESDIR}/${P}-gcc41.patch - epatch ${FILESDIR}/${P}-gcc41-amd64.patch - epatch ${FILESDIR}/${P}-gcc41-amd64-int-pointer.patch - - epatch ${FILESDIR}/${P}-init-scm.patch -} - -src_compile() { - cd ${S}/speech_tools - econf || die - emake -j1 OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die - cd ${S}/festival - 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}/festival/src/main/festival - dobin ${S}/festival/lib/etc/*Linux*/audsp - dolib.a ${S}/festival/src/lib/libFestival.a - - # Install the main libraries - insinto /usr/share/festival - doins -r ${S}/festival/lib/* - - # Install the examples - insinto /usr/share/doc/${PF}/examples/ - doins -r ${S}/festival/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}/festival/bin/festival:/usr/bin/festival:" ${exnoext##$D} - done - - # Install the header files - insinto /usr/include/festival - doins ${S}/festival/src/include/*.h - - # Install the dicts - insinto /usr/share/festival/dicts - doins -r ${S}/festival/lib/dicts/* - - # Installs all existing voices, no matter what language. - insinto /usr/share/festival/voices - doins -r ${S}/festival/lib/voices/* - - insinto /etc/festival - # Sample server.scm configuration for the server - doins ${FILESDIR}/server.scm - doins ${S}/festival/lib/site* - - # Install the init script - newinitd ${FILESDIR}/festival.rc festival - - use mbrola && mbrola_voices - - # Install the docs - dodoc ${S}/festival/{ACKNOWLEDGMENTS,NEWS,README} - doman ${S}/festival/doc/{festival.1,festival_client.1} -} - -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}/festival/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/festival-1.95_beta-r4.ebuild b/app-accessibility/festival/festival-1.95_beta-r4.ebuild deleted file mode 100644 index 69a7676cf733..000000000000 --- a/app-accessibility/festival/festival-1.95_beta-r4.ebuild +++ /dev/null @@ -1,180 +0,0 @@ -# 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.95_beta-r4.ebuild,v 1.9 2007/07/06 10:39:12 uberlord Exp $ - -inherit eutils toolchain-funcs - -DESCRIPTION="Festival Text to Speech engine" -HOMEPAGE="http://www.cstr.ed.ac.uk/" -SITE="http://www.cstr.ed.ac.uk/downloads/${PN}/${PV/_beta//}" -MY_P=${PN}-1.95-beta -SRC_URI="${SITE}/${MY_P}.tar.gz - ${SITE}/speech_tools-1.2.95-beta.tar.gz - ${SITE}/festlex_POSLEX.tar.gz - ${SITE}/festlex_CMU.tar.gz - ${SITE}/festlex_OALD.tar.gz - ${SITE}/festvox_rablpc16k.tar.gz - ${SITE}/festvox_don.tar.gz - ${SITE}/festvox_kallpc16k.tar.gz - ${SITE}/festvox_kedlpc16k.tar.gz - ${SITE}/festvox_cmu_us_bdl_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_slt_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_jmk_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_awb_arctic_hts.tar.gz - linguas_es? ( ${SITE}/festvox_ellpc11k.tar.gz ) - mbrola? ( - ${SITE}/festvox_en1.tar.gz - ${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 ~x86-fbsd" -IUSE="asterisk esd linguas_es mbrola X" - -RDEPEND="sys-libs/ncurses - esd? ( media-sound/esound ) - mbrola? ( >=app-accessibility/mbrola-3.0.1h-r2 )" - -DEPEND="${RDEPEND} - X? ( - x11-libs/libX11 - x11-libs/libXt ) - sys-apps/sed" - -S=${WORKDIR} - -pkg_setup() { - enewuser festival -1 -1 -1 audio -} - -src_unpack() { - unpack ${A} - - use asterisk && epatch ${FILESDIR}/${P}-asterisk.patch - use esd && sed -i -e 's/# \(INCLUDE_MODULES += ESD_AUDIO\)/\1/' ${S}/speech_tools/config/config.in - use X || sed -i -e 's/-lX11 -lXt//' ${S}/speech_tools/config/modules/esd_audio.mak - - # 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}/festival/src/arch/festival/festival.cc - sed -i -e '/^MODULE_LIBS/s/-ltermcap/-lncurses/' ${S}/festival/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}/festival/lib/festival.scm - - epatch ${FILESDIR}/${P}-init-scm.patch - - # Allow building on fbsd, #183686 - epatch ${FILESDIR}/${P}-fbsd.patch - - # gcc 4.1 compatibility patches - epatch ${FILESDIR}/${P}-gcc41.patch - epatch ${FILESDIR}/${P}-gcc41-amd64-int-pointer.patch - epatch ${FILESDIR}/${P}-gcc41-amd64.patch -} - -src_compile() { - cd ${S}/speech_tools - econf || die - emake -j1 OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die - cd ${S}/festival - 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}/festival/src/main/festival - dobin ${S}/festival/lib/etc/*Linux*/audsp - dolib.a ${S}/festival/src/lib/libFestival.a - - # Install the main libraries - insinto /usr/share/festival - doins -r ${S}/festival/lib/* - - # Install the examples - insinto /usr/share/doc/${PF}/examples/ - doins -r ${S}/festival/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}/festival/bin/festival:/usr/bin/festival:" ${exnoext##$D} - done - - # Install the header files - insinto /usr/include/festival - doins ${S}/festival/src/include/*.h - - # Install the dicts - insinto /usr/share/festival/dicts - doins -r ${S}/festival/lib/dicts/* - - # Installs all existing voices, no matter what language. - insinto /usr/share/festival/voices - doins -r ${S}/festival/lib/voices/* - - insinto /etc/festival - # Sample server.scm configuration for the server - doins ${FILESDIR}/server.scm - doins ${S}/festival/lib/site* - - # Install the init script - newinitd ${FILESDIR}/festival.rc festival - - use mbrola && mbrola_voices - - # Install the docs - dodoc ${S}/festival/{ACKNOWLEDGMENTS,NEWS,README} - doman ${S}/festival/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 " 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}/festival/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/festival-1.95_beta.ebuild b/app-accessibility/festival/festival-1.95_beta.ebuild deleted file mode 100644 index 734016a4b2e6..000000000000 --- a/app-accessibility/festival/festival-1.95_beta.ebuild +++ /dev/null @@ -1,159 +0,0 @@ -# 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.95_beta.ebuild,v 1.8 2007/04/28 17:18:39 swegener Exp $ - -inherit eutils toolchain-funcs - -DESCRIPTION="Festival Text to Speech engine" -HOMEPAGE="http://www.cstr.ed.ac.uk/" -SITE="http://www.cstr.ed.ac.uk/downloads/${PN}/${PV/_beta//}" -MY_P=${PN}-1.95-beta -SRC_URI="${SITE}/${MY_P}.tar.gz - ${SITE}/speech_tools-1.2.95-beta.tar.gz - ${SITE}/festlex_POSLEX.tar.gz - ${SITE}/festlex_CMU.tar.gz - ${SITE}/festlex_OALD.tar.gz - ${SITE}/festvox_rablpc16k.tar.gz - ${SITE}/festvox_don.tar.gz - ${SITE}/festvox_kallpc16k.tar.gz - ${SITE}/festvox_kedlpc16k.tar.gz - ${SITE}/festvox_cmu_us_bdl_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_slt_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_jmk_arctic_hts.tar.gz - ${SITE}/festvox_cmu_us_awb_arctic_hts.tar.gz - linguas_es? ( ${SITE}/festvox_ellpc11k.tar.gz ) - mbrola? ( - ${SITE}/festvox_en1.tar.gz - ${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="asterisk esd linguas_es mbrola X" - -RDEPEND="sys-libs/ncurses - mbrola? ( >=app-accessibility/mbrola-3.0.1h-r2 )" - -DEPEND="${RDEPEND} - sys-apps/sed" - -S=${WORKDIR} - -src_unpack() { - unpack ${A} - - use asterisk && epatch ${FILESDIR}/${P}-asterisk.patch - use esd && sed -i -e 's/# \(INCLUDE_MODULES += ESD_AUDIO\)/\1/' ${S}/speech_tools/config/config.in - use X || sed -i -e 's/-lX11 -lXt//' ${S}/speech_tools/config/modules/esd_audio.mak - - # 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}/festival/src/arch/festival/festival.cc - sed -i -e '/^MODULE_LIBS/s/-ltermcap/-lncurses/' ${S}/festival/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}/festival/lib/festival.scm - - # gcc 4.1 compatibility patches - epatch ${FILESDIR}/${P}-gcc41.patch - if use amd64; then - epatch ${FILESDIR}/${P}-gcc41-amd64.patch - epatch ${FILESDIR}/${P}-gcc41-amd64-int-pointer.patch - fi -} - -src_compile() { - cd ${S}/speech_tools - econf || die - emake -j1 OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die - cd ${S}/festival - 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}/festival/src/main/festival - dobin ${S}/festival/lib/etc/*Linux*/audsp - - # Install the main libraries - insinto /usr/share/festival - doins ${S}/festival/lib/* - - # Install the examples - insinto /usr/share/doc/${PF}/examples/ - doins -r ${S}/festival/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}/festival/bin/festival:/usr/bin/festival:" ${exnoext##$D} - done - - # Install the header files - insinto /usr/include/festival - doins ${S}/festival/src/include/*.h - - # Install the dicts - insinto /usr/share/festival/dicts - doins -r ${S}/festival/lib/dicts/* - - # Installs all existing voices, no matter what language. - insinto /usr/share/festival/voices - doins -r ${S}/festival/lib/voices/* - - # Sample server.scm configuration for the server - insinto /etc/festival - doins ${FILESDIR}/server.scm - - # Install the init script - newinitd ${FILESDIR}/festival.rc festival - - use mbrola && mbrola_voices - - # Install the docs - dodoc ${S}/festival/{ACKNOWLEDGMENTS,NEWS,README} - doman ${S}/festival/doc/{festival.1,festival_client.1} -} - -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 -} - -# 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}/festival/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/festival-1.4.3-asterisk.patch b/app-accessibility/festival/files/festival-1.4.3-asterisk.patch deleted file mode 100644 index d6d7885e1949..000000000000 --- a/app-accessibility/festival/files/festival-1.4.3-asterisk.patch +++ /dev/null @@ -1,93 +0,0 @@ -diff -u -r festival-1.4.3/lib/tts.scm festival-1.4.3-asterisk/lib/tts.scm ---- festival-1.4.3.orig/lib/tts.scm 2003-01-09 07:39:22.000000000 -0800 -+++ festival/lib/tts.scm 2003-08-14 12:07:00.000000000 -0700 -@@ -234,6 +234,17 @@ - (utt.synth - (eval (list 'Utterance 'Text string)))))) - -+;; begin tts_textasterisk -+(define (tts_textasterisk string mode) -+ "(tts_textasterisk STRING MODE) -+Apply tts to STRING. This function is specifically designed for -+use in server mode so a single function call may synthesize the string. -+This function name may be added to the server safe functions." -+ (utt.send.wave.asterisk -+ (utt.synth -+ (eval (list 'Utterance 'Text string))))) -+;; end tts_textasterisk -+ - (define (tts_return_to_client) - "(tts_return_to_client) - This function is called by clients who wish to return waveforms of -diff -u -r festival-1.4.3/src/arch/festival/wave.cc festival-1.4.3-asterisk/src/arch/festival/wave.cc ---- festival-1.4.3.orig/src/arch/festival/wave.cc 2003-01-13 11:09:55.000000000 -0800 -+++ festival/src/arch/festival/wave.cc 2003-08-14 12:10:53.000000000 -0700 -@@ -381,6 +381,7 @@ - type = "nist"; - else - type = get_c_string(ltype); -+ - w->save(tmpfile,type); - #ifdef WIN32 - send(ft_server_socket,"WV\n",3,0); -@@ -393,6 +394,44 @@ - return utt; - } - -+// begin utt_send_wave_asterisk() -+static LISP utt_send_wave_asterisk(LISP utt) -+{ -+ // Send the waveform to a client (must be acting as server) -+ EST_Utterance *u = utterance(utt); -+ EST_Wave *w; -+ EST_String tmpfile = make_tmp_filename(); -+ LISP ltype; -+ EST_String type; -+ -+ w = get_utt_wave(u); -+ if (ft_server_socket == -1) -+ { -+ cerr << "utt_send_wave_client: not in server mode" << endl; -+ festival_error(); -+ } -+ -+ ltype = ft_get_param("Wavefiletype"); -+ if (ltype == NIL) -+ type = "nist"; -+ else -+ type = get_c_string(ltype); -+ w->resample(8000); -+ w->rescale(5); -+ -+ w->save(tmpfile,type); -+#ifdef WIN32 -+ send(ft_server_socket,"WV\n",3,0); -+#else -+ write(ft_server_socket,"WV\n",3); -+#endif -+ socket_send_file(ft_server_socket,tmpfile); -+ unlink(tmpfile); -+ -+ return utt; -+} -+// end utt_send_wave_asterisk() -+ - static LISP send_sexpr_to_client(LISP l) - { - EST_String tmpfile = make_tmp_filename(); -@@ -465,6 +504,15 @@ - "(utt.send.wave.client UTT)\n\ - Sends wave in UTT to client. If not in server mode gives an error\n\ - Note the client must be expecting to receive the waveform."); -+ -+// begin asterisk mod -+ init_subr_1("utt.send.wave.asterisk",utt_send_wave_asterisk, -+ "(utt.send.wave.asterisk UTT)\n\ -+ Sends wave in UTT to client. If not in server mode gives an error\n\ -+ Note the client must be expecting to receive the waveform. The waveform\ -+ is rescaled and resampled according to what asterisk needs"); -+// end asterisk mod -+ - init_subr_1("send_sexpr_to_client", send_sexpr_to_client, - "(send_sexpr_to_client SEXPR)\n\ - Sends given sexpression to currently connected client."); diff --git a/app-accessibility/festival/files/festival-1.95_beta-asterisk.patch b/app-accessibility/festival/files/festival-1.95_beta-asterisk.patch deleted file mode 100644 index e4e2106e15c6..000000000000 --- a/app-accessibility/festival/files/festival-1.95_beta-asterisk.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- festival/lib/festival.scm.o 2006-03-19 17:30:55.000000000 -0600 -+++ festival/lib/festival.scm 2006-03-19 17:36:07.000000000 -0600 -@@ -621,4 +621,14 @@ - "tobi.scm" "f2bf0lr.scm")) - t) - -+;;; Command for Asterisk begin -+(define (tts_textasterisk string mode) -+ "(tts_textasterisk STRING MODE) -+ Apply tts to STRING. This function is specifically designed for -+ use in server mode so a single function call may synthesize the string. -+ This function name may be added to the server safe functions." -+ (utt.send.wave.client (utt.wave.resample (utt.wave.rescale (utt.synth -+ (eval (list 'Utterance 'Text string))) 5) 8000))) -+ ;;; Command for Asterisk end -+ - (provide 'festival) diff --git a/app-accessibility/festival/files/festival-1.95_beta-fbsd.patch b/app-accessibility/festival/files/festival-1.95_beta-fbsd.patch deleted file mode 100644 index 1d7622007076..000000000000 --- a/app-accessibility/festival/files/festival-1.95_beta-fbsd.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- speech_tools/audio/voxware.cc.orig 2007-06-29 14:37:11 -0700 -+++ speech_tools/audio/voxware.cc 2007-06-29 14:37:37 -0700 -@@ -61,7 +61,7 @@ - #include "EST_error.h" - - #ifdef SUPPORT_FREEBSD16 --#include <machine/soundcard.h> -+#include <sys/soundcard.h> - #include <fcntl.h> - int freebsd16_supported = TRUE; - int linux16_supported = FALSE; ---- speech_tools/audio/voxware.cc.orig 2007-06-29 14:53:01 -0700 -+++ speech_tools/audio/voxware.cc 2007-06-29 14:53:20 -0700 -@@ -66,6 +66,7 @@ - int freebsd16_supported = TRUE; - int linux16_supported = FALSE; - static char *aud_sys_name = "FreeBSD"; -+static int stereo_only = 0; - #endif - - #ifdef SUPPORT_LINUX16 diff --git a/app-accessibility/festival/files/festival-1.95_beta-gcc41-amd64-int-pointer.patch b/app-accessibility/festival/files/festival-1.95_beta-gcc41-amd64-int-pointer.patch deleted file mode 100644 index 25f162012fa1..000000000000 --- a/app-accessibility/festival/files/festival-1.95_beta-gcc41-amd64-int-pointer.patch +++ /dev/null @@ -1,359 +0,0 @@ ---- speech_tools/include/EST_simplestats.h 2006/07/21 02:18:39 1.1 -+++ speech_tools/include/EST_simplestats.h 2006/07/21 02:35:43 -@@ -194,7 +194,7 @@ enum EST_tprob_type {tprob_string, tprob - for example - \begin{verbatim} - EST_DiscreteProbistribution pdf; -- for (int i=pdf.item_start(); i < pdf.item_end(); i=pdf.item_next(i)) -+ for (long i=pdf.item_start(); i < pdf.item_end(); i=pdf.item_next(i)) - { - EST_String name; - double prob; -@@ -265,17 +265,17 @@ public: - /// - double frequency(const int i) const; - /// Used for iterating through members of the distribution -- int item_start() const; -+ long item_start() const; - /// Used for iterating through members of the distribution -- int item_next(int idx) const; -+ long item_next(long idx) const; - /// Used for iterating through members of the distribution -- int item_end(int idx) const; -+ int item_end(long idx) const; - /// During iteration returns name given index -- const EST_String &item_name(int idx) const; -+ const EST_String &item_name(long idx) const; - /// During iteration returns name and frequency given index -- void item_freq(int idx,EST_String &s,double &freq) const; -+ void item_freq(long idx,EST_String &s,double &freq) const; - /// During iteration returns name and probability given index -- void item_prob(int idx,EST_String &s,double &prob) const; -+ void item_prob(long idx,EST_String &s,double &prob) const; - - /// Returns discrete vocabulary of distribution - inline const EST_Discrete *const get_discrete() const { return discrete; }; ---- speech_tools/stats/wagon/wagon_aux.cc 2006/07/21 02:18:39 1.1 -+++ speech_tools/stats/wagon/wagon_aux.cc 2006/07/21 02:36:09 -@@ -537,7 +537,7 @@ ostream & operator <<(ostream &s, WImpur - } - else if (imp.t == wnim_class) - { -- int i; -+ long i; - EST_String name; - double prob; - ---- speech_tools/stats/EST_DProbDist.cc 2006/07/21 02:18:39 1.1 -+++ speech_tools/stats/EST_DProbDist.cc 2006/07/21 02:41:32 -@@ -305,15 +305,15 @@ double EST_DiscreteProbDistribution::ent - } - - // For iterating through members of a probability distribution --int EST_DiscreteProbDistribution::item_start(void) const -+long EST_DiscreteProbDistribution::item_start(void) const - { - if (type == tprob_discrete) - return 0; - else -- return (int)scounts.list.head(); -+ return (long)scounts.list.head(); - } - --int EST_DiscreteProbDistribution::item_end(int idx) const -+int EST_DiscreteProbDistribution::item_end(long idx) const - { - if (type == tprob_discrete) - return (idx >= icounts.length()); -@@ -321,15 +321,15 @@ int EST_DiscreteProbDistribution::item_e - return ((EST_Litem *)idx == 0); - } - --int EST_DiscreteProbDistribution::item_next(int idx) const -+long EST_DiscreteProbDistribution::item_next(long idx) const - { - if (type == tprob_discrete) - return ++idx; - else -- return (int)next((EST_Litem *)idx); -+ return (long)next((EST_Litem *)idx); - } - --const EST_String &EST_DiscreteProbDistribution::item_name(int idx) const -+const EST_String &EST_DiscreteProbDistribution::item_name(long idx) const - { - if (type == tprob_discrete) - return discrete->name(idx); -@@ -337,7 +337,7 @@ const EST_String &EST_DiscreteProbDistri - return scounts.list((EST_Litem *)idx).k; - } - --void EST_DiscreteProbDistribution::item_freq(int idx,EST_String &s,double &freq) const -+void EST_DiscreteProbDistribution::item_freq(long idx,EST_String &s,double &freq) const - { - if (type == tprob_discrete) - { -@@ -351,7 +351,7 @@ void EST_DiscreteProbDistribution::item_ - } - } - --void EST_DiscreteProbDistribution::item_prob(int idx,EST_String &s,double &prob) const -+void EST_DiscreteProbDistribution::item_prob(long idx,EST_String &s,double &prob) const - { - if (type == tprob_discrete) - { -@@ -368,7 +368,7 @@ void EST_DiscreteProbDistribution::item_ - ostream & operator<<(ostream &s, const EST_DiscreteProbDistribution &pd) - { - // Output best with probabilities -- int i; -+ long i; - double prob; - double sum=0; - EST_String name; ---- speech_tools/grammar/ngram/EST_Ngrammar.cc 2006/07/21 02:18:39 1.1 -+++ speech_tools/grammar/ngram/EST_Ngrammar.cc 2006/07/21 02:38:54 -@@ -180,7 +180,7 @@ bool EST_BackoffNgrammarState::accumulat - const double count) - { - --// int i; -+// long i; - // cerr << "accumulate level " << p_level << " : "; - // for(i=0;i<words.n();i++) - // { -@@ -302,7 +302,7 @@ void EST_BackoffNgrammarState::print_fre - // not right - just print out, then recurse through children - // change to use 'backoff_traverse' - -- int k; -+ long k; - double freq; - EST_String name; - for (k=p_pdf.item_start(); -@@ -369,7 +369,7 @@ void EST_BackoffNgrammarState::zap() - { - - // recursively delete this state and all its children -- int k; -+ long k; - double freq; - EST_String name; - for (k=p_pdf.item_start(); -@@ -452,7 +452,7 @@ bool EST_BackoffNgrammarState::set_backo - - void EST_BackoffNgrammarState::frequency_of_frequencies(EST_DVector &ff) - { -- int k,max=ff.n(); -+ long k; int max=ff.n(); - double freq; - EST_String name; - for (k=p_pdf.item_start(); -@@ -911,7 +911,7 @@ void EST_Ngrammar::accumulate(const EST_ - { - - /* -- int i; -+ long i; - for(i=0;i<words.n();i++) - { - cerr << vocab_pdf.item_name(words(i)); -@@ -1581,7 +1581,7 @@ void EST_Ngrammar::prune_backoff_represe - // remove any branches with zero frequency count - - // find children of this state with zero freq and zap them -- int k; -+ long k; - double freq; - EST_String name; - for (k=start_state->pdf_const().item_start(); -@@ -2320,7 +2320,7 @@ void EST_Ngrammar::print_freqs(ostream & - backoff_representation->print_freqs(os,p_order); - else - { -- int i,j,k; -+ int i,j; long k; - EST_IVector window(p_order-1); - - for (i=0; i < p_num_states; i++) -@@ -2661,7 +2661,7 @@ EST_Ngrammar::backoff_traverse(EST_Backo - function(start_state,params); - - // and recurse down the tree -- int k; -+ long k; - double freq; - EST_String name; - for (k=start_state->pdf_const().item_start(); -@@ -2692,7 +2692,7 @@ EST_Ngrammar::backoff_traverse(EST_Backo - { - // and recurse down the tree if we haven't - // reached the level yet -- int k; -+ long k; - double freq; - EST_String name; - ---- speech_tools/grammar/ngram/ngrammar_io.cc 2006/07/21 02:18:39 1.1 -+++ speech_tools/grammar/ngram/ngrammar_io.cc 2006/07/21 02:39:05 -@@ -281,7 +281,7 @@ EST_read_status - load_ngram_cstr_bin(const EST_String filename, EST_Ngrammar &n) - { - EST_TokenStream ts; -- int i,j,k,order; -+ int i,j,order; long k; - int num_entries; - double approx_num_samples = 0.0; - long freq_data_start, freq_data_end; -@@ -407,7 +407,7 @@ EST_write_status - save_ngram_htk_ascii_sub(const EST_String &word, ostream *ost, - EST_Ngrammar &n, double floor) - { -- int k; -+ long k; - EST_String name; - double freq; - EST_StrVector this_ngram(2); // assumes bigram -@@ -734,7 +734,7 @@ save_ngram_cstr_ascii(const EST_String f - // awb's format - (void)trace; - ostream *ost; -- int i,k; -+ int i; long k; - - if (filename == "-") - ost = &cout; -@@ -831,7 +831,7 @@ save_ngram_cstr_bin(const EST_String fil - if (n.representation() == EST_Ngrammar::sparse) - return misc_write_error; - -- int i,k; -+ int i; long k; - FILE *ofd; - double lfreq = -1; - double count = -1; ---- speech_tools/grammar/ngram/ngrammar_aux.cc 2006/07/21 02:18:39 1.1 -+++ speech_tools/grammar/ngram/ngrammar_aux.cc 2006/07/21 02:39:20 -@@ -117,7 +117,7 @@ smooth_ExponentialFit(EST_DVector &N, in - - void make_f_of_f(EST_BackoffNgrammarState *s,void *params) - { -- int k; -+ long k; - double freq; - EST_String name; - -@@ -138,7 +138,7 @@ void make_f_of_f(EST_BackoffNgrammarStat - - void get_max_f(EST_BackoffNgrammarState *s,void *params) - { -- int k; -+ long k; - double freq; - EST_String name; - -@@ -158,7 +158,7 @@ void get_max_f(EST_BackoffNgrammarState - - void map_f_of_f(EST_BackoffNgrammarState *s,void *params) - { -- int k; -+ long k; - double freq; - EST_String name; - -@@ -184,7 +184,7 @@ void map_f_of_f(EST_BackoffNgrammarState - - void zero_small_f(EST_BackoffNgrammarState *s,void *params) - { -- int k; -+ long k; - double freq; - EST_String name; - -@@ -204,7 +204,7 @@ void zero_small_f(EST_BackoffNgrammarSta - - void frequency_of_frequencies(EST_DVector &ff, EST_Ngrammar &n,int this_order) - { -- int i,k,size; -+ int i,size; long k; - double max=0.0; - - // if ff has zero size, do complete frequency of frequencies -@@ -302,7 +302,7 @@ void frequency_of_frequencies(EST_DVecto - - void map_frequencies(EST_Ngrammar &n, const EST_DVector &map, const int this_order) - { -- int i,k; -+ int i; long k; - - - switch(n.representation()) ---- speech_tools/grammar/ngram/EST_PST.cc 2006/07/21 02:18:39 1.1 -+++ speech_tools/grammar/ngram/EST_PST.cc 2006/07/21 02:39:31 -@@ -71,7 +71,7 @@ EST_PredictionSuffixTree_tree_node::prin - // Base -- print from pd - EST_String s; - double freq; -- for (int i = pd.item_start(); -+ for (long i = pd.item_start(); - !pd.item_end(i); - i=pd.item_next(i)) - { -@@ -98,7 +98,7 @@ EST_PredictionSuffixTree_tree_node::prin - EST_String s; - double prob; - os << get_path() << " :"; -- for (int i = pd.item_start(); !pd.item_end(i) ; i=pd.item_next(i)) -+ for (long i = pd.item_start(); !pd.item_end(i) ; i=pd.item_next(i)) - { - pd.item_prob(i,s,prob); - os << " " << s << " " << prob; ---- speech_tools/grammar/ngram/freqsmooth.cc 2006/07/21 02:18:39 1.1 -+++ speech_tools/grammar/ngram/freqsmooth.cc 2006/07/21 02:46:42 -@@ -74,7 +74,7 @@ void fs_build_backoff_ngrams(EST_Ngramma - EST_Ngrammar &ngram) - { - // Build all the backoff grammars back to uni-grams -- int i,j,k,l; -+ int i,j,l; long k; - - for (i=0; i < ngram.order()-1; i++) - backoff_ngrams[i].init(i+1,EST_Ngrammar::dense, -@@ -110,7 +110,7 @@ int fs_backoff_smooth(EST_Ngrammar *back - { - // For all ngrams which are too infrequent, adjust their - // frequencies based on their backoff probabilities -- int i,j; -+ int i; long j; - double occurs; - double backoff_prob; - ---- speech_tools/grammar/wfst/wfst_train.cc 2006/07/21 02:18:39 1.1 -+++ speech_tools/grammar/wfst/wfst_train.cc 2006/07/21 02:39:47 -@@ -299,7 +299,7 @@ static LISP find_best_split(EST_WFST &wf - LISP *ssplits; - gc_protect(&splits); - EST_String sname; -- int b,best_b,i; -+ int b,best_b; long i; - int num_pdfs; - double best_score, score, sfreq; - -@@ -374,7 +374,7 @@ static double score_pdf_combine(EST_Disc - // Find score of (a+b) vs (all-(a+b)) - EST_DiscreteProbDistribution ab(a); - EST_DiscreteProbDistribution all_but_ab(all); -- int i; -+ long i; - EST_String sname; - double sfreq, score; - for (i=b.item_start(); !b.item_end(i); -@@ -506,7 +506,7 @@ static double find_score_if_split(EST_WF - EST_DiscreteProbDistribution pdf_split(&wfst.in_symbols()); - EST_DiscreteProbDistribution pdf_remain(&wfst.in_symbols()); - int in, tostate, id; -- int i; -+ long i; - double sfreq; - EST_String sname; - diff --git a/app-accessibility/festival/files/festival-1.95_beta-gcc41-amd64.patch b/app-accessibility/festival/files/festival-1.95_beta-gcc41-amd64.patch deleted file mode 100644 index d6ab0749ae45..000000000000 --- a/app-accessibility/festival/files/festival-1.95_beta-gcc41-amd64.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- speech_tools/ling_class/item_feats.cc 2006/06/27 11:43:49 1.1 -+++ speech_tools/ling_class/item_feats.cc 2006/06/27 11:44:25 -@@ -78,7 +78,7 @@ EST_String get_featname(const EST_Item_f - EST_String name = EST_FeatureFunctionContext::global->get_featfunc_name(func, found); - - if (!found) -- EST_error("featfunc 0x%x has no name", (int)func); -+ EST_error("featfunc 0x%p has no name", func); - - return name; - } diff --git a/app-accessibility/festival/files/festival-1.95_beta-gcc41.patch b/app-accessibility/festival/files/festival-1.95_beta-gcc41.patch deleted file mode 100644 index 72da4177bf2f..000000000000 --- a/app-accessibility/festival/files/festival-1.95_beta-gcc41.patch +++ /dev/null @@ -1,77 +0,0 @@ ---- speech_tools/include/EST_Chunk.h 2006/06/05 00:32:45 1.1 -+++ speech_tools/include/EST_Chunk.h 2006/06/05 01:41:28 -@@ -103,6 +103,8 @@ - /* */ - /************************************************************************/ - -+class EST_ChunkPtr; -+ - class EST_Chunk { - public: - typedef unsigned short use_counter; -@@ -152,6 +154,13 @@ class EST_Chunk { - /* */ - /************************************************************************/ - -+EST_ChunkPtr chunk_allocate(int bytes); -+EST_ChunkPtr chunk_allocate(int bytes, const char *initial, int initial_len); -+EST_ChunkPtr chunk_allocate(int bytes, const EST_ChunkPtr &initial, int initial_start, int initial_len); -+ -+void make_updatable(EST_ChunkPtr &shared, EST_Chunk::EST_chunk_size inuse); -+void make_updatable(EST_ChunkPtr &shared); -+ - class EST_ChunkPtr { - private: - EST_Chunk *ptr; ---- speech_tools/include/ling_class/EST_Item.h 2006/06/05 00:39:43 1.1 -+++ speech_tools/include/ling_class/EST_Item.h 2006/06/05 00:40:02 -@@ -79,6 +79,9 @@ use we envisage. Traversal of the items - - */ - -+class EST_Item; -+int same_item(const EST_Item *l1,const EST_Item *l2); -+ - class EST_Item - { - private: ---- ./speech_tools/base_class/EST_Pathname_unix.cc 2006/06/05 00:59:34 1.1 -+++ ./speech_tools/base_class/EST_Pathname_unix.cc 2006/06/05 01:19:16 -@@ -89,7 +89,7 @@ EST_Pathname EST_Pathname::as_directory( - return *this; - - if (length() > 0) -- return ::operator +(EST_String(*this), "/"); -+ return EST_String(*this) + "/"; - - return "./"; - } ---- festival/src/modules/clunits/clunits.h 2006/06/05 01:58:30 1.1 -+++ festival/src/modules/clunits/clunits.h 2006/06/05 01:58:47 -@@ -83,9 +83,9 @@ class CLDB { - CLfile *get_fileitem(const EST_String &name) - { return (CLfile *)fileindex.lookup(name); } - void load_coefs_sig(EST_Item *unit); -- CLfile *CLDB::get_file_coefs_sig(const EST_String &fileid); -+ CLfile *get_file_coefs_sig(const EST_String &fileid); - void load_join_coefs(CLunit *unit); -- CLfile *CLDB::get_file_join_coefs(const EST_String &fileid); -+ CLfile *get_file_join_coefs(const EST_String &fileid); - }; - - ---- festival/src/modules/MultiSyn/EST_JoinCostCache.h 2006/06/05 02:00:28 1.1 -+++ festival/src/modules/MultiSyn/EST_JoinCostCache.h 2006/06/05 02:00:57 -@@ -56,11 +56,11 @@ - /** Object oriented approach for better and for worse... - */ - -+#include <ostream> - #include "EST_TList.h" - #include "ling_class/EST_Item.h" - - class EST_JoinCost; --class ostream; - - class EST_JoinCostCache { - public: diff --git a/app-accessibility/festival/files/festival-1.95_beta-init-scm.patch b/app-accessibility/festival/files/festival-1.95_beta-init-scm.patch deleted file mode 100644 index efe575b0c2b7..000000000000 --- a/app-accessibility/festival/files/festival-1.95_beta-init-scm.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- 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-gcc3.3.diff b/app-accessibility/festival/files/festival-gcc3.3.diff deleted file mode 100644 index 2cbee7d400f7..000000000000 --- a/app-accessibility/festival/files/festival-gcc3.3.diff +++ /dev/null @@ -1,142 +0,0 @@ -diff -Naur festival.org/src/modules/base/phrasify.cc festival/src/modules/base/phrasify.cc ---- festival.org/src/modules/base/phrasify.cc 2001-04-04 06:55:20.000000000 -0500 -+++ festival/src/modules/base/phrasify.cc 2003-06-22 10:41:41.000000000 -0500 -@@ -218,7 +218,7 @@ - EST_Val npbreak = wagon_predict(w,phrase_type_tree); - w->set("pbreak",npbreak.string()); // may reset to BB - } -- pbreak = w->f("pbreak"); -+ pbreak = (EST_String)w->f("pbreak"); - if (pbreak == "B") - w->set("blevel",3); - else if (pbreak == "mB") -diff -Naur festival.org/src/modules/base/word.cc festival/src/modules/base/word.cc ---- festival.org/src/modules/base/word.cc 2001-04-04 06:55:20.000000000 -0500 -+++ festival/src/modules/base/word.cc 2003-06-22 10:41:41.000000000 -0500 -@@ -64,10 +64,10 @@ - for (w=u->relation("Word")->first(); w != 0; w = next(w)) - { - lpos = NIL; -- pos = ffeature(w,"hg_pos"); -+ pos = (EST_String)ffeature(w,"hg_pos"); - // explicit homograph pos disambiguation - if (pos == "0") -- pos = ffeature(w,"pos"); -+ pos = (EST_String)ffeature(w,"pos"); - if (pos != "0") - lpos = rintern(pos); - -@@ -100,8 +100,8 @@ - // from which a list can be read. - EST_String p; - -- if (((p = ffeature(w,"phonemes")) != "0") || -- ((p = ffeature(w,"R:Token.parent.phonemes")) != "0")) -+ if (((p = (EST_String)ffeature(w,"phonemes")) != "0") || -+ ((p = (EST_String)ffeature(w,"R:Token.parent.phonemes")) != "0")) - { - LISP phones = read_from_lstring(strintern(p)); - -diff -Naur festival.org/src/modules/Intonation/int_tree.cc festival/src/modules/Intonation/int_tree.cc ---- festival.org/src/modules/Intonation/int_tree.cc 2001-04-04 06:55:20.000000000 -0500 -+++ festival/src/modules/Intonation/int_tree.cc 2003-06-22 10:41:41.000000000 -0500 -@@ -87,11 +87,11 @@ - for (s=u->relation("Syllable")->first(); s != 0; s=next(s)) - { - if ((paccent = accent_specified(s)) == "0") // check if pre-specified -- paccent = wagon_predict(s,accent_tree); -+ paccent = (EST_String)wagon_predict(s,accent_tree); - if (paccent != "NONE") - add_IntEvent(u,s,paccent); - if ((ptone = tone_specified(s)) == "0") -- ptone = wagon_predict(s,endtone_tree); -+ ptone = (EST_String)wagon_predict(s,endtone_tree); - if (ptone != "NONE") - add_IntEvent(u,s,ptone); - } -@@ -107,11 +107,11 @@ - EST_Item *token = parent(word,"Token"); - EST_String paccent("0"); - if (token) -- paccent = ffeature(token,"accent"); -+ paccent = (EST_String)ffeature(token,"accent"); - - if (paccent == "0") - { -- paccent = ffeature(word,"accent"); -+ paccent = (EST_String)ffeature(word,"accent"); - if (paccent == "0") - return paccent; - } -@@ -139,11 +139,11 @@ - EST_Item *token = parent(word,"Token"); - EST_String ptone("0"); - if (token) -- ptone = ffeature(token,"tone"); -+ ptone = (EST_String)ffeature(token,"tone"); - - if (ptone == "0") - { -- ptone = ffeature(word,"tone"); -+ ptone = (EST_String)ffeature(word,"tone"); - if (ptone == "0") - return ptone; - } -diff -Naur festival.org/src/modules/Text/token.cc festival/src/modules/Text/token.cc ---- festival.org/src/modules/Text/token.cc 2001-04-04 06:55:20.000000000 -0500 -+++ festival/src/modules/Text/token.cc 2003-06-22 10:41:41.000000000 -0500 -@@ -230,7 +230,7 @@ - else - return cons(strintern(tok),NIL); - } -- else if ((token_pos = ffeature(token,"token_pos")) == "ordinal") -+ else if ((token_pos = (EST_String)ffeature(token,"token_pos")) == "ordinal") - return say_num_as_ordinal(tok); - else if (token_pos == "year") - return say_num_as_year(tok); -@@ -404,7 +404,7 @@ - const char *tokch = tok; - - for (i=0; i<tok.length(); i++) -- if (strchr(PunctuationChars,tokch[i]) == NULL) -+ if (strchr((const char *)PunctuationChars,tokch[i]) == NULL) - return FALSE; - - return TRUE; -diff -Naur festival.org/src/modules/Text/xxml.cc festival/src/modules/Text/xxml.cc ---- festival.org/src/modules/Text/xxml.cc 2001-04-04 06:55:20.000000000 -0500 -+++ festival/src/modules/Text/xxml.cc 2003-06-22 10:41:41.000000000 -0500 -@@ -93,7 +93,7 @@ - cerr << "xxml parse error: unexpected end of file \n"; - festival_error(); - } -- line = ts.get_upto_eoln(); -+ line = (EST_String)ts.get_upto_eoln(); - type = line.at(0,1); - remainder = line.after(0); - if (type == "-") -@@ -159,7 +159,7 @@ - EST_Token t; - - ts.open_string(remainder); -- name = ts.get(); -+ name = (EST_String)ts.get(); - if ((t=ts.get()) == "IMPLIED") - att = cons(rintern(name),cons(NIL,NIL)); - else if (t == "TOKEN") -diff -Naur festival.org/src/modules/UniSyn_diphone/us_diphone_index.cc festival/src/modules/UniSyn_diphone/us_diphone_index.cc ---- festival.org/src/modules/UniSyn_diphone/us_diphone_index.cc 2002-07-02 06:18:30.000000000 -0500 -+++ festival/src/modules/UniSyn_diphone/us_diphone_index.cc 2003-06-22 10:41:41.000000000 -0500 -@@ -106,9 +106,9 @@ - - if (!item) - return ""; -- else if ((d1 = item->f(dname+"_"+dir,def)) != "0") -+ else if ((d1 = (EST_String)item->f(dname+"_"+dir,def)) != "0") - return d1; -- else if ((d1 = item->f(dname,def)) != "0") -+ else if ((d1 = (EST_String)item->f(dname,def)) != "0") - return d1; - else - return item->f("name","0").string(); - |