summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-accessibility/gnome-speech/gnome-speech-0.4.25-r1.ebuild')
-rw-r--r--app-accessibility/gnome-speech/gnome-speech-0.4.25-r1.ebuild49
1 files changed, 49 insertions, 0 deletions
diff --git a/app-accessibility/gnome-speech/gnome-speech-0.4.25-r1.ebuild b/app-accessibility/gnome-speech/gnome-speech-0.4.25-r1.ebuild
new file mode 100644
index 000000000000..9806160b9ee9
--- /dev/null
+++ b/app-accessibility/gnome-speech/gnome-speech-0.4.25-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2011 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.25-r1.ebuild,v 1.1 2011/06/05 17:32:15 pacho Exp $
+
+EAPI="4"
+
+inherit gnome2 eutils
+
+DESCRIPTION="Simple general API for producing text-to-speech output"
+HOMEPAGE="http://www.gnome.org/"
+
+LICENSE="LGPL-2"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="+espeak festival"
+
+COMMON_DEPEND=">=gnome-base/orbit-2.3.94
+ >=gnome-base/libbonobo-1.97
+ >=dev-libs/glib-2:2
+ espeak? ( app-accessibility/espeak )"
+
+RDEPEND="$COMMON_DEPEND
+ festival? ( app-accessibility/festival )"
+
+DEPEND="$COMMON_DEPEND
+ >=dev-util/pkgconfig-0.9"
+
+pkg_setup() {
+ DOCS="AUTHORS ChangeLog NEWS README"
+ G2CONF="${G2CONF} $(use_with festival) --with-speech-dispatcher"
+
+ if ! use espeak; then
+ G2CONF="${G2CONF} --without-espeak-dir"
+ fi
+
+ # We don't want java support at all as configure is broken and nothing needs it
+ export JAVAC=no
+}
+
+src_prepare() {
+ gnome2_src_prepare
+
+ epatch "${FILESDIR}/${P}-disable-java.patch"
+
+ 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
+}