app-accessibility/flite - 2.2-r2 (gentoo)

Search

Package Information

Description:
Flite text to speech engine
Homepage:
http://www.festvox.org/flite/ https://github.com/festvox/flite
License:
BSD freetts public-domain regexp-UofT BSD-2

Ebuild Details

Version EAPI Keywords Slot
2.2-r2 8 ~alpha amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86 0
View Raw Ebuild
# Copyright 1999-2025 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 ~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
	"${FILESDIR}"/${PN}-2.2-make-4.4.patch
	"${FILESDIR}"/${PN}-2.2-backport-pr66.patch
	"${FILESDIR}"/${PN}-2.2-no-native-ar.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
}

USE Flags

oss

Dependencies

DEPEND

	pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
	!pulseaudio? ( alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) )

RDEPEND

	pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
	!pulseaudio? ( alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) )

Manifest for 2.2-r2

Type File Size Source URLs
DIST cmu_indic_ben_rm.flitevox 8868578 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_ben_rm.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_ben_rm.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_ben_rm.flitevox
DIST cmu_indic_guj_ad.flitevox 11368818 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_guj_ad.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_guj_ad.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_guj_ad.flitevox
DIST cmu_indic_guj_dp.flitevox 10235186 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_guj_dp.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_guj_dp.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_guj_dp.flitevox
DIST cmu_indic_guj_kt.flitevox 5912668 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_guj_kt.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_guj_kt.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_guj_kt.flitevox
DIST cmu_indic_hin_ab.flitevox 30897320 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_hin_ab.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_hin_ab.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_hin_ab.flitevox
DIST cmu_indic_kan_plv.flitevox 8901763 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_kan_plv.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_kan_plv.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_kan_plv.flitevox
DIST cmu_indic_mar_aup.flitevox 11815465 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_mar_aup.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_mar_aup.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_mar_aup.flitevox
DIST cmu_indic_mar_slp.flitevox 13418271 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_mar_slp.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_mar_slp.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_mar_slp.flitevox
DIST cmu_indic_pan_amp.flitevox 8035698 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_pan_amp.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_pan_amp.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_pan_amp.flitevox
DIST cmu_indic_tam_sdr.flitevox 11361848 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_tam_sdr.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_tam_sdr.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_tam_sdr.flitevox
DIST cmu_indic_tel_kpn.flitevox 13379640 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_tel_kpn.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_tel_kpn.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_tel_kpn.flitevox
DIST cmu_indic_tel_sk.flitevox 13740312 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_tel_sk.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_tel_sk.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_tel_sk.flitevox
DIST cmu_indic_tel_ss.flitevox 22656084 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_indic_tel_ss.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_indic_tel_ss.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_indic_tel_ss.flitevox
DIST cmu_us_aew.flitevox 12640161 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_aew.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_aew.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_aew.flitevox
DIST cmu_us_ahw.flitevox 6949326 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_ahw.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_ahw.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_ahw.flitevox
DIST cmu_us_aup.flitevox 5701990 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_aup.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_aup.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_aup.flitevox
DIST cmu_us_awb.flitevox 11113361 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_awb.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_awb.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_awb.flitevox
DIST cmu_us_axb.flitevox 7260569 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_axb.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_axb.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_axb.flitevox
DIST cmu_us_bdl.flitevox 10283514 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_bdl.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_bdl.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_bdl.flitevox
DIST cmu_us_clb.flitevox 12538083 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_clb.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_clb.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_clb.flitevox
DIST cmu_us_eey.flitevox 6092398 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_eey.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_eey.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_eey.flitevox
DIST cmu_us_fem.flitevox 6193447 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_fem.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_fem.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_fem.flitevox
DIST cmu_us_gka.flitevox 6902785 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_gka.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_gka.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_gka.flitevox
DIST cmu_us_jmk.flitevox 10401617 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_jmk.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_jmk.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_jmk.flitevox
DIST cmu_us_ksp.flitevox 11765452 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_ksp.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_ksp.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_ksp.flitevox
DIST cmu_us_ljm.flitevox 5688553 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_ljm.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_ljm.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_ljm.flitevox
DIST cmu_us_lnh.flitevox 11903497 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_lnh.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_lnh.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_lnh.flitevox
DIST cmu_us_rms.flitevox 12845352 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_rms.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_rms.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_rms.flitevox
DIST cmu_us_rxr.flitevox 7645602 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_rxr.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_rxr.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_rxr.flitevox
DIST cmu_us_slp.flitevox 7280743 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_slp.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_slp.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_slp.flitevox
DIST cmu_us_slt.flitevox 11156032 bytes http://www.festvox.org/flite/packed/flite-2.2-r1/voices/cmu_us_slt.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r2/voices/cmu_us_slt.flitevox
http://www.festvox.org/flite/packed/flite-2.2-r3/voices/cmu_us_slt.flitevox