summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesus Rivero <neurogeek@gentoo.org>2009-05-07 14:43:40 +0000
committerJesus Rivero <neurogeek@gentoo.org>2009-05-07 14:43:40 +0000
commit5e3684e2fe1604a68fa72316755486c0dc0eeed9 (patch)
tree89095c1eb1bd8f9d129aeadaea7d9754ad20e535 /app-accessibility/festival-it
parentqlandkartegt bump (diff)
downloadgentoo-2-5e3684e2fe1604a68fa72316755486c0dc0eeed9.tar.gz
gentoo-2-5e3684e2fe1604a68fa72316755486c0dc0eeed9.tar.bz2
gentoo-2-5e3684e2fe1604a68fa72316755486c0dc0eeed9.zip
Initial commit. Thanks to Francesco Monica and Bruno Redondi. Closes bug #125361
(Portage version: 2.2_rc23/cvs/Linux i686)
Diffstat (limited to 'app-accessibility/festival-it')
-rw-r--r--app-accessibility/festival-it/ChangeLog10
-rw-r--r--app-accessibility/festival-it/festival-it-1.0.ebuild94
-rw-r--r--app-accessibility/festival-it/metadata.xml12
3 files changed, 116 insertions, 0 deletions
diff --git a/app-accessibility/festival-it/ChangeLog b/app-accessibility/festival-it/ChangeLog
new file mode 100644
index 000000000000..17a60fd0b909
--- /dev/null
+++ b/app-accessibility/festival-it/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-accessibility/festival-it
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival-it/ChangeLog,v 1.1 2009/05/07 14:43:40 neurogeek Exp $
+
+*festival-it-1.0 (07 May 2009)
+
+ 07 May 2009; Jesus Rivero <neurogeek@gentoo.org> +festival-it-1.0.ebuild:
+ Initial commit. Thanks to Francesco Monica and Bruno Redondi. Closes bug
+ #125361
+
diff --git a/app-accessibility/festival-it/festival-it-1.0.ebuild b/app-accessibility/festival-it/festival-it-1.0.ebuild
new file mode 100644
index 000000000000..cff2e5ab0192
--- /dev/null
+++ b/app-accessibility/festival-it/festival-it-1.0.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival-it/festival-it-1.0.ebuild,v 1.1 2009/05/07 14:43:40 neurogeek Exp $
+
+inherit eutils
+
+
+DESCRIPTION="A collection of italian voices for Festival TTS."
+HOMEPAGE="http://www.pd.istc.cnr.it/TTS/It-FESTIVAL.htm"
+SRC_URI="mirror://sourceforge/it-festival/Italian-FESTIVAL.zip"
+
+RDEPEND=">=app-accessibility/festival-1.4.3-r4
+ mbrola? ( >=app-accessibility/mbrola-3.0.1h-r4 )"
+
+DEPEND="${RDEPEND} app-arch/unzip"
+IUSE="mbrola"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+pkg_setup () {
+
+ if use mbrola && ! built_with_use app-accessibility/mbrola linguas_it; then
+ einfo "You should emerge app_accessibility/mbrola with italian support"
+ einfo "in order to enable mbrola-based italian voices in festival."
+ einfo
+ einfo "Try to add \"it\" to your LINGUAS string in /etc/make.conf"
+ einfo "and re-emerge app_accessibility/mbrola"
+ die "mbrola has no italian support please remerge it with LINGUAS=it"
+ fi
+}
+
+pkg_postinst () {
+ einfo "Italian voices installed:"
+ for VOICE in `ls "${ROOT}/usr/share/festival/voices/italian/"`; do
+ einfo " (voice_${VOICE})"
+ done
+}
+
+src_unpack () {
+ unpack ${A}
+
+ unzip -qo italian_scm.zip
+ unzip -qo lex_ifd.zip
+ unzip -qo lp_diphone.zip
+ unzip -qo pc_diphone.zip
+
+ if use mbrola; then
+ unzip -qo lp_mbrola_unix.zip
+ unzip -qo pc_mbrola_unix.zip
+ fi
+
+ # Deletes some useless files
+ rm -f *.zip
+
+ rm -f `find festival/ -name install_unix.txt`
+ rm -f `find festival/ -name italian_mbrola_win.scm`
+
+ if ! use mbrola; then
+ rm -f `find festival/ -name italian_mbrola_unix.scm`
+ fi
+
+ # Aggregates some README files
+ mkdir docs
+ mv `find festival/ -name \*README` docs/
+
+ # All remaining files are moved "here"
+ mv festival/lib/* .
+ rm -rf festival/
+}
+
+src_install () {
+ # Install the docs
+ dodoc "${WORKDIR}"/docs/*
+
+ # Install the voice scheme
+ insinto /usr/share/festival/
+ doins -r "${WORKDIR}"/italian_scm/
+
+ # Install the dicts
+ insinto /usr/share/festival/dicts
+ doins -r "${WORKDIR}"/dicts/*
+
+ # Installs the voices
+ insinto /usr/share/festival/voices
+ doins -r "${WORKDIR}"/voices/*
+
+ # Enables the mbrola-based voices
+ if use mbrola; then
+ dosym /opt/mbrola/it3 /usr/share/festival/voices/italian/pc_mbrola/it3
+ dosym /opt/mbrola/it4 /usr/share/festival/voices/italian/lp_mbrola/it4
+ fi
+}
diff --git a/app-accessibility/festival-it/metadata.xml b/app-accessibility/festival-it/metadata.xml
new file mode 100644
index 000000000000..aaded464e92b
--- /dev/null
+++ b/app-accessibility/festival-it/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>accessibility</herd>
+ <herd>sound</herd>
+ <maintainer>
+ <email>neurogeek@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name='mbrola'>Adds support for mbrola voices</flag>
+ </use>
+</pkgmetadata>