commit: 622c66906ee6539837cbf8d943996dfc1641e6a8 Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Thu Dec 26 22:47:20 2024 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Thu Dec 26 22:49:56 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=622c6690
app-accessibility/espeak-ng: add 1.52.0 Closes: https://bugs.gentoo.org/854405 Closes: https://bugs.gentoo.org/946945 Signed-off-by: William Hubbs <williamh <AT> gentoo.org> app-accessibility/espeak-ng/Manifest | 1 + .../espeak-ng/espeak-ng-1.52.0.ebuild | 79 ++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/app-accessibility/espeak-ng/Manifest b/app-accessibility/espeak-ng/Manifest index 174291e7849e..2ad964c00ade 100644 --- a/app-accessibility/espeak-ng/Manifest +++ b/app-accessibility/espeak-ng/Manifest @@ -1 +1,2 @@ DIST espeak-ng-1.51.tar.gz 14260788 BLAKE2B 230e8860247bdd44a26ba7281fadb7486e7fff90de229c71fb883693badfc141d5ad883769d6cead150f43560a5c47152cada4fcb5a28c0b0384dacaad2c9d09 SHA512 6c29275706d21de2d5fa393702d2f173fc05d2ce4e2f46f3bf9a2742b0a8f294177663df0d079188e31cc2541f2c21a64e09e8afffe95befab667a4d00429fd2 +DIST espeak-ng-1.52.0.tar.gz 17739803 BLAKE2B ee522a44e0653d5154eefdb1533019d3e78e5af93a08ff97f64680e00f4ddeaa499f0214c82b2d43305e76cfc181011b0224f16b7ebdfcc1523496ef23af00d6 SHA512 28793503f2be00505c3fe1dada8197a4e2d3af0d143e31ef883130fe2685d048ae9dee8efab637cdbe972461d95e210d2277b8e8fed4ae580d0cca8b505b0662 diff --git a/app-accessibility/espeak-ng/espeak-ng-1.52.0.ebuild b/app-accessibility/espeak-ng/espeak-ng-1.52.0.ebuild new file mode 100644 index 000000000000..fc612b7e113c --- /dev/null +++ b/app-accessibility/espeak-ng/espeak-ng-1.52.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Software speech synthesizer for English, and some other languages" +HOMEPAGE="https://github.com/espeak-ng/espeak-ng" + +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://github.com/espeak-ng/espeak-ng.git" + inherit git-r3 +else + SRC_URI="https://github.com/espeak-ng/espeak-ng/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" +fi + +LICENSE="GPL-3+ unicode" +SLOT="0" +IUSE="+async +klatt l10n_ru l10n_zh man mbrola +sound" + +DEPEND=" + mbrola? ( app-accessibility/mbrola ) + sound? ( media-libs/pcaudiolib ) +" +RDEPEND="${DEPEND} + !app-accessibility/espeak + sound? ( media-sound/sox ) +" +BDEPEND=" + virtual/pkgconfig + man? ( app-text/ronn-ng ) +" + +DOCS=( CHANGELOG.md README.md docs ) + +src_prepare() { + default + + # disable failing tests + rm tests/{language-pronunciation,translate}.test || die + sed -i \ + -e "/language-pronunciation.check/d" \ + -e "/translate.check/d" \ + Makefile.am || die + + eautoreconf +} + +src_configure() { + local econf_args + + # https://bugs.gentoo.org/836646 + export PULSE_SERVER="" + + econf_args=( + $(use_with async) + $(use_with klatt) + $(use_with l10n_ru extdict-ru) + $(use_with l10n_zh extdict-cmn) + $(use_with l10n_zh extdict-yue) + $(use_with mbrola) + $(use_with sound pcaudiolib) + --without-libfuzzer + --without-sonic + --disable-rpath + ) + econf "${econf_args[@]}" +} + +src_test() { + emake check +} + +src_install() { + emake DESTDIR="${D}" VIMDIR=/usr/share/vim/vimfiles install + find "${ED}" -name '*.la' -delete || die +}
