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/eflite |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-accessibility/eflite')
-rw-r--r-- | app-accessibility/eflite/Manifest | 8 | ||||
-rw-r--r-- | app-accessibility/eflite/eflite-0.4.1-r3.ebuild | 45 | ||||
-rw-r--r-- | app-accessibility/eflite/files/eflite-0.4.1-flite14.patch | 24 | ||||
-rw-r--r-- | app-accessibility/eflite/files/eflite.rc | 28 | ||||
-rw-r--r-- | app-accessibility/eflite/files/es.conf | 11 | ||||
-rw-r--r-- | app-accessibility/eflite/metadata.xml | 33 |
6 files changed, 149 insertions, 0 deletions
diff --git a/app-accessibility/eflite/Manifest b/app-accessibility/eflite/Manifest new file mode 100644 index 000000000000..7dedff66d4d3 --- /dev/null +++ b/app-accessibility/eflite/Manifest @@ -0,0 +1,8 @@ +AUX eflite-0.4.1-flite14.patch 1070 SHA256 aace5d43a4ace3cdb9218e53c5498a5870dda6f02034322633cce6a82d64e945 SHA512 fabf260a517c1d7fd3af66fd6972f200d9c7d129ed36090ae77f493142728cd6207db77b1b02710fd22fd0e81e59857fb21b113ef5fb30ff6035778e143a3304 WHIRLPOOL 72ad2f226abe4014514a9b6fef19edf1133acdfbc8a77a502af3193422faf662dbb2df02e8296c2440fa6d39040eb13f03b5b98ee5b9ce32298652e3e1277823 +AUX eflite.rc 645 SHA256 82f53890af178346638e66ebefcebcd57c7756bf4971dce78f88872bad5b7d4b SHA512 81a918cc412500ed2ccd15eede7c2e800d6a0c04916b0e86e490027543430c8c0bd84b0e0d28280d4b22f3def37d8f94cfb0ad1d1df1446650c17f8bcbe7b7ca WHIRLPOOL 9a5a3592e1ebf6d8a61fe1ab37eb4bf971afa9719c19dbda3f9df25ffc6c775956fed9925bac33dbaa30895cfb014a898463ca7efe7ac04dc61222eb0afe67fc +AUX es.conf 213 SHA256 20de1fd6979f3a4254fb5e7cac4f135647c8abce030ceef88648b6db0c745d27 SHA512 19e8b5aefb7aa650d1e023a8cd5cf7361acf6f390f2f3f34de1da0b9c2bdddf632bc247f4e6c8eac025118c76d64f375837c13aff8f02342f17acc974beb9547 WHIRLPOOL e0a239a5f86a8cd9c5cb9107ff4ce9180fa4b6b331daef2375cdb04fd4cd845f29e8a37b27bfb1d9fbbe9db3e695abdf7a7bd76f45e649e9e4dc27270da8624f +DIST eflite-0.4.1.tar.gz 63192 SHA256 91ad85855e55a3fc3b97a1a525db5fd1d211d54342bbfc88d1026813104f1721 SHA512 0060980fd5bb65ad94f1609f6d87cb89b91e680228b603fa590e6ba70b51e894493dda4271dca4d8c97f38cdefbd456c3be0447e5f88a0be7ae39324baa2c796 WHIRLPOOL 50e5e31bd0e8759fdfae1b5183c3fc4b9d1d03d2aa04dd7102651e2aaebafc9b312b1e20082c20bdcb745b7c7fad47bd64f145e392551e6c1d31fa01af5b7969 +EBUILD eflite-0.4.1-r3.ebuild 925 SHA256 21ebd9b45585b5983794e03fa54efcacf542d01f4f0be83074d7cbd85aa12360 SHA512 40ddda73dc2d7f34dbadcd4894e408cf73c4a29054061d50cf82bad32a3c5aa26e58af2820f25022358450735a395b2a40c2f4ee8a76b630027cab43b36319df WHIRLPOOL b3fdd67b3a366b22f6241525ca3eeb784e1d5299f2a8124d8f74f5507de8f910c12794a3ec2e8b01d4066c2b1303a72a5267ab6341dcb24197cf74cc249128bc +MISC ChangeLog 2880 SHA256 25ff53f98805b6f6a9ad78070abc50cbd256421eb95980da18da0701d685b4f5 SHA512 2a324ed926e05d4c7459816e54ca17d6025142f57e450aafe131daa3716511eb6e2a8c25d8de1aa8ae06d153f68f12d8074715ee4c7ca744d573970fed3154ef WHIRLPOOL c7bd4da4bca1fa5bee940466cc8b8ed4bdbdad98f0a812be830b09e72aa5b1369626c3d44eaffbefcdf8c4721b8af6227c9322fe947d2bd40a15ef001cca2a2c +MISC ChangeLog-2015 6153 SHA256 fa5279e4a1d0ca022acecd0c2acd33d118569bdf7b1bffccccb857a6e13303d8 SHA512 04bef443906d6d537e2d60ce73c231ea269f13bffb292df8c2b00bbd5bd88bb1c8dd456468fe45fd9dd0515b662f281e6b6738def456c06aa0d09301c0c1f589 WHIRLPOOL ad9b0894f5098691111d2c5ca0d89347a40f6df4faaf87a10c59322798da3008c1a54f4bbc295b7b1d9e2e0e9242509de04f92d7d25fdf69d5ac51666371493f +MISC metadata.xml 1230 SHA256 feeb3e6bd59a91f032f6a1c4ee27f1c79a0b8fd6bc81f94238fd21d78d7c3518 SHA512 12e9252ad64880f82a2c030444f2ead9139a5762d482e8cb7a0b3d19d3a9abc9039dc31aae988dcbc11d682b3135a0a7fab8e0699eb8d7a06d2b5ea0a3d3e4d3 WHIRLPOOL e757f2cc4c4f5cd29a4132b4f3e29689a1737d63734ad064b1f318cb9882de8a1f82ffc89ae8bc053c1da837f7c93ed874bba056db6b2faa55dfa79e4777b0ee diff --git a/app-accessibility/eflite/eflite-0.4.1-r3.ebuild b/app-accessibility/eflite/eflite-0.4.1-r3.ebuild new file mode 100644 index 000000000000..fd08c28eb243 --- /dev/null +++ b/app-accessibility/eflite/eflite-0.4.1-r3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +inherit autotools eutils user + +DESCRIPTION="A speech server that allows screen readers to interact with festival lite" +HOMEPAGE="http://eflite.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ppc ppc64 sparc x86" +IUSE="+16k_voice" + +DEPEND=">=app-accessibility/flite-1.4" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i 's:/etc/es.conf:/etc/eflite/es.conf:g' * + epatch "${FILESDIR}"/${PN}-0.4.1-flite14.patch + eautoreconf +} + +src_configure() { + local myconf + if use 16k_voice; then + myconf='--with-vox=cmu_us_kal16' + fi + econf ${myconf} +} + +src_install() { + einstall + dodoc ChangeLog README INSTALL eflite_test.txt + + insinto /etc/eflite + doins "${FILESDIR}"/es.conf + + newinitd "${FILESDIR}"/eflite.rc eflite +} + +pkg_postinst() { + enewgroup speech +} diff --git a/app-accessibility/eflite/files/eflite-0.4.1-flite14.patch b/app-accessibility/eflite/files/eflite-0.4.1-flite14.patch new file mode 100644 index 000000000000..cb3096d88a43 --- /dev/null +++ b/app-accessibility/eflite/files/eflite-0.4.1-flite14.patch @@ -0,0 +1,24 @@ +diff -Naur eflite-0.4.1/Makefile.in eflite-0.4.1-new/Makefile.in +--- eflite-0.4.1/Makefile.in 2007-01-18 18:01:09.000000000 -0600 ++++ eflite-0.4.1-new/Makefile.in 2010-07-23 20:06:45.000000000 -0500 +@@ -34,7 +34,7 @@ + $(CC) $(LDFLAGS) -o $@ $^ -lm $(LIBS) $(FLITE_LIBS) $(AUDIOLIBS) + + fs.o: fs.c +- $(CC) $(CFLAGS) @AUDIODEFS@ -I. -I$(flite_include_dir) -DREGISTER_VOX=register_$(subst cmu_us_kal16,cmu_us_kal,$(FL_VOX)) -DSTANDALONE -DEFLITE -c -o $@ $< ++ $(CC) $(CFLAGS) @AUDIODEFS@ -I. -I$(flite_include_dir) -DREGISTER_VOX=register_$(FL_VOX) -DSTANDALONE -DEFLITE -c -o $@ $< + + tone.o: tone.c + $(CC) $(CFLAGS) -I$(flite_include_dir) -DEFLITE -c -o $@ $< +diff -Naur eflite-0.4.1/fs.c eflite-0.4.1.new/fs.c +--- eflite-0.4.1/fs.c 2007-01-18 16:01:09.000000000 -0800 ++++ eflite-0.4.1.new/fs.c 2013-09-08 09:31:57.417262688 -0700 +@@ -523,7 +523,7 @@ + int playlen, skip; + if (type == SPEECH) + { +- skip = (187 * wptr->sample_rate) / speed; ++ skip = 0; + playlen = wptr->num_samples - (skip * 2); + if (playlen > 0 && playlen < 500) playlen += (skip * 2) / 3; + } diff --git a/app-accessibility/eflite/files/eflite.rc b/app-accessibility/eflite/files/eflite.rc new file mode 100644 index 000000000000..2a65b04d0a8a --- /dev/null +++ b/app-accessibility/eflite/files/eflite.rc @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use alsasound + use modules + use hotplug +} + +start() { + ebegin "Starting eflite" + start-stop-daemon --start --exec /usr/bin/eflite --background \ + --quiet --pidfile /var/run/eflite.pid --make-pidfile -- -D || eend 1 + + SOCKET=`egrep '^sockname=' /etc/eflite/es.conf | sed 's/^sockname=//'` + [ ! -S ${SOCKET} ] && SOCKET=/tmp/es.socket + + chown root:speech ${SOCKET} + chmod 660 ${SOCKET} + eend $? +} + +stop() { + ebegin "Stopping eflite" + start-stop-daemon --stop --quiet --pidfile /var/run/eflite.pid + eend $? +} diff --git a/app-accessibility/eflite/files/es.conf b/app-accessibility/eflite/files/es.conf new file mode 100644 index 000000000000..17443d3e42ba --- /dev/null +++ b/app-accessibility/eflite/files/es.conf @@ -0,0 +1,11 @@ +# What socket do we listen on +sockname=/tmp/es.socket + +# What volume do we set? +tone_volume=8192 + +# Do we use the PC Speaker? (0/1) +speaker_tones=0 + +# Do we use the sound card (via flite)? (0/1) +soundcard_tones=1 diff --git a/app-accessibility/eflite/metadata.xml b/app-accessibility/eflite/metadata.xml new file mode 100644 index 000000000000..9c8a9fdaf58f --- /dev/null +++ b/app-accessibility/eflite/metadata.xml @@ -0,0 +1,33 @@ +<?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> + <maintainer type="project"> + <email>sound@gentoo.org</email> + <name>Gentoo Sound project</name> + </maintainer> + <use> + <flag name="16k_voice">Use a higher-quality voice.</flag> + </use> + <longdescription lang="en"> + EFlite is a speech server for Emacspeak and other screen readers + that allows them to interface with Festival Lite, a free + text-to-speech engine developed at the CMU Speech Center as an + off-shoot of Festival. +</longdescription> + <longdescription lang="ja"> + EFliteはEmacspeakと他のスクリーン読取り装置のスピーチサーバ。この + サーバーで前のプログラムはFestival Lite(CMU Speech Centerで開発した + Festivalのようにスピーチにテキストを変わるエンジン。)と + インタフェスすることが出来る。 +</longdescription> + <upstream> + <remote-id type="sourceforge">eflite</remote-id> + </upstream> +</pkgmetadata> |