diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-04-10 15:28:38 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-04-10 15:28:38 +0000 |
commit | 5a40db1d9ee14d5be9bbdfc845e3da17f37b0b05 (patch) | |
tree | 30b5495a9befa50d71f06eda71bd8327baad584f /app-accessibility | |
parent | Remove idiot batch USE-flag, bug 174021 (diff) | |
download | gentoo-2-5a40db1d9ee14d5be9bbdfc845e3da17f37b0b05.tar.gz gentoo-2-5a40db1d9ee14d5be9bbdfc845e3da17f37b0b05.tar.bz2 gentoo-2-5a40db1d9ee14d5be9bbdfc845e3da17f37b0b05.zip |
Migrate to generation 2 and make jsapi options with the jsapi use flag because it's a binary blob.
(Portage version: 2.1.2.3)
Diffstat (limited to 'app-accessibility')
-rw-r--r-- | app-accessibility/freetts/ChangeLog | 9 | ||||
-rw-r--r-- | app-accessibility/freetts/files/digest-freetts-1.2.1-r1 | 3 | ||||
-rw-r--r-- | app-accessibility/freetts/freetts-1.2.1-r1.ebuild | 66 |
3 files changed, 77 insertions, 1 deletions
diff --git a/app-accessibility/freetts/ChangeLog b/app-accessibility/freetts/ChangeLog index 3d1d283109c6..c03041edb4e4 100644 --- a/app-accessibility/freetts/ChangeLog +++ b/app-accessibility/freetts/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-accessibility/freetts # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/freetts/ChangeLog,v 1.23 2007/02/18 18:06:34 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/freetts/ChangeLog,v 1.24 2007/04/10 15:28:38 betelgeuse Exp $ + +*freetts-1.2.1-r1 (10 Apr 2007) + + 10 Apr 2007; Petteri Räty <betelgeuse@gentoo.org> + +freetts-1.2.1-r1.ebuild: + Migrate to generation 2 and make jsapi options with the jsapi use flag + because it's a binary blob. 18 Feb 2007; Markus Rothe <corsair@gentoo.org> freetts-1.2.1.ebuild: Stable on ppc64 diff --git a/app-accessibility/freetts/files/digest-freetts-1.2.1-r1 b/app-accessibility/freetts/files/digest-freetts-1.2.1-r1 new file mode 100644 index 000000000000..d5fadb0fbc80 --- /dev/null +++ b/app-accessibility/freetts/files/digest-freetts-1.2.1-r1 @@ -0,0 +1,3 @@ +MD5 f3e3ceae5b8cb5e175b50931f2e350e8 freetts-1.2.1-src.zip 14100414 +RMD160 be2bff99b950268eb826a35dd3b508299e60f59b freetts-1.2.1-src.zip 14100414 +SHA256 e21421f3b6bd4364f4310e273128f20b63a6b885e8f17d9a441df20d4c455280 freetts-1.2.1-src.zip 14100414 diff --git a/app-accessibility/freetts/freetts-1.2.1-r1.ebuild b/app-accessibility/freetts/freetts-1.2.1-r1.ebuild new file mode 100644 index 000000000000..d7178a46ee26 --- /dev/null +++ b/app-accessibility/freetts/freetts-1.2.1-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/freetts/freetts-1.2.1-r1.ebuild,v 1.1 2007/04/10 15:28:38 betelgeuse Exp $ + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="A speech synthesis system written entirely in Java" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip" +HOMEPAGE="http://freetts.sourceforge.net/" + +RDEPEND=">=virtual/jre-1.4 + mbrola? ( >=app-accessibility/mbrola-3.0.1h-r3 )" +DEPEND=">=virtual/jdk-1.4 + ${RDEPEND} + jsapi? ( app-arch/sharutils ) + app-arch/unzip" + +LICENSE="jsapi? ( sun-bcla-jsapi ) freetts" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="doc jsapi mbrola" + +src_unpack() { + unpack ${A} + cd "${S}/lib" + + chmod 0755 jsapi.sh + epatch "${FILESDIR}/jsapi-gentoo.diff" + + use mbrola && echo "mbrola.base=/opt/mbrola/" >> "${S}/speech.properties" +} + +src_compile() { + cd "${S}/lib" + if use jsapi; then + ./jsapi.sh || die "jsapi.sh failed" + fi + cd "${S}" + eant jars +} + +# Tests dont' seem included +# http://freetts.sourceforge.net/docs/index.php#how_test +#src_test() { +# ANT_TASKS="ant-junit" eant junit +#} + +src_install() { + java-pkg_dojar lib/*.jar mbrola/*.jar + + use mbrola && local jflags="--java_args -Dmbrola.base=/opt/mbrola" + java-pkg_dolauncher ${PN} --main com.sun.speech.freetts.FreeTTS ${jflags} + + insinto /usr/share/${PN} + doins speech.properties + + cp -R "${S}/demo" "${D}/usr/share/${PN}" + cp -R "${S}/tools" "${D}/usr/share/${PN}" + + dodoc README.txt RELEASE_NOTES acknowledgments.txt || die + if use doc; then + insinto /usr/share/doc/${PF}/html + doins -r "${S}"/docs/* + java-pkg_dojavadoc "${S}/javadoc" + fi +} |