diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-accessibility/espeak |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-accessibility/espeak')
-rw-r--r-- | app-accessibility/espeak/Manifest | 9 | ||||
-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, 330 insertions, 0 deletions
diff --git a/app-accessibility/espeak/Manifest b/app-accessibility/espeak/Manifest new file mode 100644 index 000000000000..d4bc06260a5b --- /dev/null +++ b/app-accessibility/espeak/Manifest @@ -0,0 +1,9 @@ +AUX espeak-1.48.04-gcc-6-fix.patch 531 SHA256 ba852d369d5be00b592ea5a676a5573a270612aa95a1fc85a1dc737751ff0760 SHA512 92966a8f3ef3a4cca2b208216ae9ecd65efdb67001b4ed8c0868bc95bc87fec88826f7554a5239c97269dc673cec8ac70f36c9f3fe186f0a5e6eca924e0bb681 WHIRLPOOL 9f3182bf29d53d04c2adffd690d312f60109894130781ff5b4e2989bb05d34c6f055dfd43cadb2fb0c458ffbf843c5c34b2ce71aaa82bddafc343785d4691109 +DIST espeak-1.47.11-source.zip 2813649 SHA256 9bd4d0569af48a2cb13fa76704dec3124d27025a3f21c87598457976472b360c SHA512 77c3989fbd0e4aadae0da2d7f1c587854895ae103633704ee5b4042b0618897d01edffa80b1f13e6cbf356f2f31beaf4fdb7e90e4ab641d5286d559aaefe932b WHIRLPOOL c26f481d4c3c485ba0eb3fe7ae3bcf36e7001d49e0e27a6f0934fdb9c91cfef4974c1d34daebd0286694346a44c647cfb96769da54536e0b4380778af755673c +DIST espeak-1.48.04-source.zip 3019245 SHA256 bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659 SHA512 f0759e6ace2604c8cbb19e8c3fd4b106edf4dcece247a6677f6b734af7746c35a367126edfbe585396c98f6c54f07e25d64bfab35e258e64f09bd2c0833247fa WHIRLPOOL 259fe408a2d3808f4b1ecec6850262f3b7c0e9a4511fa1bcca414da7d6608e2a0b847a3abb19687ea1cb4e21ca8334fdf0b66b6a78bd363882891b3ebdfb06fc +EBUILD espeak-1.47.11-r1.ebuild 2168 SHA256 c708ecbbd8ba2c6b91554f47b1107f7144078f2c48d10cc407667113ec3f08ee SHA512 2a568eecb2de15d85a53718ea909a11f1f496717c1a05c6bdccafb26258e21c3d45e8f170d802b6be5a77e9add59991c17f34fcf28505fe14a8a23c4d1fd5df7 WHIRLPOOL 36e0525f80c6c9aa895756a2056896e70b83548c286d605c88d326247738680a57e5656b725e5a2a5f867455facb524ebb58520d3effb8302a3946ea24b4b22c +EBUILD espeak-1.48.04-r1.ebuild 2241 SHA256 73976ff266dba04a14ca10c87de9ee0cf9c60b1ea50e9b45b02e88eb7d5a22f6 SHA512 6ec8988743584d8d95395626649a58e056489f3acf5201ca8785e2047e08cacdb5ba23064bd5eabeee1baa6d1b46258196a9bdd6b4ccbb7d2a6ad514e10f1e46 WHIRLPOOL 374a9317539bbc16db333116443df7981016b34a987fa39cab87aa8e231a5c33da1fa970b50deb8fd6ae439c690412cacf61dc6205884184838940c83b30317e +EBUILD espeak-1.48.04.ebuild 2184 SHA256 c5722e86e522cea0490c8b2daaea8373b0bd69b83db0965f5b8116f5a3b63645 SHA512 25f0d32cc339ffe486127cc65e455cb5c5d757f3bd919c1a070af17645b09982fe70b5ab6932433701e040096f3adcc65d3ed93c65dcb80ba5c8e52b5d437659 WHIRLPOOL 935d429c80c5ad25a54ec24662a81482463a92df8a9ea23c62b5ff67211b15af1914d665703f6c4f8f4fed1c5a19ccf46d24bfde82433d2ec2737f52c44ea84f +MISC ChangeLog 2497 SHA256 d08d99e013300603e19f272755145c9e26f5076437f7e2e5dc68678d3f3a15ca SHA512 a80085e6667ba37089b6642d2a23500e97f60e6d439a20da6411d50c9cd66107457de90ed68486accfe02749ca13425dce33f7891317344220bd4acaf91c934c WHIRLPOOL 178f2002e4de5f5541bdad6688c75dd1ae2d91cdb56d14e59db962886399802b73c7fc34a0deef12e4ae14144d9194b2c3d2e52a1ff232da9c83d3c6d0d5a45a +MISC ChangeLog-2015 17394 SHA256 a6d62b51ece1404172514142a53e960cc0d32fe9705cb33ab9d5605f257d92a7 SHA512 4075d0c4cca778bf4a637d117afc6ed8f4bfb2a46b5b40c8a79b979d120fed5080c8302785def45754397393c9ce357cbb8f722641dc124fd077313505c94482 WHIRLPOOL ae7a38a13e93eb4166f1dc328204b18ffce0b43ee28f1c72ac335d9bcef9cb9f522d806c2235ebb45e30f85dbedfa2ca209a627126b1ae7b4cabfde6f4efead9 +MISC metadata.xml 425 SHA256 9d26ed2397637b7412195da119b519ea6119502bef67ea2e357f35d804bdb70d SHA512 b3022c321c69fc77c743a0ef402af1801d426e3b72e84754100a4197a5a82df99bfe85b05411d0510e93a262b91d10d63189ff878af91383583e718b8e468f77 WHIRLPOOL 155804c5ba3f8149699aaa6797af46e10c94d9975fe71de5de31527806279618856288473c975aa9d37815f6c9c78ff584b05f320d2280bceab1a5f5ea8c2482 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..2559bb14743d --- /dev/null +++ b/app-accessibility/espeak/espeak-1.48.04-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2017 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> |