1 |
commit: 09b3a728f077679df68431188a5bf7f35d595b1b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 18 01:31:11 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 18 03:09:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09b3a728 |
7 |
|
8 |
app-accessibility/emacspeak: add 56.0 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/622166 |
11 |
Closes: https://bugs.gentoo.org/835097 |
12 |
Closes: https://bugs.gentoo.org/832135 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
app-accessibility/emacspeak/Manifest | 1 + |
16 |
...emacspeak-9999.ebuild => emacspeak-56.0.ebuild} | 71 ++++++++++++++-------- |
17 |
app-accessibility/emacspeak/emacspeak-9999.ebuild | 71 ++++++++++++++-------- |
18 |
3 files changed, 89 insertions(+), 54 deletions(-) |
19 |
|
20 |
diff --git a/app-accessibility/emacspeak/Manifest b/app-accessibility/emacspeak/Manifest |
21 |
index 1a147ca5f1d9..9245ede94a48 100644 |
22 |
--- a/app-accessibility/emacspeak/Manifest |
23 |
+++ b/app-accessibility/emacspeak/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST emacspeak-39.0.tar.bz2 4989631 BLAKE2B ea58436fd3d7450938de04b74dcefdd9b9c5bee5c8c3bf48dbd2ca5bd5ce5c795a0d4c60ec05ca83c0020ca650b717e378717dc2d68eb56e80653b5045d5b132 SHA512 c0a0c503d6ccc2abb53a8be580997b44e0449c2225e8a64cee73c24d69a28c3f47c0e660a95a6e77dd4d660272ad562ff747ce3c0a989f8fe7c8171f60349173 |
26 |
+DIST emacspeak-56.0.tar.bz2 7158646 BLAKE2B 484b98e5fac51d30bd9b2705308042ed9e0a49a4684ca777cbc60368fdadd8206ef212af514a5940509c84fee3fdcad12486a31a47cac658c912d7573a484fb7 SHA512 9b18fada991b914ddd3ed30950e685c1c164434536c3dd119b9ed52db80e7e31b7399c72a584938bfb63daa7e1aa76a1f377d664cc1118ffa7f0a4cbdddf0818 |
27 |
|
28 |
diff --git a/app-accessibility/emacspeak/emacspeak-9999.ebuild b/app-accessibility/emacspeak/emacspeak-56.0.ebuild |
29 |
similarity index 50% |
30 |
copy from app-accessibility/emacspeak/emacspeak-9999.ebuild |
31 |
copy to app-accessibility/emacspeak/emacspeak-56.0.ebuild |
32 |
index 67a6062698b4..e9ce5050771c 100644 |
33 |
--- a/app-accessibility/emacspeak/emacspeak-9999.ebuild |
34 |
+++ b/app-accessibility/emacspeak/emacspeak-56.0.ebuild |
35 |
@@ -1,31 +1,38 @@ |
36 |
-# Copyright 1999-2018 Gentoo Foundation |
37 |
+# Copyright 1999-2022 Gentoo Authors |
38 |
# Distributed under the terms of the GNU General Public License v2 |
39 |
|
40 |
-EAPI=6 |
41 |
+EAPI=8 |
42 |
|
43 |
-NEED_EMACS=24 |
44 |
+NEED_EMACS=26.1 |
45 |
FORCE_PRINT_ELOG=1 |
46 |
DISABLE_AUTOFORMATTING=1 |
47 |
-inherit elisp readme.gentoo-r1 |
48 |
+inherit elisp toolchain-funcs readme.gentoo-r1 |
49 |
|
50 |
-if [[ ${PV} == "9999" ]] ; then |
51 |
+DESCRIPTION="The emacspeak audio desktop" |
52 |
+HOMEPAGE="http://emacspeak.sourceforge.net/" |
53 |
+ |
54 |
+if [[ ${PV} == 9999 ]] ; then |
55 |
EGIT_REPO_URI="https://github.com/tvraman/emacspeak.git" |
56 |
inherit git-r3 |
57 |
else |
58 |
- SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2" |
59 |
+ SRC_URI="https://github.com/tvraman/emacspeak/releases/download/${PV}/${P}.tar.bz2" |
60 |
KEYWORDS="~amd64 ~ppc ~x86" |
61 |
fi |
62 |
|
63 |
-DESCRIPTION="the emacspeak audio desktop" |
64 |
-HOMEPAGE="http://emacspeak.sourceforge.net/" |
65 |
LICENSE="BSD GPL-2" |
66 |
SLOT="0" |
67 |
IUSE="+espeak" |
68 |
|
69 |
-DEPEND="espeak? ( app-accessibility/espeak )" |
70 |
- |
71 |
-RDEPEND="${DEPEND} |
72 |
- >=dev-tcltk/tclx-8.4" |
73 |
+# Usually need := dep with tcl anyway but in particular, it's needed |
74 |
+# here as we do a version check in src_compile and bake in the results. |
75 |
+DEPEND=" |
76 |
+ dev-lang/tcl:= |
77 |
+ espeak? ( app-accessibility/espeak-ng ) |
78 |
+" |
79 |
+RDEPEND=" |
80 |
+ ${DEPEND} |
81 |
+ >=dev-tcltk/tclx-8.4 |
82 |
+" |
83 |
|
84 |
DOC_CONTENTS=' |
85 |
As of version 39.0 and later, the /usr/bin/emacspeak |
86 |
@@ -35,9 +42,13 @@ by adding the following to your ~/.emacs file: |
87 |
(load "/usr/share/emacs/site-lisp/emacspeak/lisp/emacspeak-setup.el") |
88 |
' |
89 |
|
90 |
-HTML_DOCS=( install-guide user-guide ) |
91 |
+HTML_DOCS=( info/ ) |
92 |
|
93 |
src_configure() { |
94 |
+ MAKEOPTS+=" -j1" |
95 |
+ |
96 |
+ tc-export CXX |
97 |
+ |
98 |
emake config |
99 |
} |
100 |
|
101 |
@@ -45,33 +56,39 @@ src_compile() { |
102 |
emake emacspeak |
103 |
if use espeak; then |
104 |
local tcl_version="$(echo 'puts $tcl_version;exit 0' |tclsh)" |
105 |
- if [[ -z $tcl_version ]]; then |
106 |
+ if [[ -z ${tcl_version} ]]; then |
107 |
die 'Unable to detect the installed version of dev-lang/tcl.' |
108 |
fi |
109 |
- cd servers/linux-espeak || die |
110 |
+ |
111 |
+ cd servers/native-espeak || die |
112 |
emake TCL_VERSION="${tcl_version}" |
113 |
fi |
114 |
} |
115 |
|
116 |
src_install() { |
117 |
emake DESTDIR="${D}" install |
118 |
- rm "${D}/usr/bin/emacspeak" |
119 |
+ |
120 |
if use espeak; then |
121 |
- pushd servers/linux-espeak > /dev/null || die |
122 |
+ pushd servers/native-espeak > /dev/null || die |
123 |
+ |
124 |
emake DESTDIR="${D}" install |
125 |
- local orig_serverdir="/usr/share/emacs/site-lisp/emacspeak/servers/linux-espeak" |
126 |
- local serverfile="${D}${orig_serverdir}/tclespeak.so" |
127 |
- install -Dm755 "$serverfile" \ |
128 |
- "${D}/usr/$(get_libdir)/emacspeak/tclespeak.so" || die |
129 |
- rm -f "$serverfile" || die |
130 |
- dosym "/usr/$(get_libdir)/emacspeak/tclespeak.so" \ |
131 |
- "$orig_serverdir/tclespeak.so" |
132 |
+ local orig_serverdir="/usr/share/emacs/site-lisp/emacspeak/servers/native-espeak" |
133 |
+ local serverfile="${ED}${orig_serverdir}/tclespeak.so" |
134 |
+ |
135 |
+ install -Dm755 "${serverfile}" \ |
136 |
+ "${ED}/usr/$(get_libdir)/emacspeak/tclespeak.so" || die |
137 |
+ rm -f "${serverfile}" || die |
138 |
+ |
139 |
+ dosym -r "/usr/$(get_libdir)/emacspeak/tclespeak.so" \ |
140 |
+ "${orig_serverdir}/tclespeak.so" |
141 |
popd > /dev/null || die |
142 |
fi |
143 |
- dodoc README etc/NEWS* etc/FAQ etc/COPYRIGHT |
144 |
+ |
145 |
+ dodoc README etc/NEWS* etc/COPYRIGHT |
146 |
einstalldocs |
147 |
- cd "${D}/usr/share/emacs/site-lisp/${PN}" || die |
148 |
- rm -rf README etc/NEWS* etc/FAQ etc/COPYRIGHT install-guide \ |
149 |
+ |
150 |
+ cd "${ED}"/usr/share/emacs/site-lisp/${PN} || die |
151 |
+ rm -rf README etc/NEWS* etc/COPYRIGHT install-guide \ |
152 |
user-guide || die |
153 |
readme.gentoo_create_doc |
154 |
} |
155 |
|
156 |
diff --git a/app-accessibility/emacspeak/emacspeak-9999.ebuild b/app-accessibility/emacspeak/emacspeak-9999.ebuild |
157 |
index 67a6062698b4..e9ce5050771c 100644 |
158 |
--- a/app-accessibility/emacspeak/emacspeak-9999.ebuild |
159 |
+++ b/app-accessibility/emacspeak/emacspeak-9999.ebuild |
160 |
@@ -1,31 +1,38 @@ |
161 |
-# Copyright 1999-2018 Gentoo Foundation |
162 |
+# Copyright 1999-2022 Gentoo Authors |
163 |
# Distributed under the terms of the GNU General Public License v2 |
164 |
|
165 |
-EAPI=6 |
166 |
+EAPI=8 |
167 |
|
168 |
-NEED_EMACS=24 |
169 |
+NEED_EMACS=26.1 |
170 |
FORCE_PRINT_ELOG=1 |
171 |
DISABLE_AUTOFORMATTING=1 |
172 |
-inherit elisp readme.gentoo-r1 |
173 |
+inherit elisp toolchain-funcs readme.gentoo-r1 |
174 |
|
175 |
-if [[ ${PV} == "9999" ]] ; then |
176 |
+DESCRIPTION="The emacspeak audio desktop" |
177 |
+HOMEPAGE="http://emacspeak.sourceforge.net/" |
178 |
+ |
179 |
+if [[ ${PV} == 9999 ]] ; then |
180 |
EGIT_REPO_URI="https://github.com/tvraman/emacspeak.git" |
181 |
inherit git-r3 |
182 |
else |
183 |
- SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2" |
184 |
+ SRC_URI="https://github.com/tvraman/emacspeak/releases/download/${PV}/${P}.tar.bz2" |
185 |
KEYWORDS="~amd64 ~ppc ~x86" |
186 |
fi |
187 |
|
188 |
-DESCRIPTION="the emacspeak audio desktop" |
189 |
-HOMEPAGE="http://emacspeak.sourceforge.net/" |
190 |
LICENSE="BSD GPL-2" |
191 |
SLOT="0" |
192 |
IUSE="+espeak" |
193 |
|
194 |
-DEPEND="espeak? ( app-accessibility/espeak )" |
195 |
- |
196 |
-RDEPEND="${DEPEND} |
197 |
- >=dev-tcltk/tclx-8.4" |
198 |
+# Usually need := dep with tcl anyway but in particular, it's needed |
199 |
+# here as we do a version check in src_compile and bake in the results. |
200 |
+DEPEND=" |
201 |
+ dev-lang/tcl:= |
202 |
+ espeak? ( app-accessibility/espeak-ng ) |
203 |
+" |
204 |
+RDEPEND=" |
205 |
+ ${DEPEND} |
206 |
+ >=dev-tcltk/tclx-8.4 |
207 |
+" |
208 |
|
209 |
DOC_CONTENTS=' |
210 |
As of version 39.0 and later, the /usr/bin/emacspeak |
211 |
@@ -35,9 +42,13 @@ by adding the following to your ~/.emacs file: |
212 |
(load "/usr/share/emacs/site-lisp/emacspeak/lisp/emacspeak-setup.el") |
213 |
' |
214 |
|
215 |
-HTML_DOCS=( install-guide user-guide ) |
216 |
+HTML_DOCS=( info/ ) |
217 |
|
218 |
src_configure() { |
219 |
+ MAKEOPTS+=" -j1" |
220 |
+ |
221 |
+ tc-export CXX |
222 |
+ |
223 |
emake config |
224 |
} |
225 |
|
226 |
@@ -45,33 +56,39 @@ src_compile() { |
227 |
emake emacspeak |
228 |
if use espeak; then |
229 |
local tcl_version="$(echo 'puts $tcl_version;exit 0' |tclsh)" |
230 |
- if [[ -z $tcl_version ]]; then |
231 |
+ if [[ -z ${tcl_version} ]]; then |
232 |
die 'Unable to detect the installed version of dev-lang/tcl.' |
233 |
fi |
234 |
- cd servers/linux-espeak || die |
235 |
+ |
236 |
+ cd servers/native-espeak || die |
237 |
emake TCL_VERSION="${tcl_version}" |
238 |
fi |
239 |
} |
240 |
|
241 |
src_install() { |
242 |
emake DESTDIR="${D}" install |
243 |
- rm "${D}/usr/bin/emacspeak" |
244 |
+ |
245 |
if use espeak; then |
246 |
- pushd servers/linux-espeak > /dev/null || die |
247 |
+ pushd servers/native-espeak > /dev/null || die |
248 |
+ |
249 |
emake DESTDIR="${D}" install |
250 |
- local orig_serverdir="/usr/share/emacs/site-lisp/emacspeak/servers/linux-espeak" |
251 |
- local serverfile="${D}${orig_serverdir}/tclespeak.so" |
252 |
- install -Dm755 "$serverfile" \ |
253 |
- "${D}/usr/$(get_libdir)/emacspeak/tclespeak.so" || die |
254 |
- rm -f "$serverfile" || die |
255 |
- dosym "/usr/$(get_libdir)/emacspeak/tclespeak.so" \ |
256 |
- "$orig_serverdir/tclespeak.so" |
257 |
+ local orig_serverdir="/usr/share/emacs/site-lisp/emacspeak/servers/native-espeak" |
258 |
+ local serverfile="${ED}${orig_serverdir}/tclespeak.so" |
259 |
+ |
260 |
+ install -Dm755 "${serverfile}" \ |
261 |
+ "${ED}/usr/$(get_libdir)/emacspeak/tclespeak.so" || die |
262 |
+ rm -f "${serverfile}" || die |
263 |
+ |
264 |
+ dosym -r "/usr/$(get_libdir)/emacspeak/tclespeak.so" \ |
265 |
+ "${orig_serverdir}/tclespeak.so" |
266 |
popd > /dev/null || die |
267 |
fi |
268 |
- dodoc README etc/NEWS* etc/FAQ etc/COPYRIGHT |
269 |
+ |
270 |
+ dodoc README etc/NEWS* etc/COPYRIGHT |
271 |
einstalldocs |
272 |
- cd "${D}/usr/share/emacs/site-lisp/${PN}" || die |
273 |
- rm -rf README etc/NEWS* etc/FAQ etc/COPYRIGHT install-guide \ |
274 |
+ |
275 |
+ cd "${ED}"/usr/share/emacs/site-lisp/${PN} || die |
276 |
+ rm -rf README etc/NEWS* etc/COPYRIGHT install-guide \ |
277 |
user-guide || die |
278 |
readme.gentoo_create_doc |
279 |
} |