summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2009-11-01 18:49:54 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2009-11-01 18:49:54 +0000
commite15e61c064f2601e72c6a97e6db3f33fd3bd479c (patch)
tree704b55320eb0de5eb36b9eba02b8cc90bf21d9d9 /app-accessibility/espeak
parentrevert unintended removal. (diff)
downloadgentoo-2-e15e61c064f2601e72c6a97e6db3f33fd3bd479c.tar.gz
gentoo-2-e15e61c064f2601e72c6a97e6db3f33fd3bd479c.tar.bz2
gentoo-2-e15e61c064f2601e72c6a97e6db3f33fd3bd479c.zip
revert unintended removal.
Diffstat (limited to 'app-accessibility/espeak')
-rw-r--r--app-accessibility/espeak/ChangeLog318
-rw-r--r--app-accessibility/espeak/Manifest6
-rw-r--r--app-accessibility/espeak/espeak-1.40.02.ebuild80
-rw-r--r--app-accessibility/espeak/espeak-1.41.01.ebuild78
-rw-r--r--app-accessibility/espeak/metadata.xml8
5 files changed, 490 insertions, 0 deletions
diff --git a/app-accessibility/espeak/ChangeLog b/app-accessibility/espeak/ChangeLog
new file mode 100644
index 000000000000..ba9a8c62a385
--- /dev/null
+++ b/app-accessibility/espeak/ChangeLog
@@ -0,0 +1,318 @@
+# ChangeLog for app-accessibility/espeak
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v 1.78 2009/11/01 18:49:54 eva Exp $
+
+*espeak-1.41.01 (07 Oct 2009)
+
+ 07 Oct 2009; William Hubbs <williamh@gentoo.org> +espeak-1.41.01.ebuild:
+ version bump
+
+ 18 May 2009; William Hubbs <williamh@gentoo.org> -espeak-1.39.ebuild,
+ -espeak-1.40.01.ebuild:
+ Removed old versions.
+
+ 15 May 2009; Raúl Porcel <armin76@gentoo.org> espeak-1.40.02.ebuild:
+ ia64/sparc stable wrt #265910
+
+ 05 May 2009; Jeroen Roovers <jer@gentoo.org> espeak-1.40.02.ebuild:
+ Stable for HPPA (bug #265910).
+
+ 26 Apr 2009; Brent Baude <ranger@gentoo.org> espeak-1.40.02.ebuild:
+ stable ppc, bug 265910
+
+ 23 Apr 2009; Markus Meier <maekke@gentoo.org> espeak-1.40.02:
+ amd64 stable, bug #265910
+
+ 18 Apr 2009; Tobias Klausmann <klausman@gentoo.org> espeak-1.40.02.ebuild:
+ Stable on alpha, bug #265910
+
+ 15 Apr 2009; Brent Baude <ranger@gentoo.org> espeak-1.40.02.ebuild:
+ Marking espeak-1.40.02 ppc64 for bug 265910
+
+ 01 Apr 2009; William Hubbs <williamh@gentoo.org> espeak-1.40.02.ebuild:
+ Stable on x86 and fixed dependencies.
+
+ 09 Mar 2009; Diego E. Pettenò <flameeyes@gentoo.org> espeak-1.39.ebuild,
+ espeak-1.40.01.ebuild, espeak-1.40.02.ebuild:
+ Fix typo.
+
+ 11 Jan 2009; William Hubbs <williamh@gentoo.org> -espeak-1.37-r1.ebuild,
+ -espeak-1.38.ebuild:
+ Removed old versions.
+
+ 11 Jan 2009; Raúl Porcel <armin76@gentoo.org> espeak-1.39.ebuild:
+ ia64/sparc stable wrt #254103
+
+ 10 Jan 2009; Markus Meier <maekke@gentoo.org> espeak-1.39.ebuild:
+ amd64/x86 stable, bug #254103
+
+ 09 Jan 2009; Tobias Klausmann <klausman@gentoo.org> espeak-1.39.ebuild:
+ Stable on alpha, bug #254103
+
+ 09 Jan 2009; Brent Baude <ranger@gentoo.org> espeak-1.39.ebuild:
+ stable ppc, bug 254103
+
+ 08 Jan 2009; Jeroen Roovers <jer@gentoo.org> espeak-1.39.ebuild:
+ Stable for HPPA (bug #254103).
+
+ 07 Jan 2009; Brent Baude <ranger@gentoo.org> espeak-1.39.ebuild:
+ stable ppc64, bug 254103
+
+*espeak-1.40.02 (04 Jan 2009)
+
+ 04 Jan 2009; William Hubbs <williamh@gentoo.org> +espeak-1.40.02.ebuild:
+ Version bump.
+
+ 24 Dec 2008; William Hubbs <williamh@gentoo.org> espeak-1.40.01.ebuild:
+ Removed support for portaudio 18 since it is no longer in the tree.
+
+*espeak-1.40.01 (24 Dec 2008)
+
+ 24 Dec 2008; William Hubbs <williamh@gentoo.org> +espeak-1.40.01.ebuild:
+ Version bump.
+
+*espeak-1.39 (19 Sep 2008)
+
+ 19 Sep 2008; William Hubbs <williamh@gentoo.org> +espeak-1.39.ebuild:
+ version bump.
+
+*espeak-1.38 (30 Aug 2008)
+
+ 30 Aug 2008; William Hubbs <williamh@gentoo.org> +espeak-1.38.ebuild:
+ version bump
+
+ 09 Aug 2008; Tobias Klausmann <klausman@gentoo.org> espeak-1.37-r1.ebuild:
+ Stable on alpha, bug #233112
+
+ 02 Aug 2008; William Hubbs <williamh@gentoo.org> -espeak-1.25.ebuild,
+ -espeak-1.36.ebuild, -espeak-1.36.02.ebuild, -espeak-1.37.ebuild:
+ Removed old versions.
+
+ 02 Aug 2008; Markus Rothe <corsair@gentoo.org> espeak-1.37-r1.ebuild:
+ Stable on ppc64; bug #233112
+
+ 01 Aug 2008; nixnut <nixnut@gentoo.org> espeak-1.37-r1.ebuild:
+ Stable on ppc wrt bug 233112
+
+ 29 Jul 2008; Jeroen Roovers <jer@gentoo.org> espeak-1.37-r1.ebuild:
+ Stable for HPPA (bug #233112).
+
+ 29 Jul 2008; Raúl Porcel <armin76@gentoo.org> espeak-1.37-r1.ebuild:
+ ia64/sparc/x86 stable wrt #233112
+
+ 27 Jul 2008; deedra waters <dmwaters@gentoo.org> espeak-1.37-r1.ebuild:
+ stable on amd64
+
+ 15 Jun 2008; Raúl Porcel <armin76@gentoo.org> espeak-1.37-r1.ebuild:
+ Add ~ia64 wrt #163285
+
+ 12 May 2008; Markus Rothe <corsair@gentoo.org> espeak-1.36.02.ebuild:
+ Stable on ppc64
+
+*espeak-1.37-r1 (26 Apr 2008)
+
+ 26 Apr 2008; William Hubbs <williamh@gentoo.org> +espeak-1.37-r1.ebuild:
+ Rev bump to install dictsource directory in /usr/share/espeak-data for
+ #218597.
+
+*espeak-1.37 (20 Apr 2008)
+
+ 20 Apr 2008; William Hubbs <williamh@gentoo.org> +espeak-1.37.ebuild:
+ Version bump. Also, for #218597, do not allow both portaudio and
+ pulseaudio in the use flags.
+
+ 15 Apr 2008; Jeroen Roovers <jer@gentoo.org> espeak-1.36.02.ebuild:
+ Stable for HPPA (bug #217235).
+
+ 12 Apr 2008; Raúl Porcel <armin76@gentoo.org> espeak-1.36.ebuild:
+ sparc stable
+
+ 10 Apr 2008; Markus Meier <maekke@gentoo.org> espeak-1.36.ebuild:
+ amd64/x86 stable, bug #216707
+
+ 10 Apr 2008; Markus Rothe <corsair@gentoo.org> espeak-1.36.ebuild:
+ Stable on ppc64; bug #216707
+
+ 09 Apr 2008; nixnut <nixnut@gentoo.org> espeak-1.36.02.ebuild:
+ Stable on ppc wrt bug #216707
+
+*espeak-1.36.02 (24 Mar 2008)
+
+ 24 Mar 2008; William Hubbs <williamh@gentoo.org> +espeak-1.36.02.ebuild:
+ Version bump.
+
+ 12 Mar 2008; William Hubbs <williamh@gentoo.org> espeak-1.36.ebuild:
+ Updated the ebuild to pass the correct options to make if neither portaudio
+ nor pulseaudio is in the use flags.
+
+*espeak-1.36 (10 Mar 2008)
+
+ 10 Mar 2008; William Hubbs <williamh@gentoo.org>
+ -files/espeak-1.35-makefile.patch, -espeak-1.35.ebuild,
+ +espeak-1.36.ebuild:
+ Version bump and removed old version.
+
+ 09 Mar 2008; William Hubbs <williamh@gentoo.org>
+ files/espeak-1.35-makefile.patch:
+ Updated the makefile patch so that espeak builds correctly if no audio option
+ is in the use flags. Also, I sent this patch upstream.
+
+ 08 Mar 2008; William Hubbs <williamh@gentoo.org>
+ -files/espeak-1.19-big-endian.patch,
+ -files/espeak-1.19-ppc64-segfault.patch,
+ -files/espeak-1.20-big-endian.patch,
+ -files/espeak-1.20-ppc64-segfault.patch,
+ -files/espeak-1.22-makefile.patch,
+ -files/espeak-1.26-ppc64-segfault.patch,
+ -files/espeak-1.27-ppc64-segfault.patch, -espeak-1.19.ebuild,
+ -espeak-1.20-r1.ebuild, -espeak-1.22.ebuild, -espeak-1.26.ebuild,
+ -espeak-1.26-r1.ebuild, -espeak-1.27.ebuild, -espeak-1.28.ebuild,
+ -espeak-1.29.ebuild, -espeak-1.30.ebuild, -espeak-1.31.ebuild,
+ -espeak-1.34.ebuild:
+ Major cleanup; removed several old versions.
+
+*espeak-1.35 (08 Mar 2008)
+
+ 08 Mar 2008; William Hubbs <williamh@gentoo.org>
+ +files/espeak-1.35-makefile.patch, +espeak-1.35.ebuild:
+ Version bump.
+
+ 08 Mar 2008; Markus Rothe <corsair@gentoo.org> espeak-1.34.ebuild:
+ Added ~ppc64; bug #163285
+
+*espeak-1.34 (08 Mar 2008)
+
+ 08 Mar 2008; William Hubbs <williamh@gentoo.org> +espeak-1.34.ebuild:
+ Version bump.
+
+*espeak-1.31 (20 Jan 2008)
+
+ 20 Jan 2008; William Hubbs <williamh@gentoo.org> +espeak-1.31.ebuild:
+ Version bump.
+
+*espeak-1.30 (01 Jan 2008)
+
+ 01 Jan 2008; William Hubbs <williamh@gentoo.org> +espeak-1.30.ebuild:
+ Version bump.
+
+ 26 Dec 2007; Christian Heim <phreak@gentoo.org> espeak-1.19.ebuild,
+ espeak-1.20-r1.ebuild, espeak-1.25.ebuild, espeak-1.26.ebuild,
+ espeak-1.26-r1.ebuild, espeak-1.27.ebuild, espeak-1.28.ebuild,
+ espeak-1.29.ebuild:
+ Fix the quotation.
+
+ 28 Aug 2007; Jeroen Roovers <jer@gentoo.org> files/digest-espeak-1.29,
+ Manifest:
+ Fixed digest for 1.29.
+
+*espeak-1.29 (28 Aug 2007)
+
+ 28 Aug 2007; William Hubbs <williamh@gentoo.org> +espeak-1.29.ebuild:
+ Version bump.
+
+ 27 Aug 2007; deedra waters <dmwaters@gentoo.org> espeak-1.25.ebuild:
+ Marking 1.25 stable on amd64
+
+*espeak-1.28 (19 Jul 2007)
+
+ 19 Jul 2007; William Hubbs <williamh@gentoo.org> +espeak-1.28.ebuild:
+ Version bump.
+
+*espeak-1.27 (04 Jul 2007)
+
+ 04 Jul 2007; William Hubbs <williamh@gentoo.org>
+ +files/espeak-1.27-ppc64-segfault.patch, +espeak-1.27.ebuild:
+ Version bump.
+
+ 10 Jun 2007; Jeroen Roovers <jer@gentoo.org> files/digest-espeak-1.26,
+ files/digest-espeak-1.26-r1, Manifest:
+ Fixing digest.
+
+*espeak-1.26-r1 (10 Jun 2007)
+
+ 10 Jun 2007; William Hubbs <williamh@gentoo.org>
+ +files/espeak-1.26-ppc64-segfault.patch, +espeak-1.26-r1.ebuild:
+ Rev bump to fix a seg fault on ppc64 for bug #163285.
+
+*espeak-1.26 (09 Jun 2007)
+
+ 09 Jun 2007; William Hubbs <williamh@gentoo.org> +espeak-1.26.ebuild:
+ Version bump.
+
+ 07 Jun 2007; Fernando J. Pereda <ferdy@gentoo.org> espeak-1.25.ebuild:
+ Added ~alpha as per bug #163285. Thanks to Brian Evans
+ <grknight2k@bluebottle.com> for testing.
+
+ 05 Jun 2007; Jeroen Roovers <jer@gentoo.org> espeak-1.25.ebuild:
+ Marked ~hppa (bug #163285).
+
+*espeak-1.25 (19 May 2007)
+
+ 19 May 2007; William Hubbs <williamh@gentoo.org> +espeak-1.25.ebuild:
+ Version bump.
+
+ 06 May 2007; Tobias Scherbaum <dertobi123@gentoo.org> espeak-1.22.ebuild:
+ Added ~ppc, bug #163285
+
+ 20 Apr 2007; Gustavo Zacarias <gustavoz@gentoo.org> espeak-1.22.ebuild:
+ Keyworded ~sparc wrt #163285
+
+*espeak-1.22 (20 Apr 2007)
+
+ 20 Apr 2007; Leonardo Boshell <leonardop@gentoo.org>
+ +files/espeak-1.22-makefile.patch, +espeak-1.22.ebuild:
+ New release. Integrated new logic to fix the byte order and compile the
+ necessary binary files in big-endian machines, as described in bug #163285.
+
+*espeak-1.20-r1 (25 Feb 2007)
+
+ 25 Feb 2007; William Hubbs <williamh@gentoo.org> -espeak-1.20.ebuild,
+ +espeak-1.20-r1.ebuild:
+ Rev bump to fix #168066.
+
+*espeak-1.20 (18 Feb 2007)
+
+ 18 Feb 2007; William Hubbs <williamh@gentoo.org>
+ +files/espeak-1.20-big-endian.patch,
+ +files/espeak-1.20-ppc64-segfault.patch, +espeak-1.20.ebuild:
+ Version bump.
+
+ 10 Feb 2007; Steve Dibb <beandog@gentoo.org> espeak-1.19.ebuild:
+ amd64 stable, bug 163285
+
+ 07 Feb 2007; William Hubbs <williamh@gentoo.org>
+ -files/espeak-1.18-64bits.patch, -files/espeak-1.18-parallel.patch,
+ files/espeak-1.19-big-endian.patch, -espeak-1.16.ebuild,
+ -espeak-1.18.ebuild:
+ Removed old versions, also updated espeak-1.19-big-endian.patch.
+
+ 06 Feb 2007; William Hubbs <williamh@gentoo.org> espeak-1.19.ebuild:
+ Added patches to fix a segfault on ppc64 and to move ARCH_BIG out of the
+ Makefile.
+
+*espeak-1.19 (31 Jan 2007)
+
+ 31 Jan 2007; William Hubbs <williamh@gentoo.org> +espeak-1.19.ebuild:
+ Version bump.
+
+ 24 Jan 2007; Leonardo Boshell <leonardop@gentoo.org>
+ +files/espeak-1.18-64bits.patch, +files/espeak-1.18-parallel.patch,
+ espeak-1.18.ebuild:
+ Added a couple of patches to fix compilation in parallel, and in amd64.
+
+*espeak-1.18 (22 Jan 2007)
+
+ 22 Jan 2007; Leonardo Boshell <leonardop@gentoo.org> +espeak-1.18.ebuild:
+ New release, as required by the latest gnome-speech. Honour CXXFLAGS. Use
+ the Makefile to install instead of doing it manually.
+
+ 06 Nov 2006; Piotr Jaroszyński <peper@gentoo.org> espeak-1.16.ebuild:
+ Add ~amd64 wrt bug #154245.
+
+*espeak-1.16 (29 Oct 2006)
+
+ 29 Oct 2006; William Hubbs <williamh@gentoo.org> +metadata.xml,
+ +espeak-1.16.ebuild:
+ Initial commit.
+ Thanks to breb@sent.com for the ebuild which I based this on, in bug 151004.
+
diff --git a/app-accessibility/espeak/Manifest b/app-accessibility/espeak/Manifest
new file mode 100644
index 000000000000..e30323b27ec2
--- /dev/null
+++ b/app-accessibility/espeak/Manifest
@@ -0,0 +1,6 @@
+DIST espeak-1.40.02-source.zip 1400971 RMD160 caca57d5a6b5165d5b7edbb9c465cb37bc4ec3ec SHA1 de75304b0b58a18669bd05b3fa89573dc4787085 SHA256 b55e323a52be38337f8d5f219fd8878fc7b62b9e25d8cc15685e5f815bf6519e
+DIST espeak-1.41.01-source.zip 1476908 RMD160 bb95144e78c57aa4607be927ea6832802966c2bb SHA1 458bf2f94d598b10ca5d4b9e6855d789e4557f2d SHA256 1c89178b8021f77352eb482e93f2545044c7010ec5c1f902fbdee899bfde01a2
+EBUILD espeak-1.40.02.ebuild 2096 RMD160 83aff3e3c9e5ffe83e20045c5cd6493aaa216cde SHA1 cbbe27b34fa526c05c7f30f99c3deb90d8573f2a SHA256 386cc4835cd50d6211afb27317b71301b477e85a5bf41366ba665926442498c4
+EBUILD espeak-1.41.01.ebuild 1967 RMD160 97364458903d42c4ff97921c5f126ba5a45c8880 SHA1 5d1b5b2c4c5b6d94662085ae315761f4bb8be8c3 SHA256 39971a0438d490c1f10878c6fdaecf0dda956e61785e13c7bb16f0a00217eb4b
+MISC ChangeLog 10485 RMD160 3b2f627d6fdce34b604ee568c8a9a83dc186fb02 SHA1 d0e8c88603259de18eee81b3a1eea1db07489d47 SHA256 6a598c79df07383750b8436f70dc03368a0a9a588552bfd165cd5ee0a9c2b98e
+MISC metadata.xml 229 RMD160 7f8d6a0235529eccff705022803122c9534628d7 SHA1 2295356b566d60c8eb979db0e598de9d1d8ccf49 SHA256 b128d301356b3f98f1d6093b4401c36143ff55fc62636612567b0995739b9e66
diff --git a/app-accessibility/espeak/espeak-1.40.02.ebuild b/app-accessibility/espeak/espeak-1.40.02.ebuild
new file mode 100644
index 000000000000..85286e9df4bf
--- /dev/null
+++ b/app-accessibility/espeak/espeak-1.40.02.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/espeak-1.40.02.ebuild,v 1.11 2009/11/01 18:49:54 eva Exp $
+
+inherit eutils
+
+MY_P="${P}-source"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
+DESCRIPTION="Speech synthesizer for English and other languages"
+HOMEPAGE="http://espeak.sourceforge.net/"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE="portaudio pulseaudio"
+RDEPEND="portaudio? ( >=media-libs/portaudio-18.1-r5 )
+ pulseaudio? ( media-sound/pulseaudio )"
+ DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${MY_P}
+
+get_audio() {
+ local MY_AUDIO
+
+ MY_AUDIO=none
+ if use portaudio; then
+ MY_AUDIO=portaudio
+ elif use pulseaudio; then
+ MY_AUDIO=pulseaudio
+ fi
+ echo ${MY_AUDIO}
+}
+
+pkg_setup() {
+ if ! use portaudio && ! use pulseaudio; then
+ ewarn
+ ewarn Since portaudio and pulseaudio are not in your use flags,
+ ewarn espeak will only be able to create wav files.
+ ewarn If this is not what you want, press ctrl-c and put either
+ ewarn portaudio or pulseaudio in your use flags.
+ ebeep
+ epause 10
+ elif use portaudio && use pulseaudio; then
+ die "You must choose either portaudio or pulseaudio, but not both."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ # portaudio.h is by default the same as portaudio18.h, but use the version
+ # 19 API if available
+ if use portaudio; then
+ if has_version "=media-libs/portaudio-19*" ; then
+ mv -f "${S}/src/portaudio19.h" "${S}/src/portaudio.h"
+ fi
+ fi
+}
+
+src_compile() {
+ cd src
+ emake AUDIO="$(get_audio)" CXXFLAGS="${CXXFLAGS}" all || die "Compilation failed"
+
+ einfo "Fixing byte order of phoneme data files"
+ cd "${S}/platforms/big_endian"
+ make
+ ./espeak-phoneme-data "${S}/espeak-data"
+ cp -f phondata phonindex phontab "${S}/espeak-data"
+}
+
+src_install() {
+ cd src
+ make DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" AUDIO="$(get_audio)" install || die "Installation failed"
+
+ cd ..
+ insinto /usr/share/espeak-data
+ doins -r dictsource
+ dodoc ChangeLog ReadMe
+ dohtml -r docs/*
+}
diff --git a/app-accessibility/espeak/espeak-1.41.01.ebuild b/app-accessibility/espeak/espeak-1.41.01.ebuild
new file mode 100644
index 000000000000..50dba92c01b7
--- /dev/null
+++ b/app-accessibility/espeak/espeak-1.41.01.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/espeak-1.41.01.ebuild,v 1.3 2009/11/01 18:49:54 eva Exp $
+
+EAPI="2"
+
+inherit eutils
+
+MY_P="${P}-source"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
+DESCRIPTION="Speech synthesizer for English and other languages"
+HOMEPAGE="http://espeak.sourceforge.net/"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="portaudio pulseaudio"
+RDEPEND="portaudio? ( >=media-libs/portaudio-19_pre20071207 )
+ pulseaudio? ( media-sound/pulseaudio )"
+ DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${MY_P}
+
+get_audio() {
+ local MY_AUDIO
+
+ MY_AUDIO=none
+ if use portaudio; then
+ MY_AUDIO=portaudio
+ elif use pulseaudio; then
+ MY_AUDIO=pulseaudio
+ fi
+ echo ${MY_AUDIO}
+}
+
+pkg_setup() {
+ if ! use portaudio && ! use pulseaudio; then
+ ewarn
+ ewarn Since portaudio and pulseaudio are not in your use flags,
+ ewarn espeak will only be able to create wav files.
+ ewarn If this is not what you want, press ctrl-c and put either
+ ewarn portaudio or pulseaudio in your use flags.
+ ebeep
+ epause 10
+ elif use portaudio && use pulseaudio; then
+ die "You must choose either portaudio or pulseaudio, but not both."
+ fi
+}
+
+src_prepare() {
+ cd src
+ # gentoo uses portaudio 19.
+ if use portaudio; then
+ mv -f portaudio19.h portaudio.h
+ fi
+}
+
+src_compile() {
+ cd src
+ emake AUDIO="$(get_audio)" CXXFLAGS="${CXXFLAGS}" all || die "Compilation failed"
+
+ einfo "Fixing byte order of phoneme data files"
+ cd "${S}/platforms/big_endian"
+ make
+ ./espeak-phoneme-data "${S}/espeak-data"
+ cp -f phondata phonindex phontab "${S}/espeak-data"
+}
+
+src_install() {
+ cd src
+ make DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" AUDIO="$(get_audio)" install || die "Installation failed"
+
+ cd ..
+ insinto /usr/share/espeak-data
+ doins -r dictsource
+ dodoc ChangeLog ReadMe
+ dohtml -r docs/*
+}
diff --git a/app-accessibility/espeak/metadata.xml b/app-accessibility/espeak/metadata.xml
new file mode 100644
index 000000000000..6a31c202cb6d
--- /dev/null
+++ b/app-accessibility/espeak/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>accessibility</herd>
+<maintainer>
+ <email>williamh@gentoo.org</email>
+</maintainer>
+</pkgmetadata>