From 0dea44db437f690f38e62bed045ec7905375ee06 Mon Sep 17 00:00:00 2001 From: Patrick Lauer Date: Sun, 28 Feb 2021 13:58:23 +0000 Subject: app-accessibility/flite: Bump Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Patrick Lauer --- app-accessibility/flite/Manifest | 1 + app-accessibility/flite/flite-2.2.ebuild | 124 +++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 app-accessibility/flite/flite-2.2.ebuild (limited to 'app-accessibility/flite') diff --git a/app-accessibility/flite/Manifest b/app-accessibility/flite/Manifest index afec3bc9b099..335587d87590 100644 --- a/app-accessibility/flite/Manifest +++ b/app-accessibility/flite/Manifest @@ -31,3 +31,4 @@ DIST cmu_us_slp.flitevox 7280743 BLAKE2B 99d5270f55374cad466de01b1764d1ffd072cd7 DIST cmu_us_slt.flitevox 11156032 BLAKE2B 909d4d2adf94d5b40aee4b85aefaf1e8383718f491f8cc9639e0a91baccdad42b1b8a91443e4faa51ad9e1c0e25b8474f9b97c5a8d792102f87815bcdabaf230 SHA512 a17994d46b910434803e185820ad27a18caa1195b61f64cdbba1d6992c1bd65b3425d9e4ba40c279bdb6bce53c6b3529496c28c631c1684808f6a83f10846c41 DIST flite-1.4-release.tar.bz2 15163897 BLAKE2B 34b721ecd98a5699c352346528374df1c1e8395b815ea9026dbc6e4de7584bd93efb83d64fe1ec32bef03311c19920b18b198e2543dd2f010b0a3ca229337ad0 SHA512 eec1022077fb7a47db3848ae6944509e18a6c86a25aa24f921b8b6c2af708fc9811b287e76d96cf64fc68f8e1d0a43b7e878659f15bfcf76957eddd75e599112 DIST flite-2.1-release.tar.bz2 14816327 BLAKE2B a23db51594ec94131112e0f007e1a9e4ee7170eaeda37ecc461c08a0e4defa0bfcde87ca01df765f0bc7b85cc6b3d4ec355830eae7dcb47d243d08b04772217b SHA512 e9ef9ca4b6920178634d94bbe6e21a8b0ec471b010b07e6cc961ed2d120acb944c8e1d268fe26188f7dfe43fb7bd4bdff7fa53b2d2f12029d37e08d0316620d2 +DIST flite-2.2.tar.gz 20233792 BLAKE2B c395c34d2739da523c4794da3a795f2febb7e9a26336c7688215f648c4aee03855c8ac7c9d3817efe3e3a41380a5e325aa8236d1b64af21f8100da3dbba2db23 SHA512 1ca2f4145651490ef8405fdb830a3b42e885020a7603d965f6a5581b01bed41047d396b38c2ceab138fc0b28d28078db17acd2b5a84c6444cb99d65c581afa72 diff --git a/app-accessibility/flite/flite-2.2.ebuild b/app-accessibility/flite/flite-2.2.ebuild new file mode 100644 index 000000000000..ccb52bbc91ce --- /dev/null +++ b/app-accessibility/flite/flite-2.2.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools multilib-minimal + +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 ~ppc ~ppc64 ~sparc ~x86" +IUSE="alsa oss pulseaudio voices" + +DEPEND=" + pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] ) + !pulseaudio? ( alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) ) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.4-audio-interface.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 +} + +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 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 +} -- cgit v1.2.3-65-gdbad