summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gryniewicz <dang@gentoo.org>2008-08-13 17:29:29 +0000
committerDaniel Gryniewicz <dang@gentoo.org>2008-08-13 17:29:29 +0000
commitbd80e70ba4f1879a364600ab0413d758760552f1 (patch)
treee2a82438e240f8f83823a69050be9d8f2fa4de2b /app-accessibility
parentFixed bug #226697. (diff)
downloadgentoo-2-bd80e70ba4f1879a364600ab0413d758760552f1.tar.gz
gentoo-2-bd80e70ba4f1879a364600ab0413d758760552f1.tar.bz2
gentoo-2-bd80e70ba4f1879a364600ab0413d758760552f1.zip
Add espeak support, and make it default; bug #234334
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo x86_64)
Diffstat (limited to 'app-accessibility')
-rw-r--r--app-accessibility/gnome-speech/ChangeLog8
-rw-r--r--app-accessibility/gnome-speech/gnome-speech-0.4.20-r1.ebuild87
-rw-r--r--app-accessibility/gnome-speech/metadata.xml2
3 files changed, 96 insertions, 1 deletions
diff --git a/app-accessibility/gnome-speech/ChangeLog b/app-accessibility/gnome-speech/ChangeLog
index fe34eae5fc15..cefb61c3251d 100644
--- a/app-accessibility/gnome-speech/ChangeLog
+++ b/app-accessibility/gnome-speech/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-accessibility/gnome-speech
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/gnome-speech/ChangeLog,v 1.122 2008/08/12 14:16:50 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/gnome-speech/ChangeLog,v 1.123 2008/08/13 17:29:29 dang Exp $
+
+*gnome-speech-0.4.20-r1 (13 Aug 2008)
+
+ 13 Aug 2008; Daniel Gryniewicz <dang@gentoo.org> metadata.xml,
+ +gnome-speech-0.4.20-r1.ebuild:
+ Add espeak support, and make it default; bug #234334
12 Aug 2008; Raúl Porcel <armin76@gentoo.org> gnome-speech-0.4.20.ebuild:
alpha/ia64/sparc stable wrt #229709
diff --git a/app-accessibility/gnome-speech/gnome-speech-0.4.20-r1.ebuild b/app-accessibility/gnome-speech/gnome-speech-0.4.20-r1.ebuild
new file mode 100644
index 000000000000..66f95d40435b
--- /dev/null
+++ b/app-accessibility/gnome-speech/gnome-speech-0.4.20-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/gnome-speech/gnome-speech-0.4.20-r1.ebuild,v 1.1 2008/08/13 17:29:29 dang Exp $
+
+JAVA_PKG_OPT_USE="freetts"
+
+inherit java-pkg-opt-2 gnome2
+
+EAPI="1"
+
+DESCRIPTION="Simple general API for producing text-to-speech output"
+HOMEPAGE="http://www.gnome.org/"
+
+LICENSE="LGPL-2"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+# espeak not added; it needs tons of keywords
+IUSE="+espeak festival freetts"
+
+COMMON_DEPEND=">=gnome-base/orbit-2.3.94
+ >=gnome-base/libbonobo-1.97
+ >=dev-libs/glib-2
+ espeak? ( app-accessibility/espeak )
+ freetts? (
+ =app-accessibility/freetts-1.2*
+ >=app-accessibility/java-access-bridge-1.4.6 )"
+
+RDEPEND="$COMMON_DEPEND
+ freetts? ( >=virtual/jre-1.4 )
+ festival? ( app-accessibility/festival )"
+
+DEPEND="$COMMON_DEPEND
+ freetts? ( >=virtual/jdk-1.4 )
+ >=dev-util/pkgconfig-0.9"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ G2CONF="${G2CONF} $(use_with festival) --with-speech-dispatcher"
+
+ if ! use espeak; then
+ G2CONF="${G2CONF} --without-espeak-dir"
+ fi
+
+ if use freetts; then
+ java-pkg-opt-2_pkg_setup
+
+ local JABDIR="${ROOT}usr/share/java-access-bridge/lib"
+
+ G2CONF="${G2CONF} --with-java-home=${JAVA_HOME} \
+ --with-jab-dir=${JABDIR} \
+ --with-freetts-dir=${ROOT}usr/share/freetts/lib"
+ else
+ export JAVAC=no
+ fi
+}
+
+src_unpack() {
+ gnome2_src_unpack
+
+ if use freetts; then
+ sed -i -e \
+ 's/@GNOME_SPEECH_INSTALLED_CLASSPATH@/$(java-config -p gnome-speech-1,java-access-bridge)/' \
+ drivers/freetts/freetts-synthesis-driver.in || die "sed error"
+ fi
+
+ sed -i \
+ -e 's:\(GNOME_SPEECH_JAR_DIR=\).*:\1"/usr/share/java-access-bridge/lib/":' \
+ -e 's:\(FREETTS_DRIVER_JAR_DIR=\).*:\1"/usr/share/java-access-bridge/lib/":' \
+ "${S}"/configure
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use freetts; then
+ java-pkg_dojar "${D}"/usr/share/jar/*.jar
+ rm -rf "${D}"/usr/share/jar
+ fi
+}
+
+pkg_postinst() {
+ elog
+ elog "Gnome Speech has been successfully installed. You may now use the"
+ elog "speech interface using app-accessibility/orca."
+ elog
+}
diff --git a/app-accessibility/gnome-speech/metadata.xml b/app-accessibility/gnome-speech/metadata.xml
index 97cee297263a..46fd030adf9a 100644
--- a/app-accessibility/gnome-speech/metadata.xml
+++ b/app-accessibility/gnome-speech/metadata.xml
@@ -5,5 +5,7 @@
<herd>gnome-accessibility</herd>
<use>
<flag name='freetts'>Adds support for the freetts speech driver</flag>
+ <flag name='espeak'>Adds support for the espeak speech driver (default)</flag>
+ <flag name='festival'>Adds support for the festival speech driver</flag>
</use>
</pkgmetadata>