1 |
commit: ae2b76c08dfb897f93b6124bfcaa8cd6b090920d |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 3 19:59:00 2021 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 3 19:59:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae2b76c0 |
7 |
|
8 |
app-accessibility/espeakup: sync live |
9 |
|
10 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
11 |
|
12 |
app-accessibility/espeakup/espeakup-9999.ebuild | 44 +++++++++++-------------- |
13 |
1 file changed, 19 insertions(+), 25 deletions(-) |
14 |
|
15 |
diff --git a/app-accessibility/espeakup/espeakup-9999.ebuild b/app-accessibility/espeakup/espeakup-9999.ebuild |
16 |
index 95a1e0ea06b..a54813ed5d9 100644 |
17 |
--- a/app-accessibility/espeakup/espeakup-9999.ebuild |
18 |
+++ b/app-accessibility/espeakup/espeakup-9999.ebuild |
19 |
@@ -1,53 +1,47 @@ |
20 |
-# Copyright 1999-2017 Gentoo Foundation |
21 |
+# Copyright 1999-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=6 |
25 |
+EAPI=7 |
26 |
|
27 |
if [[ ${PV} == "9999" ]] ; then |
28 |
EGIT_REPO_URI="https://github.com/williamh/espeakup.git" |
29 |
inherit git-r3 |
30 |
else |
31 |
- EGIT_COMMIT=v${PV} |
32 |
- SRC_URI="https://github.com/williamh/espeakup/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
33 |
- KEYWORDS="~amd64 ~x86" |
34 |
- inherit vcs-snapshot |
35 |
+ SRC_URI="https://github.com/linux-speakup/espeakup/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ KEYWORDS="~amd64" |
37 |
fi |
38 |
|
39 |
-inherit linux-info |
40 |
+inherit linux-info meson |
41 |
|
42 |
DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup" |
43 |
HOMEPAGE="https://github.com/williamh/espeakup" |
44 |
|
45 |
LICENSE="GPL-3" |
46 |
SLOT="0" |
47 |
-IUSE="" |
48 |
+IUSE="man systemd" |
49 |
|
50 |
-COMMON_DEPEND="|| ( |
51 |
- app-accessibility/espeak[portaudio] |
52 |
- app-accessibility/espeak[pulseaudio] )" |
53 |
+COMMON_DEPEND="app-accessibility/espeak-ng[sound] |
54 |
+ media-libs/alsa-lib" |
55 |
DEPEND="${COMMON_DEPEND}" |
56 |
RDEPEND="${COMMON_DEPEND}" |
57 |
+BDEPEND="man? ( app-text/ronn )" |
58 |
|
59 |
CONFIG_CHECK="~SPEAKUP ~SPEAKUP_SYNTH_SOFT" |
60 |
-ERROR_SPEAKUP="CONFIG_SPEAKUP is not enabled in this kernel!" |
61 |
-ERROR_SPEAKUP_SYNTH_SOFT="CONFIG_SPEAKUP_SYNTH_SOFT is not enabled in this kernel!" |
62 |
- |
63 |
-pkg_setup() { |
64 |
- if kernel_is -ge 2 6 37; then |
65 |
- check_extra_config |
66 |
- elif ! has_version app-accessibility/speakup; then |
67 |
- ewarn "Cannot find speakup on your system." |
68 |
- ewarn "Please upgrade your kernel to 2.6.37 or later and enable the" |
69 |
- ewarn "CONFIG_SPEAKUP and CONFIG_SPEAKUP_SYNTH_SOFT options" |
70 |
- ewarn "or install app-accessibility/speakup." |
71 |
- fi |
72 |
+ |
73 |
+src_configure() { |
74 |
+ local emesonargs |
75 |
+ emesonargs=( |
76 |
+ $(meson_feature man) |
77 |
+ $(meson_feature systemd) |
78 |
+ ) |
79 |
+ meson_src_configure |
80 |
} |
81 |
|
82 |
src_install() { |
83 |
- emake DESTDIR="${D}" PREFIX=/usr install |
84 |
+ meson_src_install |
85 |
einstalldocs |
86 |
newconfd "${FILESDIR}"/espeakup.confd espeakup |
87 |
- newinitd "${FILESDIR}"/espeakup.rc espeakup |
88 |
+ newinitd "${FILESDIR}"/espeakup.initd espeakup |
89 |
} |
90 |
|
91 |
pkg_postinst() { |