| 1 |
|
# Copyright 1999-2024 Gentoo Authors
|
|
1 |
# Copyright 1999-2026 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| 5 |
5 |
|
| 6 |
|
inherit optfeature readme.gentoo-r1 elisp
|
|
6 |
inherit elisp optfeature readme.gentoo-r1
|
| 7 |
7 |
|
| 8 |
8 |
DESCRIPTION="Emacs speech support"
|
| 9 |
|
HOMEPAGE="https://www.freebsoft.org/speechd-el
|
| 10 |
|
https://github.com/brailcom/speechd-el"
|
| 11 |
|
SRC_URI="https://github.com/brailcom/${PN}/archive/${P}.tar.gz"
|
| 12 |
|
S="${WORKDIR}"/${PN}-${P}
|
|
9 |
HOMEPAGE="https://www.freebsoft.org/speechd-el/
|
|
10 |
https://github.com/brailcom/speechd-el/"
|
|
11 |
|
|
12 |
if [[ "${PV}" == *9999* ]] ; then
|
|
13 |
inherit git-r3
|
|
14 |
|
|
15 |
EGIT_REPO_URI="https://github.com/brailcom/${PN}"
|
|
16 |
else
|
|
17 |
SRC_URI="https://github.com/brailcom/${PN}/archive/refs/tags/${P}.tar.gz
|
|
18 |
-> ${P}.gh.tar.gz"
|
|
19 |
S="${WORKDIR}/${PN}-${P}"
|
|
20 |
|
|
21 |
KEYWORDS="~amd64 ~ppc ~x86"
|
|
22 |
fi
|
| 13 |
23 |
|
| 14 |
24 |
LICENSE="GPL-3+"
|
| 15 |
25 |
SLOT="0"
|
| 16 |
|
KEYWORDS="amd64 ~ppc x86"
|
| 17 |
26 |
|
| 18 |
|
RDEPEND=">=app-accessibility/speech-dispatcher-0.7"
|
|
27 |
RDEPEND="
|
|
28 |
>=app-accessibility/speech-dispatcher-0.7
|
|
29 |
"
|
| 19 |
30 |
|
|
31 |
DISABLE_AUTOFORMATTING="YES"
|
| 20 |
32 |
DOC_CONTENTS="To get Emacs to speak execute:
|
| 21 |
33 |
M-x speechd-speak RET
|
| 22 |
34 |
|
| 23 |
35 |
or add following to your initialization file (~/.emacs):
|
| 24 |
36 |
(speechd-speak)"
|
| 25 |
|
DISABLE_AUTOFORMATTING=YES
|
| 26 |
37 |
|
|
38 |
DOCS=( ANNOUNCE NEWS README speechd-speak.pdf )
|
| 27 |
39 |
SITEFILE="50${PN}-gentoo.el"
|
| 28 |
40 |
|
| 29 |
41 |
src_compile() {
|
| 30 |
|
emake
|
|
42 |
emake EMACS="${EMACS}"
|
| 31 |
43 |
}
|
| 32 |
44 |
|
| 33 |
45 |
src_install() {
|
| 34 |
46 |
elisp_src_install
|
| 35 |
|
|
| 36 |
47 |
dobin speechd-log-extractor
|
| 37 |
|
dodoc ANNOUNCE NEWS README speechd-speak.pdf
|
| 38 |
|
doinfo ${PN}.info
|
|
48 |
doinfo "${PN}.info"
|
| 39 |
49 |
}
|
| 40 |
50 |
|
| 41 |
51 |
pkg_postinst() {
|
| 42 |
52 |
elisp_pkg_postinst
|
| 43 |
|
|
| 44 |
53 |
optfeature "braille support" "app-accessibility/brltty"
|
| 45 |
54 |
}
|