Gentoo Archives: gentoo-commits

From: "罗百科" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-accessibility/flite/
Date: Sun, 28 Feb 2021 13:58:45
Message-Id: 1614520719.0dea44db437f690f38e62bed045ec7905375ee06.patrick@gentoo
1 commit: 0dea44db437f690f38e62bed045ec7905375ee06
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 13:58:23 2021 +0000
4 Commit: 罗百科 <patrick <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 13:58:39 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dea44db
7
8 app-accessibility/flite: Bump
9
10 Package-Manager: Portage-3.0.16, Repoman-3.0.2
11 Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>
12
13 app-accessibility/flite/Manifest | 1 +
14 app-accessibility/flite/flite-2.2.ebuild | 124 +++++++++++++++++++++++++++++++
15 2 files changed, 125 insertions(+)
16
17 diff --git a/app-accessibility/flite/Manifest b/app-accessibility/flite/Manifest
18 index afec3bc9b09..335587d8759 100644
19 --- a/app-accessibility/flite/Manifest
20 +++ b/app-accessibility/flite/Manifest
21 @@ -31,3 +31,4 @@ DIST cmu_us_slp.flitevox 7280743 BLAKE2B 99d5270f55374cad466de01b1764d1ffd072cd7
22 DIST cmu_us_slt.flitevox 11156032 BLAKE2B 909d4d2adf94d5b40aee4b85aefaf1e8383718f491f8cc9639e0a91baccdad42b1b8a91443e4faa51ad9e1c0e25b8474f9b97c5a8d792102f87815bcdabaf230 SHA512 a17994d46b910434803e185820ad27a18caa1195b61f64cdbba1d6992c1bd65b3425d9e4ba40c279bdb6bce53c6b3529496c28c631c1684808f6a83f10846c41
23 DIST flite-1.4-release.tar.bz2 15163897 BLAKE2B 34b721ecd98a5699c352346528374df1c1e8395b815ea9026dbc6e4de7584bd93efb83d64fe1ec32bef03311c19920b18b198e2543dd2f010b0a3ca229337ad0 SHA512 eec1022077fb7a47db3848ae6944509e18a6c86a25aa24f921b8b6c2af708fc9811b287e76d96cf64fc68f8e1d0a43b7e878659f15bfcf76957eddd75e599112
24 DIST flite-2.1-release.tar.bz2 14816327 BLAKE2B a23db51594ec94131112e0f007e1a9e4ee7170eaeda37ecc461c08a0e4defa0bfcde87ca01df765f0bc7b85cc6b3d4ec355830eae7dcb47d243d08b04772217b SHA512 e9ef9ca4b6920178634d94bbe6e21a8b0ec471b010b07e6cc961ed2d120acb944c8e1d268fe26188f7dfe43fb7bd4bdff7fa53b2d2f12029d37e08d0316620d2
25 +DIST flite-2.2.tar.gz 20233792 BLAKE2B c395c34d2739da523c4794da3a795f2febb7e9a26336c7688215f648c4aee03855c8ac7c9d3817efe3e3a41380a5e325aa8236d1b64af21f8100da3dbba2db23 SHA512 1ca2f4145651490ef8405fdb830a3b42e885020a7603d965f6a5581b01bed41047d396b38c2ceab138fc0b28d28078db17acd2b5a84c6444cb99d65c581afa72
26
27 diff --git a/app-accessibility/flite/flite-2.2.ebuild b/app-accessibility/flite/flite-2.2.ebuild
28 new file mode 100644
29 index 00000000000..ccb52bbc91c
30 --- /dev/null
31 +++ b/app-accessibility/flite/flite-2.2.ebuild
32 @@ -0,0 +1,124 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +inherit autotools multilib-minimal
38 +
39 +DESCRIPTION="Flite text to speech engine"
40 +HOMEPAGE="http://www.festvox.org/flite/ https://github.com/festvox/flite"
41 +SRC_URI="https://github.com/festvox/flite/archive/v${PV}.tar.gz -> ${P}.tar.gz
42 + voices? (
43 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_ben_rm.flitevox
44 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_guj_ad.flitevox
45 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_guj_dp.flitevox
46 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_guj_kt.flitevox
47 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_hin_ab.flitevox
48 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_kan_plv.flitevox
49 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_mar_aup.flitevox
50 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_mar_slp.flitevox
51 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_pan_amp.flitevox
52 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_tam_sdr.flitevox
53 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_tel_kpn.flitevox
54 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_tel_sk.flitevox
55 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_tel_ss.flitevox
56 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_aew.flitevox
57 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_ahw.flitevox
58 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_aup.flitevox
59 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_awb.flitevox
60 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_axb.flitevox
61 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_bdl.flitevox
62 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_clb.flitevox
63 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_eey.flitevox
64 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_fem.flitevox
65 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_gka.flitevox
66 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_jmk.flitevox
67 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_ksp.flitevox
68 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_ljm.flitevox
69 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_lnh.flitevox
70 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_rms.flitevox
71 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_rxr.flitevox
72 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_slp.flitevox
73 + http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_slt.flitevox
74 + )"
75 +
76 +LICENSE="BSD freetts public-domain regexp-UofT BSD-2"
77 +SLOT="0"
78 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
79 +IUSE="alsa oss pulseaudio voices"
80 +
81 +DEPEND="
82 + pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
83 + !pulseaudio? ( alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) )
84 +"
85 +RDEPEND="${DEPEND}"
86 +
87 +PATCHES=(
88 + "${FILESDIR}"/${PN}-1.4-audio-interface.patch
89 +)
90 +
91 +get_audio() {
92 + if use pulseaudio; then
93 + echo pulseaudio
94 + elif use alsa; then
95 + echo alsa
96 + elif use oss; then
97 + echo oss
98 + else
99 + echo none
100 + fi
101 +}
102 +
103 +src_unpack() {
104 + for file in ${A}; do
105 + case "${file}" in
106 + *.flitevox)
107 + cp -av "${DISTDIR}/${file}" "${WORKDIR}/" || die "Unable to copy ${file}"
108 + ;;
109 + *)
110 + unpack "${file}"
111 + ;;
112 + esac
113 + done
114 +}
115 +
116 +src_prepare() {
117 + default
118 + sed -i main/Makefile \
119 + -e '/-rpath/s|$(LIBDIR)|$(INSTALLLIBDIR)|g' \
120 + || die
121 + mv configure.{in,ac} || die
122 + eautoreconf
123 +
124 + # custom makefiles
125 + multilib_copy_sources
126 +}
127 +
128 +multilib_src_configure() {
129 + local myconf=(
130 + --enable-shared
131 + --with-audio=$(get_audio)
132 + )
133 + econf "${myconf[@]}"
134 +}
135 +
136 +multilib_src_compile() {
137 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
138 +}
139 +
140 +multilib_src_install_all() {
141 + dodoc ACKNOWLEDGEMENTS README.md
142 +
143 + rm -rf "${D}"/usr/lib*/*.a
144 +
145 + if use voices; then
146 + insinto /usr/share/flite
147 + doins "${WORKDIR}"/*.flitevox
148 + fi
149 +}
150 +
151 +pkg_postinst() {
152 + if [[ "$(get_audio)" = "none" ]]; then
153 + ewarn "flite is built without audio support. Enable the"
154 + ewarn "alsa, oss, or pulseaudio USE flags for audio support."
155 + fi
156 +}