diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-accessibility/espeak | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-accessibility/espeak')
-rw-r--r-- | app-accessibility/espeak/Manifest | 7 | ||||
-rw-r--r-- | app-accessibility/espeak/espeak-1.47.11-r1.ebuild | 97 | ||||
-rw-r--r-- | app-accessibility/espeak/espeak-1.48.04-r1.ebuild | 100 | ||||
-rw-r--r-- | app-accessibility/espeak/espeak-1.48.04.ebuild | 97 | ||||
-rw-r--r-- | app-accessibility/espeak/files/espeak-1.48.04-gcc-6-fix.patch | 13 | ||||
-rw-r--r-- | app-accessibility/espeak/metadata.xml | 14 |
6 files changed, 328 insertions, 0 deletions
diff --git a/app-accessibility/espeak/Manifest b/app-accessibility/espeak/Manifest new file mode 100644 index 000000000000..ea9b0aac0618 --- /dev/null +++ b/app-accessibility/espeak/Manifest @@ -0,0 +1,7 @@ +AUX espeak-1.48.04-gcc-6-fix.patch 531 BLAKE2B e17d5304b52ab2e805f63d685f05bf5343a9fd1b64876091b64469ec652296a5de2d04e40b639bd1acb455e133330bfbc270e0d3293b4c487ca174e97d2d4837 SHA512 92966a8f3ef3a4cca2b208216ae9ecd65efdb67001b4ed8c0868bc95bc87fec88826f7554a5239c97269dc673cec8ac70f36c9f3fe186f0a5e6eca924e0bb681 +DIST espeak-1.47.11-source.zip 2813649 BLAKE2B 0ebeabcfd8193dd0d37c43974616f5fc4d769bde7b0a730b37456cd1ab580ab84b5bc141804f4c25d7bff6f4b401fe46764e0117cd9c4a55e2216de6965c17b7 SHA512 77c3989fbd0e4aadae0da2d7f1c587854895ae103633704ee5b4042b0618897d01edffa80b1f13e6cbf356f2f31beaf4fdb7e90e4ab641d5286d559aaefe932b +DIST espeak-1.48.04-source.zip 3019245 BLAKE2B a29da5eab832fa76b180049765f7fa671ebf47c0a68ee2cdfb0f4466846d97b2bf7b8f07dba747e236a27c9b077000bfd471e35b9744ffac7c9014679f5c04fd SHA512 f0759e6ace2604c8cbb19e8c3fd4b106edf4dcece247a6677f6b734af7746c35a367126edfbe585396c98f6c54f07e25d64bfab35e258e64f09bd2c0833247fa +EBUILD espeak-1.47.11-r1.ebuild 2168 BLAKE2B 48e122f34102812549c4956e8c00974c9f2ff23574c304e20124dbe3b346b5d1c73e92cbe33c3accb39a80c857721fd241638694cc3f15b8e594084b96a44058 SHA512 2a568eecb2de15d85a53718ea909a11f1f496717c1a05c6bdccafb26258e21c3d45e8f170d802b6be5a77e9add59991c17f34fcf28505fe14a8a23c4d1fd5df7 +EBUILD espeak-1.48.04-r1.ebuild 2233 BLAKE2B c418cef82e2f14662f0d5165e38ddf26de0eddaf47191a44a7b9cf920e0ebda154333ef01a437bb222aa1d565be663b36e063cf1061b67e7b19e73cfffceb932 SHA512 0cf7bdd42f345134fa2b86f7a8bbdf2c834d2625d4f41d11f6b31355aefa3879e9c09901537c1a8495f08c4fb2a00a4926896cc59c7626e2099f64609711a156 +EBUILD espeak-1.48.04.ebuild 2184 BLAKE2B 6b64fb9c609d35c708e6caac07671efa7faa0ee6ef20857283991898b76b8752ec1325c3011468d90c1a46574b33d3cd5f6e630617cf2e2f50abdd344d7c0b53 SHA512 25f0d32cc339ffe486127cc65e455cb5c5d757f3bd919c1a070af17645b09982fe70b5ab6932433701e040096f3adcc65d3ed93c65dcb80ba5c8e52b5d437659 +MISC metadata.xml 425 BLAKE2B a6169a58eac6bcb96da0494648d79f9d5de93430a267d7530f98204562da315deee7ac12f33b0b31e00bd25d190d63a89d00496f6f571ff9cbeb20bb9ee1e9bc SHA512 b3022c321c69fc77c743a0ef402af1801d426e3b72e84754100a4197a5a82df99bfe85b05411d0510e93a262b91d10d63189ff878af91383583e718b8e468f77 diff --git a/app-accessibility/espeak/espeak-1.47.11-r1.ebuild b/app-accessibility/espeak/espeak-1.47.11-r1.ebuild new file mode 100644 index 000000000000..a697715f8fe7 --- /dev/null +++ b/app-accessibility/espeak/espeak-1.47.11-r1.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +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 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" +IUSE="portaudio pulseaudio" + +COMMON_DEPEND=" portaudio? ( >=media-libs/portaudio-19_pre20071207 ) + pulseaudio? ( media-sound/pulseaudio )" + +DEPEND="${COMMON_DEPEND} + app-arch/unzip" + +RDEPEND="${COMMON_DEPEND} + media-sound/sox" + +S=${WORKDIR}/${MY_P}/src + +get_audio() { + if use portaudio && use pulseaudio; then + echo runtime + elif use portaudio; then + echo portaudio + elif use pulseaudio; then + echo pulseaudio + else + echo none + fi +} + +src_prepare() { + # gentoo uses portaudio 19. + mv -f portaudio19.h portaudio.h +} + +src_compile() { + emake \ + PREFIX="${EPREFIX}/usr" \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + CXX="$(tc-getCXX)" \ + CXXFLAGS="${CXXFLAGS}" \ + AR="$(tc-getAR)" \ + AUDIO="$(get_audio)" \ + all + + einfo "Fixing byte order of phoneme data files" + pushd ../platforms/big_endian > /dev/null + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" + ./espeak-phoneme-data \ + ../../espeak-data \ + . \ + ../../espeak-data/phondata-manifest + cp -f phondata phonindex phontab "../../espeak-data" +} + +src_install() { + emake \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="\$(PREFIX)/$(get_libdir)" \ + DESTDIR="${D}" \ + AUDIO="$(get_audio)" \ + install + + cd .. + insinto /usr/share/espeak-data + doins -r dictsource + dodoc ChangeLog.txt ReadMe + dohtml -r docs/* +} + +pkg_preinst() { + local voicedir="${ROOT}/usr/share/${PN}-data/voices/en" + if [ -d "${voicedir}" ]; then + rm -rf "${voicedir}" + fi +} + +pkg_postinst() { + if ! use portaudio && ! use pulseaudio; then + 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, please reemerge ${CATEGORY}/${PN}" + ewarn "with either portaudio or pulseaudio USE flag enabled." + fi +} diff --git a/app-accessibility/espeak/espeak-1.48.04-r1.ebuild b/app-accessibility/espeak/espeak-1.48.04-r1.ebuild new file mode 100644 index 000000000000..bc42c8624d34 --- /dev/null +++ b/app-accessibility/espeak/espeak-1.48.04-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +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 arm ~arm64 ~hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" +IUSE="portaudio pulseaudio" + +COMMON_DEPEND="portaudio? ( >=media-libs/portaudio-19_pre20071207 ) + pulseaudio? ( media-sound/pulseaudio )" + +DEPEND="${COMMON_DEPEND} + app-arch/unzip" + +RDEPEND="${COMMON_DEPEND} + media-sound/sox" + +PATCHES=( "${FILESDIR}"/${P}-gcc-6-fix.patch ) + +S="${WORKDIR}/${MY_P}/src" + +get_audio() { + if use portaudio && use pulseaudio; then + echo runtime + elif use portaudio; then + echo portaudio + elif use pulseaudio; then + echo pulseaudio + else + echo none + fi +} + +src_prepare() { + default + # gentoo uses portaudio 19. + mv -f portaudio19.h portaudio.h +} + +src_compile() { + emake \ + PREFIX="${EPREFIX}/usr" \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + CXX="$(tc-getCXX)" \ + CXXFLAGS="${CXXFLAGS}" \ + AR="$(tc-getAR)" \ + AUDIO="$(get_audio)" \ + all + + einfo "Fixing byte order of phoneme data files" + pushd ../platforms/big_endian > /dev/null + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" + ./espeak-phoneme-data \ + ../../espeak-data \ + . \ + ../../espeak-data/phondata-manifest + cp -f phondata phonindex phontab "../../espeak-data" +} + +src_install() { + emake \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="\$(PREFIX)/$(get_libdir)" \ + DESTDIR="${D}" \ + AUDIO="$(get_audio)" \ + install + + cd .. + insinto /usr/share/espeak-data + doins -r dictsource + dodoc ChangeLog.txt ReadMe + HTML_DOCS="docs/*" einstalldocs +} + +pkg_preinst() { + local voicedir="${ROOT}/usr/share/${PN}-data/voices/en" + if [ -d "${voicedir}" ]; then + rm -rf "${voicedir}" + fi +} + +pkg_postinst() { + if ! use portaudio && ! use pulseaudio; then + 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, please reemerge ${CATEGORY}/${PN}" + ewarn "with either portaudio or pulseaudio USE flag enabled." + fi +} diff --git a/app-accessibility/espeak/espeak-1.48.04.ebuild b/app-accessibility/espeak/espeak-1.48.04.ebuild new file mode 100644 index 000000000000..0ab3acc0376a --- /dev/null +++ b/app-accessibility/espeak/espeak-1.48.04.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +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 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="portaudio pulseaudio" + +COMMON_DEPEND=" portaudio? ( >=media-libs/portaudio-19_pre20071207 ) + pulseaudio? ( media-sound/pulseaudio )" + +DEPEND="${COMMON_DEPEND} + app-arch/unzip" + +RDEPEND="${COMMON_DEPEND} + media-sound/sox" + +S=${WORKDIR}/${MY_P}/src + +get_audio() { + if use portaudio && use pulseaudio; then + echo runtime + elif use portaudio; then + echo portaudio + elif use pulseaudio; then + echo pulseaudio + else + echo none + fi +} + +src_prepare() { + # gentoo uses portaudio 19. + mv -f portaudio19.h portaudio.h +} + +src_compile() { + emake \ + PREFIX="${EPREFIX}/usr" \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + CXX="$(tc-getCXX)" \ + CXXFLAGS="${CXXFLAGS}" \ + AR="$(tc-getAR)" \ + AUDIO="$(get_audio)" \ + all + + einfo "Fixing byte order of phoneme data files" + pushd ../platforms/big_endian > /dev/null + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" + ./espeak-phoneme-data \ + ../../espeak-data \ + . \ + ../../espeak-data/phondata-manifest + cp -f phondata phonindex phontab "../../espeak-data" +} + +src_install() { + emake \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="\$(PREFIX)/$(get_libdir)" \ + DESTDIR="${D}" \ + AUDIO="$(get_audio)" \ + install + + cd .. + insinto /usr/share/espeak-data + doins -r dictsource + dodoc ChangeLog.txt ReadMe + dohtml -r docs/* +} + +pkg_preinst() { + local voicedir="${ROOT}/usr/share/${PN}-data/voices/en" + if [ -d "${voicedir}" ]; then + rm -rf "${voicedir}" + fi +} + +pkg_postinst() { + if ! use portaudio && ! use pulseaudio; then + 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, please reemerge ${CATEGORY}/${PN}" + ewarn "with either portaudio or pulseaudio USE flag enabled." + fi +} diff --git a/app-accessibility/espeak/files/espeak-1.48.04-gcc-6-fix.patch b/app-accessibility/espeak/files/espeak-1.48.04-gcc-6-fix.patch new file mode 100644 index 000000000000..f28de7338b37 --- /dev/null +++ b/app-accessibility/espeak/files/espeak-1.48.04-gcc-6-fix.patch @@ -0,0 +1,13 @@ +https://src.fedoraproject.org/cgit/rpms/espeak.git/tree/espeak-1.48-gcc-6-fix.patch +diff --git a/src/tr_languages.cpp b/src/tr_languages.cpp +--- a/tr_languages.cpp ++++ b/tr_languages.cpp +@@ -198,7 +198,7 @@ static const unsigned short chars_ignore_zwnj_hyphen[] = { + 0x200d, 1, // zero width joiner + 0, 0 }; + +-const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8 ++const char string_ordinal[] = {'\xc2','\xba',0}; // masculine ordinal character, UTF-8 + + + static Translator* NewTranslator(void) diff --git a/app-accessibility/espeak/metadata.xml b/app-accessibility/espeak/metadata.xml new file mode 100644 index 000000000000..368b975990cf --- /dev/null +++ b/app-accessibility/espeak/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>williamh@gentoo.org</email> + </maintainer> + <maintainer type="project"> + <email>accessibility@gentoo.org</email> + <name>Gentoo Accessibility Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">espeak</remote-id> + </upstream> +</pkgmetadata> |