Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-accessibility/espeak/
Date: Sat, 26 Sep 2020 14:33:44
Message-Id: 1601130804.3760fa41beb2fb9a78b4d16f7bbe039b5fa964f7.bman@gentoo
1 commit: 3760fa41beb2fb9a78b4d16f7bbe039b5fa964f7
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 26 13:14:58 2020 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 26 14:33:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3760fa41
7
8 app-accessibility/espeak: drop old EAPI=5
9
10 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
11
12 app-accessibility/espeak/Manifest | 1 -
13 app-accessibility/espeak/espeak-1.47.11-r1.ebuild | 97 -----------------------
14 app-accessibility/espeak/espeak-1.48.04.ebuild | 97 -----------------------
15 3 files changed, 195 deletions(-)
16
17 diff --git a/app-accessibility/espeak/Manifest b/app-accessibility/espeak/Manifest
18 index 67bec782cc5..24cc686e8b3 100644
19 --- a/app-accessibility/espeak/Manifest
20 +++ b/app-accessibility/espeak/Manifest
21 @@ -1,2 +1 @@
22 -DIST espeak-1.47.11-source.zip 2813649 BLAKE2B 0ebeabcfd8193dd0d37c43974616f5fc4d769bde7b0a730b37456cd1ab580ab84b5bc141804f4c25d7bff6f4b401fe46764e0117cd9c4a55e2216de6965c17b7 SHA512 77c3989fbd0e4aadae0da2d7f1c587854895ae103633704ee5b4042b0618897d01edffa80b1f13e6cbf356f2f31beaf4fdb7e90e4ab641d5286d559aaefe932b
23 DIST espeak-1.48.04-source.zip 3019245 BLAKE2B a29da5eab832fa76b180049765f7fa671ebf47c0a68ee2cdfb0f4466846d97b2bf7b8f07dba747e236a27c9b077000bfd471e35b9744ffac7c9014679f5c04fd SHA512 f0759e6ace2604c8cbb19e8c3fd4b106edf4dcece247a6677f6b734af7746c35a367126edfbe585396c98f6c54f07e25d64bfab35e258e64f09bd2c0833247fa
24
25 diff --git a/app-accessibility/espeak/espeak-1.47.11-r1.ebuild b/app-accessibility/espeak/espeak-1.47.11-r1.ebuild
26 deleted file mode 100644
27 index 1682a370839..00000000000
28 --- a/app-accessibility/espeak/espeak-1.47.11-r1.ebuild
29 +++ /dev/null
30 @@ -1,97 +0,0 @@
31 -# Copyright 1999-2020 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=5
35 -
36 -inherit eutils multilib toolchain-funcs
37 -
38 -MY_P="${P}-source"
39 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
40 -DESCRIPTION="Speech synthesizer for English and other languages"
41 -HOMEPAGE="http://espeak.sourceforge.net/"
42 -LICENSE="GPL-3"
43 -SLOT="0"
44 -KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
45 -IUSE="portaudio pulseaudio"
46 -
47 -COMMON_DEPEND=" portaudio? ( >=media-libs/portaudio-19_pre20071207 )
48 - pulseaudio? ( media-sound/pulseaudio )"
49 -
50 -DEPEND="${COMMON_DEPEND}
51 - app-arch/unzip"
52 -
53 -RDEPEND="${COMMON_DEPEND}
54 - media-sound/sox"
55 -
56 -S=${WORKDIR}/${MY_P}/src
57 -
58 -get_audio() {
59 - if use portaudio && use pulseaudio; then
60 - echo runtime
61 - elif use portaudio; then
62 - echo portaudio
63 - elif use pulseaudio; then
64 - echo pulseaudio
65 - else
66 - echo none
67 - fi
68 -}
69 -
70 -src_prepare() {
71 - # gentoo uses portaudio 19.
72 - mv -f portaudio19.h portaudio.h
73 -}
74 -
75 -src_compile() {
76 - emake \
77 - PREFIX="${EPREFIX}/usr" \
78 - CC="$(tc-getCC)" \
79 - CFLAGS="${CFLAGS}" \
80 - CXX="$(tc-getCXX)" \
81 - CXXFLAGS="${CXXFLAGS}" \
82 - AR="$(tc-getAR)" \
83 - AUDIO="$(get_audio)" \
84 - all
85 -
86 - einfo "Fixing byte order of phoneme data files"
87 - pushd ../platforms/big_endian > /dev/null
88 - emake \
89 - CC="$(tc-getCC)" \
90 - CFLAGS="${CFLAGS}"
91 - ./espeak-phoneme-data \
92 - ../../espeak-data \
93 - . \
94 - ../../espeak-data/phondata-manifest
95 - cp -f phondata phonindex phontab "../../espeak-data"
96 -}
97 -
98 -src_install() {
99 - emake \
100 - PREFIX="${EPREFIX}/usr" \
101 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
102 - DESTDIR="${D}" \
103 - AUDIO="$(get_audio)" \
104 - install
105 -
106 - cd ..
107 - insinto /usr/share/espeak-data
108 - doins -r dictsource
109 - dodoc ChangeLog.txt ReadMe
110 - dohtml -r docs/*
111 -}
112 -
113 -pkg_preinst() {
114 - local voicedir="${ROOT}/usr/share/${PN}-data/voices/en"
115 - if [ -d "${voicedir}" ]; then
116 - rm -rf "${voicedir}"
117 - fi
118 -}
119 -
120 -pkg_postinst() {
121 - if ! use portaudio && ! use pulseaudio; then
122 - ewarn "Since portaudio and pulseaudio are not in your use flags,"
123 - ewarn "espeak will only be able to create wav files."
124 - ewarn "If this is not what you want, please reemerge ${CATEGORY}/${PN}"
125 - ewarn "with either portaudio or pulseaudio USE flag enabled."
126 - fi
127 -}
128
129 diff --git a/app-accessibility/espeak/espeak-1.48.04.ebuild b/app-accessibility/espeak/espeak-1.48.04.ebuild
130 deleted file mode 100644
131 index 0ab3acc0376..00000000000
132 --- a/app-accessibility/espeak/espeak-1.48.04.ebuild
133 +++ /dev/null
134 @@ -1,97 +0,0 @@
135 -# Copyright 1999-2015 Gentoo Foundation
136 -# Distributed under the terms of the GNU General Public License v2
137 -
138 -EAPI=5
139 -
140 -inherit eutils multilib toolchain-funcs
141 -
142 -MY_P="${P}-source"
143 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
144 -DESCRIPTION="Speech synthesizer for English and other languages"
145 -HOMEPAGE="http://espeak.sourceforge.net/"
146 -LICENSE="GPL-3"
147 -SLOT="0"
148 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
149 -IUSE="portaudio pulseaudio"
150 -
151 -COMMON_DEPEND=" portaudio? ( >=media-libs/portaudio-19_pre20071207 )
152 - pulseaudio? ( media-sound/pulseaudio )"
153 -
154 -DEPEND="${COMMON_DEPEND}
155 - app-arch/unzip"
156 -
157 -RDEPEND="${COMMON_DEPEND}
158 - media-sound/sox"
159 -
160 -S=${WORKDIR}/${MY_P}/src
161 -
162 -get_audio() {
163 - if use portaudio && use pulseaudio; then
164 - echo runtime
165 - elif use portaudio; then
166 - echo portaudio
167 - elif use pulseaudio; then
168 - echo pulseaudio
169 - else
170 - echo none
171 - fi
172 -}
173 -
174 -src_prepare() {
175 - # gentoo uses portaudio 19.
176 - mv -f portaudio19.h portaudio.h
177 -}
178 -
179 -src_compile() {
180 - emake \
181 - PREFIX="${EPREFIX}/usr" \
182 - CC="$(tc-getCC)" \
183 - CFLAGS="${CFLAGS}" \
184 - CXX="$(tc-getCXX)" \
185 - CXXFLAGS="${CXXFLAGS}" \
186 - AR="$(tc-getAR)" \
187 - AUDIO="$(get_audio)" \
188 - all
189 -
190 - einfo "Fixing byte order of phoneme data files"
191 - pushd ../platforms/big_endian > /dev/null
192 - emake \
193 - CC="$(tc-getCC)" \
194 - CFLAGS="${CFLAGS}"
195 - ./espeak-phoneme-data \
196 - ../../espeak-data \
197 - . \
198 - ../../espeak-data/phondata-manifest
199 - cp -f phondata phonindex phontab "../../espeak-data"
200 -}
201 -
202 -src_install() {
203 - emake \
204 - PREFIX="${EPREFIX}/usr" \
205 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
206 - DESTDIR="${D}" \
207 - AUDIO="$(get_audio)" \
208 - install
209 -
210 - cd ..
211 - insinto /usr/share/espeak-data
212 - doins -r dictsource
213 - dodoc ChangeLog.txt ReadMe
214 - dohtml -r docs/*
215 -}
216 -
217 -pkg_preinst() {
218 - local voicedir="${ROOT}/usr/share/${PN}-data/voices/en"
219 - if [ -d "${voicedir}" ]; then
220 - rm -rf "${voicedir}"
221 - fi
222 -}
223 -
224 -pkg_postinst() {
225 - if ! use portaudio && ! use pulseaudio; then
226 - ewarn "Since portaudio and pulseaudio are not in your use flags,"
227 - ewarn "espeak will only be able to create wav files."
228 - ewarn "If this is not what you want, please reemerge ${CATEGORY}/${PN}"
229 - ewarn "with either portaudio or pulseaudio USE flag enabled."
230 - fi
231 -}