From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-accessibility/flite/
Date: Wed, 31 May 2023 18:24:10 +0000 (UTC) [thread overview]
Message-ID: <1685557409.bda3284a78f699b7b0e67e6774f520bd9206e629.asturm@gentoo> (raw)
commit: bda3284a78f699b7b0e67e6774f520bd9206e629
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon May 29 14:28:42 2023 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed May 31 18:23:29 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bda3284a
app-accessibility/flite: EAPI 8 bump, switch to media-libs/libpulse
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
app-accessibility/flite/flite-2.2-r1.ebuild | 136 ++++++++++++++++++++++++++++
1 file changed, 136 insertions(+)
diff --git a/app-accessibility/flite/flite-2.2-r1.ebuild b/app-accessibility/flite/flite-2.2-r1.ebuild
new file mode 100644
index 000000000000..5c91935f7dc3
--- /dev/null
+++ b/app-accessibility/flite/flite-2.2-r1.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools multilib-minimal toolchain-funcs
+
+DESCRIPTION="Flite text to speech engine"
+HOMEPAGE="http://www.festvox.org/flite/ https://github.com/festvox/flite"
+SRC_URI="https://github.com/festvox/flite/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ voices? (
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_ben_rm.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_guj_ad.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_guj_dp.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_guj_kt.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_hin_ab.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_kan_plv.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_mar_aup.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_mar_slp.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_pan_amp.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_tam_sdr.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_tel_kpn.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_tel_sk.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_indic_tel_ss.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_aew.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_ahw.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_aup.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_awb.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_axb.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_bdl.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_clb.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_eey.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_fem.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_gka.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_jmk.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_ksp.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_ljm.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_lnh.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_rms.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_rxr.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_slp.flitevox
+ http://www.festvox.org/${PN}/packed/${P}/voices/cmu_us_slt.flitevox
+ )"
+
+LICENSE="BSD freetts public-domain regexp-UofT BSD-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86"
+IUSE="alsa oss pulseaudio test voices"
+REQUIRED_USE="test? ( alsa )"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
+ !pulseaudio? ( alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.4-audio-interface.patch
+ "${FILESDIR}"/${PN}-2.2-backport-pr30.patch
+)
+
+get_audio() {
+ if use pulseaudio; then
+ echo pulseaudio
+ elif use alsa; then
+ echo alsa
+ elif use oss; then
+ echo oss
+ else
+ echo none
+ fi
+}
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use test && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use test && tc-check-openmp
+}
+
+src_unpack() {
+ for file in ${A}; do
+ case "${file}" in
+ *.flitevox)
+ cp -av "${DISTDIR}/${file}" "${WORKDIR}/" || die "Unable to copy ${file}"
+ ;;
+ *)
+ unpack "${file}"
+ ;;
+ esac
+ done
+}
+
+src_prepare() {
+ default
+ sed -i main/Makefile \
+ -e '/-rpath/s|$(LIBDIR)|$(INSTALLLIBDIR)|g' \
+ || die
+ mv configure.{in,ac} || die
+ eautoreconf
+
+ # custom makefiles
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ local myconf=(
+ --enable-shared
+ --with-audio=$(get_audio)
+ )
+ econf "${myconf[@]}"
+}
+
+multilib_src_compile() {
+ emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+multilib_src_install_all() {
+ dodoc ACKNOWLEDGEMENTS README.md
+
+ rm -rf "${D}"/usr/lib*/*.a
+
+ if use voices; then
+ insinto /usr/share/flite
+ doins "${WORKDIR}"/*.flitevox
+ fi
+}
+
+pkg_postinst() {
+ if [[ "$(get_audio)" = "none" ]]; then
+ ewarn "flite is built without audio support. Enable the"
+ ewarn "alsa, oss, or pulseaudio USE flags for audio support."
+ fi
+}
next reply other threads:[~2023-05-31 18:24 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-31 18:24 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-09-18 21:51 [gentoo-commits] repo/gentoo:master commit in: app-accessibility/flite/ Sam James
2025-06-22 12:03 Sam James
2025-05-17 17:41 Arthur Zamarin
2025-05-11 19:10 Sam James
2025-05-11 19:10 Sam James
2025-05-11 19:10 Sam James
2025-05-11 19:10 Sam James
2025-04-10 14:17 Sam James
2024-06-07 16:19 Arthur Zamarin
2024-06-04 18:23 Arthur Zamarin
2024-06-04 18:23 Arthur Zamarin
2024-06-04 18:23 Arthur Zamarin
2023-05-31 18:24 Andreas Sturmlechner
2023-04-16 3:39 Sam James
2023-03-22 5:30 Sam James
2022-11-25 14:42 罗百科
2022-05-26 5:30 WANG Xuerui
2021-08-10 8:58 Yixun Lan
2021-04-22 12:23 Sam James
2021-04-22 12:18 Sam James
2021-04-22 12:18 Sam James
2021-04-22 12:13 Sam James
2021-04-22 12:13 Sam James
2021-04-22 12:11 Sam James
2021-04-22 12:08 Sam James
2021-02-28 13:58 罗百科
2020-05-03 21:55 Sergei Trofimovich
2020-02-20 2:55 Matt Turner
2017-06-18 11:56 Alexis Ballier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1685557409.bda3284a78f699b7b0e67e6774f520bd9206e629.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox