summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-04-10 19:28:02 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-04-10 19:28:02 +0000
commit9d65518b2f068b6f632c15757ae1d7689a820c22 (patch)
tree2bdc1c59dd4f2188c5df78226283595768ede26b /app-accessibility
parentVersion bump; cleanup (diff)
downloadgentoo-2-9d65518b2f068b6f632c15757ae1d7689a820c22.tar.gz
gentoo-2-9d65518b2f068b6f632c15757ae1d7689a820c22.tar.bz2
gentoo-2-9d65518b2f068b6f632c15757ae1d7689a820c22.zip
Add java herd to metadata.xml so that we can do changes as our eclasses evolve and migrate to generation 2.
(Portage version: 2.1.2.3)
Diffstat (limited to 'app-accessibility')
-rw-r--r--app-accessibility/gnome-speech/ChangeLog9
-rw-r--r--app-accessibility/gnome-speech/files/digest-gnome-speech-0.4.10-r13
-rw-r--r--app-accessibility/gnome-speech/gnome-speech-0.4.10-r1.ebuild81
-rw-r--r--app-accessibility/gnome-speech/metadata.xml3
4 files changed, 94 insertions, 2 deletions
diff --git a/app-accessibility/gnome-speech/ChangeLog b/app-accessibility/gnome-speech/ChangeLog
index 26a86d4f37a2..c79881ba6e01 100644
--- a/app-accessibility/gnome-speech/ChangeLog
+++ b/app-accessibility/gnome-speech/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-accessibility/gnome-speech
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/gnome-speech/ChangeLog,v 1.82 2007/04/08 13:37:58 remi Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/gnome-speech/ChangeLog,v 1.83 2007/04/10 19:28:02 betelgeuse Exp $
+
+*gnome-speech-0.4.10-r1 (10 Apr 2007)
+
+ 10 Apr 2007; Petteri Räty <betelgeuse@gentoo.org> metadata.xml,
+ +gnome-speech-0.4.10-r1.ebuild:
+ Add java herd to metadata.xml so that we can do changes as our eclasses
+ evolve and migrate to generation 2.
*gnome-speech-0.4.10 (08 Apr 2007)
diff --git a/app-accessibility/gnome-speech/files/digest-gnome-speech-0.4.10-r1 b/app-accessibility/gnome-speech/files/digest-gnome-speech-0.4.10-r1
new file mode 100644
index 000000000000..99257e8034ae
--- /dev/null
+++ b/app-accessibility/gnome-speech/files/digest-gnome-speech-0.4.10-r1
@@ -0,0 +1,3 @@
+MD5 2ec7b7e2b01dd28299bd20fd40668bc5 gnome-speech-0.4.10.tar.bz2 322150
+RMD160 279caf3164d4f4a880512b50aea057b486f62d0f gnome-speech-0.4.10.tar.bz2 322150
+SHA256 779ed5795a4eba37718a18de8e05076cb6ddc5a6fc0f8c168e5d906c1d1367ec gnome-speech-0.4.10.tar.bz2 322150
diff --git a/app-accessibility/gnome-speech/gnome-speech-0.4.10-r1.ebuild b/app-accessibility/gnome-speech/gnome-speech-0.4.10-r1.ebuild
new file mode 100644
index 000000000000..0bc898de37da
--- /dev/null
+++ b/app-accessibility/gnome-speech/gnome-speech-0.4.10-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2007 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.10-r1.ebuild,v 1.1 2007/04/10 19:28:02 betelgeuse Exp $
+
+JAVA_PKG_OPT_USE="freetts"
+
+inherit java-pkg-opt-2 gnome2
+
+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"
+# espeak not added; it needs tons of keywords
+IUSE="freetts"
+
+COMMON_DEPEND=">=gnome-base/orbit-2.3.94
+ >=gnome-base/libbonobo-1.97
+ >=dev-libs/glib-2
+ freetts? (
+ =app-accessibility/freetts-1.2*
+ >=app-accessibility/java-access-bridge-1.4.6 )"
+
+RDEPEND="$COMMON_DEPEND
+ freetts? ( >=virtual/jre-1.4 )
+ app-accessibility/festival"
+
+DEPEND="$COMMON_DEPEND
+ freetts? ( >=virtual/jdk-1.4 )
+ >=dev-util/pkgconfig-0.9"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+
+pkg_setup() {
+ G2CONF="--with-festival --with-speech-dispatcher"
+
+ 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/gnopernicus."
+ elog
+}
diff --git a/app-accessibility/gnome-speech/metadata.xml b/app-accessibility/gnome-speech/metadata.xml
index 6949624e59d4..40dca43bd8d2 100644
--- a/app-accessibility/gnome-speech/metadata.xml
+++ b/app-accessibility/gnome-speech/metadata.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>gnome-accessibility</herd>
+ <herd>java</herd>
+ <herd>gnome-accessibility</herd>
</pkgmetadata>