diff options
author | Leonardo Boshell <leonardop@gentoo.org> | 2007-04-20 03:54:52 +0000 |
---|---|---|
committer | Leonardo Boshell <leonardop@gentoo.org> | 2007-04-20 03:54:52 +0000 |
commit | dde96d2cde875c406b0e87c7ea73382566b822a5 (patch) | |
tree | 901524ba1cd1bd075b5b78f80fd22ce995c5fad5 /app-accessibility/espeak | |
parent | Version bump, bug 174980 (diff) | |
download | gentoo-2-dde96d2cde875c406b0e87c7ea73382566b822a5.tar.gz gentoo-2-dde96d2cde875c406b0e87c7ea73382566b822a5.tar.bz2 gentoo-2-dde96d2cde875c406b0e87c7ea73382566b822a5.zip |
New release: 1.22. Includes fixes for big-endian machines (bug #163285)
(Portage version: 2.1.2.4)
Diffstat (limited to 'app-accessibility/espeak')
-rw-r--r-- | app-accessibility/espeak/ChangeLog | 9 | ||||
-rw-r--r-- | app-accessibility/espeak/espeak-1.22.ebuild | 72 | ||||
-rw-r--r-- | app-accessibility/espeak/files/digest-espeak-1.22 | 6 | ||||
-rw-r--r-- | app-accessibility/espeak/files/espeak-1.22-makefile.patch | 12 |
4 files changed, 98 insertions, 1 deletions
diff --git a/app-accessibility/espeak/ChangeLog b/app-accessibility/espeak/ChangeLog index a545699320f7..a47d99cb7362 100644 --- a/app-accessibility/espeak/ChangeLog +++ b/app-accessibility/espeak/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-accessibility/espeak # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v 1.10 2007/02/25 05:40:34 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v 1.11 2007/04/20 03:54:52 leonardop Exp $ + +*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) diff --git a/app-accessibility/espeak/espeak-1.22.ebuild b/app-accessibility/espeak/espeak-1.22.ebuild new file mode 100644 index 000000000000..1fa49e94ff9e --- /dev/null +++ b/app-accessibility/espeak/espeak-1.22.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/espeak-1.22.ebuild,v 1.1 2007/04/20 03:54:52 leonardop Exp $ + +inherit eutils + +MY_P="${P}-source" + +DESCRIPTION="Speech synthesizer for English and other languages" +HOMEPAGE="http://espeak.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip + mirror://gentoo/${PN}-utils-${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=media-libs/portaudio-18.1-r5 + app-arch/unzip" + +S=${WORKDIR}/${MY_P} + + +src_unpack() { + unpack ${A} + cd "${S}" + + # portaudio.h is by default the same as portaudio18.h, but use the version + # 19 API if available + if has_version "=media-libs/portaudio-19*" ; then + mv -f "${S}/src/portaudio19.h" "${S}/src/portaudio.h" + fi + + # Apply patch to support big-endian processors + epatch "${FILESDIR}/${PN}-1.20-big-endian.patch" + + # Apply patch for ppc64 segfault + epatch "${FILESDIR}/${PN}-1.20-ppc64-segfault.patch" + + # Let's not fail in make install + epatch "${FILESDIR}/${P}-makefile.patch" +} + +src_compile() { + cd src + emake CXXFLAGS="${CXXFLAGS}" || die "Compilation failed" + + einfo "Fixing byte order of phoneme data files" + cd "${WORKDIR}/${PN}-utils-${PV}" + make + ./espeak-phoneme-data "${S}/espeak-data" + cp -f phondata phonindex phontab "${S}/espeak-data" + + einfo "Compiling dict files" + cd "${S}/dictsource" + export HOME="${S}" + local lang + for l in *_rules; do + lang=${l/_rules/} + ../src/speak --compile=$lang + done +} + +src_install() { + cd src + make DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" install || die "Installation failed" + + cd "${S}" + dodoc ChangeLog ReadMe + dohtml -r docs/* +} diff --git a/app-accessibility/espeak/files/digest-espeak-1.22 b/app-accessibility/espeak/files/digest-espeak-1.22 new file mode 100644 index 000000000000..b5553c732885 --- /dev/null +++ b/app-accessibility/espeak/files/digest-espeak-1.22 @@ -0,0 +1,6 @@ +MD5 57e84d1afc0992f65c568dcddea73fee espeak-1.22-source.zip 835112 +RMD160 86dbcba4e5eaab56820ad51cd9b2ee6909af3e82 espeak-1.22-source.zip 835112 +SHA256 3de077fc0397d8b63488a6c7cdb53aafb7808b4446fc5f9f3dd3cb5abc83151e espeak-1.22-source.zip 835112 +MD5 221a8fe899afb522b343fbbc5198f584 espeak-utils-1.22.tar.bz2 8226 +RMD160 a4725e2172fa5ef730b34277bec5b2adf51091cc espeak-utils-1.22.tar.bz2 8226 +SHA256 227083ed33a42803b01ff0e2383204f9f063eededf3bfdb859970e4852942299 espeak-utils-1.22.tar.bz2 8226 diff --git a/app-accessibility/espeak/files/espeak-1.22-makefile.patch b/app-accessibility/espeak/files/espeak-1.22-makefile.patch new file mode 100644 index 000000000000..d69f26ad5bc2 --- /dev/null +++ b/app-accessibility/espeak/files/espeak-1.22-makefile.patch @@ -0,0 +1,12 @@ +diff -NrudpB espeak-1.22-source/src/Makefile espeak-1.22-source-patched/src/Makefile +--- espeak-1.22-source/src/Makefile 2007-04-04 07:39:47.000000000 -0500 ++++ espeak-1.22-source-patched/src/Makefile 2007-04-19 21:57:19.000000000 -0500 +@@ -75,7 +75,7 @@ distclean: clean + + install: all + # Create directories +- rm -r $(DESTDIR)$(DATADIR) ++ rm -rf $(DESTDIR)$(DATADIR) + $(MKDIR) $(DESTDIR)$(BINDIR) + $(MKDIR) $(DESTDIR)$(LIBDIR) + $(MKDIR) $(DESTDIR)$(INCDIR) |