Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-accessibility/espeakup/, app-accessibility/espeakup/files/
Date: Thu, 01 Jul 2021 21:23:37
Message-Id: 1625174586.72f9fa47d15b348dbb73c1f44dbad2107cd5062a.williamh@gentoo
1 commit: 72f9fa47d15b348dbb73c1f44dbad2107cd5062a
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 1 21:19:01 2021 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 1 21:23:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72f9fa47
7
8 app-accessibility/espeakup: 0.90 bump
9
10 This version moves to espeak-ng instead of espeak.
11
12 Package-Manager: Portage-3.0.20, Repoman-3.0.2
13 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
14
15 app-accessibility/espeakup/Manifest | 1 +
16 app-accessibility/espeakup/espeakup-0.90.ebuild | 58 +++++++++++++++++++++++++
17 app-accessibility/espeakup/files/espeakup.initd | 18 ++++++++
18 3 files changed, 77 insertions(+)
19
20 diff --git a/app-accessibility/espeakup/Manifest b/app-accessibility/espeakup/Manifest
21 index f0ff5a95917..63475c422df 100644
22 --- a/app-accessibility/espeakup/Manifest
23 +++ b/app-accessibility/espeakup/Manifest
24 @@ -1 +1,2 @@
25 DIST espeakup-0.80.tar.gz 39626 BLAKE2B f36d9776b954e73fd2bc33c7ba97dd323184480549b667ac2afc4dc40a8b98089b8ced16e8b1cb33e6b4c586df27a8d6f782236ef8770bc98a530665e257edcf SHA512 1b7e2bd46c3c13a5305746d2d2810ec94a8660f561e4f679ee4779be1b22178f8ac7de42d626d649710509f7b087b9a2f94608bde203d1bcd6d353229ed9ff83
26 +DIST espeakup-0.90.tar.gz 25170 BLAKE2B f91a70bad0d985d313852b9e5f72dea4330ab23050ca6904ae5895d513088031f34d878cd64d97dcf2cf02dddc3e9fdabd0826cac98634829019ed3267e27bd8 SHA512 0731835a04063c5eac8ed0ed37cd92cc5d2dd1c58cbd94e158b7dfbb7bc0e2f84a6484fffd9009bf2920652a36fb737044b2e1fb67fb1679ee7150855bc9a15e
27
28 diff --git a/app-accessibility/espeakup/espeakup-0.90.ebuild b/app-accessibility/espeakup/espeakup-0.90.ebuild
29 new file mode 100644
30 index 00000000000..fac584f9372
31 --- /dev/null
32 +++ b/app-accessibility/espeakup/espeakup-0.90.ebuild
33 @@ -0,0 +1,58 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +if [[ ${PV} == "9999" ]] ; then
40 + EGIT_REPO_URI="https://github.com/williamh/espeakup.git"
41 + inherit git-r3
42 +else
43 + SRC_URI="https://github.com/linux-speakup/espeakup/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 + KEYWORDS="~amd64"
45 +fi
46 +
47 +inherit linux-info meson
48 +
49 +DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup"
50 +HOMEPAGE="https://github.com/williamh/espeakup"
51 +
52 +LICENSE="GPL-3"
53 +SLOT="0"
54 +IUSE="man systemd"
55 +
56 +COMMON_DEPEND="app-accessibility/espeak-ng[sound]
57 + media-libs/alsa-lib"
58 +DEPEND="${COMMON_DEPEND}"
59 +RDEPEND="${COMMON_DEPEND}"
60 +BDEPEND="man? ( app-text/ronn )"
61 +
62 +CONFIG_CHECK="~SPEAKUP ~SPEAKUP_SYNTH_SOFT"
63 +ERROR_SPEAKUP="CONFIG_SPEAKUP is not enabled in this kernel!"
64 +ERROR_SPEAKUP_SYNTH_SOFT="CONFIG_SPEAKUP_SYNTH_SOFT is not enabled in this kernel!"
65 +
66 +src_configure() {
67 + local emesonargs
68 + emesonargs=(
69 + $(meson_feature man)
70 + $(meson_feature systemd)
71 + )
72 + meson_src_configure
73 +}
74 +
75 +src_install() {
76 + meson_src_install
77 + einstalldocs
78 + newconfd "${FILESDIR}"/espeakup.confd espeakup
79 + newinitd "${FILESDIR}"/espeakup.initd espeakup
80 +}
81 +
82 +pkg_postinst() {
83 + elog "To get espeakup to start automatically, it is currently recommended"
84 + elog "that you add it to the default run level, by giving the following"
85 + elog "command as root."
86 + elog
87 + elog "rc-update add espeakup default"
88 + elog
89 + elog "You can also set a default voice now for espeakup."
90 + elog "See /etc/conf.d/espeakup for how to do this."
91 +}
92
93 diff --git a/app-accessibility/espeakup/files/espeakup.initd b/app-accessibility/espeakup/files/espeakup.initd
94 new file mode 100644
95 index 00000000000..6ef0a339d1c
96 --- /dev/null
97 +++ b/app-accessibility/espeakup/files/espeakup.initd
98 @@ -0,0 +1,18 @@
99 +#!/sbin/openrc-run
100 +# Copyright 1999-2021 Gentoo Authors
101 +# Distributed under the terms of the GNU General Public License v2
102 +
103 +command=/usr/bin/espeakup
104 +command_args="${espeakup_opts:-${ESPEAKUP_OPTS}}"
105 +pidfile=/run/espeakup.pid
106 +
107 +depend() {
108 + after modules
109 + use alsasound pulseaudio
110 +}
111 +
112 +start_pre() {
113 + [ -f /sys/accessibility/speakup/synth ] &&
114 + echo soft > /sys/accessibility/speakup/synth
115 + return 0
116 +}