Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-accessibility/speech-dispatcher/
Date: Thu, 01 Sep 2022 02:57:09
Message-Id: 1662001011.99eb47fad4a8da37ae719b47d290c2e6703c9fcb.sam@gentoo
1 commit: 99eb47fad4a8da37ae719b47d290c2e6703c9fcb
2 Author: orbea <orbea <AT> riseup <DOT> net>
3 AuthorDate: Thu Sep 1 02:45:50 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 02:56:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99eb47fa
7
8 app-accessibility/speech-dispatcher: Add 0.11.2
9
10 Upstream added a --disable-ltdl configure argument which avoids the
11 dev-libs/libltdl dependency and the related build issue with slibtool.
12
13 Closes: https://bugs.gentoo.org/778434
14 Closes: https://github.com/gentoo/gentoo/pull/27100
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 app-accessibility/speech-dispatcher/Manifest | 1 +
18 .../speech-dispatcher-0.11.2.ebuild | 122 +++++++++++++++++++++
19 2 files changed, 123 insertions(+)
20
21 diff --git a/app-accessibility/speech-dispatcher/Manifest b/app-accessibility/speech-dispatcher/Manifest
22 index 27a152842bb7..158a24b2f38f 100644
23 --- a/app-accessibility/speech-dispatcher/Manifest
24 +++ b/app-accessibility/speech-dispatcher/Manifest
25 @@ -1,2 +1,3 @@
26 DIST speech-dispatcher-0.11.1.tar.gz 6548489 BLAKE2B fd4e05c51b80991bdd5d27ecf967946cfde98f978462e909f193c14eab51f3cae047d281c3e2896b3ddeeb4e045ceb72f51e5dbfaf3f9ea8a818f8146cb5e625 SHA512 859911d7db5660423bc7911eacbe8e7a9c3104df97478cbbca48ca5fd6ec018113172d49bc66781680433c77b4d2af43578c9b0f11409e2ba7ac618deb31d7cf
27 +DIST speech-dispatcher-0.11.2.tar.gz 7147526 BLAKE2B 6b11949736275d900e5e1d3909fab51fc04fbb45baf470a4c98aed19f61b7adb8cedf6b11f1a1aa69d9625383627beab4122c74ec78d9c07a5d0ddf4646669d6 SHA512 038ecaa5b9d56e3f915ec49fe7768cb4eebe1c8be79b95635f09fb3f6067e4c0ade13d2dd355e0b326579dcdf509dd180889b27282410b6bb252a2f642f028d4
28 DIST speech-dispatcher-0.9.1.tar.gz 1662222 BLAKE2B 03c3d79a9cbbe7e549f638992fb276ab2270a45a057708721666257699479b3feb81daddf26d8032ba3f7b9ab6b836c7f582ee22a532ff018c99820af3864d87 SHA512 35adb353d22b8dff8884cb20f3836f96f4f74b272bbd442d522a10a3d3b91a0da6705e6c216764f295208b5446c2077da620de2a81cafe5a0c4dd826e33753c2
29
30 diff --git a/app-accessibility/speech-dispatcher/speech-dispatcher-0.11.2.ebuild b/app-accessibility/speech-dispatcher/speech-dispatcher-0.11.2.ebuild
31 new file mode 100644
32 index 000000000000..6509abcd7d1b
33 --- /dev/null
34 +++ b/app-accessibility/speech-dispatcher/speech-dispatcher-0.11.2.ebuild
35 @@ -0,0 +1,122 @@
36 +# Copyright 1999-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=8
40 +
41 +PYTHON_COMPAT=( python3_{8..10} )
42 +inherit python-r1 systemd
43 +
44 +DESCRIPTION="Speech synthesis interface"
45 +HOMEPAGE="https://freebsoft.org/speechd"
46 +SRC_URI="https://github.com/brailcom/speechd/releases/download/${PV}/${P}.tar.gz"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
51 +IUSE="alsa ao espeak +espeak-ng flite nas pulseaudio python"
52 +
53 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
54 +
55 +DEPEND="python? ( ${PYTHON_DEPS} )
56 + >=dev-libs/dotconf-1.3
57 + >=dev-libs/glib-2.36:2
58 + >=media-libs/libsndfile-1.0.2
59 + alsa? ( media-libs/alsa-lib )
60 + ao? ( media-libs/libao )
61 + espeak? ( app-accessibility/espeak )
62 + espeak-ng? ( app-accessibility/espeak-ng )
63 + flite? ( app-accessibility/flite )
64 + nas? ( media-libs/nas )
65 + pulseaudio? ( media-sound/pulseaudio )"
66 +RDEPEND="${DEPEND}
67 + python? ( dev-python/pyxdg[${PYTHON_USEDEP}] )"
68 +BDEPEND="
69 + sys-apps/help2man
70 + >=sys-devel/gettext-0.19.8
71 + virtual/pkgconfig"
72 +
73 +PATCHES=(
74 + "${FILESDIR}"/${PN}-0.11.1-include-pthread_h.patch
75 +)
76 +
77 +src_configure() {
78 + # bug 573732
79 + export GIT_CEILING_DIRECTORIES="${WORKDIR}"
80 +
81 + local myeconfargs=(
82 + --disable-ltdl
83 + --disable-python
84 + --disable-static
85 + --with-baratinoo=no
86 + --with-ibmtts=no
87 + --with-kali=no
88 + --with-pico=no
89 + --with-voxin=no
90 + $(use_with alsa)
91 + $(use_with ao libao)
92 + $(use_with espeak)
93 + $(use_with espeak-ng)
94 + $(use_with flite)
95 + $(use_with nas)
96 + $(use_with pulseaudio pulse)
97 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
98 + )
99 + econf "${myeconfargs[@]}"
100 +}
101 +
102 +src_compile() {
103 + use python && python_copy_sources
104 +
105 + emake
106 +
107 + if use python; then
108 + building() {
109 + cd src/api/python || die
110 + emake \
111 + pyexecdir="$(python_get_sitedir)" \
112 + pythondir="$(python_get_sitedir)"
113 + }
114 + python_foreach_impl run_in_build_dir building
115 + fi
116 +}
117 +
118 +src_install() {
119 + default
120 +
121 + if use python; then
122 + installation() {
123 + cd src/api/python || die
124 + emake \
125 + DESTDIR="${D}" \
126 + pyexecdir="$(python_get_sitedir)" \
127 + pythondir="$(python_get_sitedir)" \
128 + install
129 + }
130 + python_foreach_impl run_in_build_dir installation
131 + python_replicate_script "${ED}"/usr/bin/spd-conf
132 + python_foreach_impl python_optimize
133 + fi
134 +
135 + find "${D}" -name '*.la' -type f -delete || die
136 +}
137 +
138 +pkg_postinst() {
139 + local editconfig="n"
140 + if ! use espeak-ng; then
141 + ewarn "You have disabled espeak-ng, which is speech-dispatcher's"
142 + ewarn "default speech synthesizer."
143 + ewarn
144 + editconfig="y"
145 + fi
146 + if ! use pulseaudio; then
147 + ewarn "You have disabled pulseaudio support."
148 + ewarn "pulseaudio is speech-dispatcher's default audio subsystem."
149 + ewarn
150 + editconfig="y"
151 + fi
152 + if [[ "${editconfig}" == "y" ]]; then
153 + ewarn "You must edit ${EROOT}/etc/speech-dispatcher/speechd.conf"
154 + ewarn "and make sure the settings there match your system."
155 + ewarn
156 + fi
157 +}