mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
app-accessibility/espeak-ng: initial import
Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
1
app-accessibility/espeak-ng/Manifest
Normal file
1
app-accessibility/espeak-ng/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST espeak-ng-1.50.tgz 21344932 BLAKE2B 02e0070ab7d0fba321e39e920ba60276d0046955eb40c042a3b0faf93967ae3b1ab88308ece32b7a623d92074943884b214aab13589511726823f0a5d11916de SHA512 753de58ceaf1bbbbe5cb19430cc04dd6bcee79080c8908ebe48645d52fdba5b6e7b1e2cab923220488f83a58e20364e93ba021868676fedfa5b8ede010aed443
|
||||
70
app-accessibility/espeak-ng/espeak-ng-1.50.ebuild
Normal file
70
app-accessibility/espeak-ng/espeak-ng-1.50.ebuild
Normal file
@@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Software speech synthesizer for English, and some other languages"
|
||||
HOMEPAGE="https://github.com/espeak-ng/espeak-ng"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tgz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
LICENSE="GPL-3+ turkowski unicode"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc +klatt l10n_ru l10n_zh mbrola +sonic +sound"
|
||||
|
||||
DEPEND="
|
||||
!app-accessibility/espeak
|
||||
mbrola? ( app-accessibility/mbrola )
|
||||
sonic? ( media-libs/sonic )
|
||||
sound? ( media-libs/pcaudiolib )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
sound? ( media-sound/sox )
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? ( app-text/ronn )
|
||||
"
|
||||
|
||||
DOCS=( CHANGELOG.md README.md docs )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# disable failing tests
|
||||
rm tests/{language-pronunciation,translate}.test || die
|
||||
sed -e "/language-pronunciation.check/d" \
|
||||
-e "/translate.check/d" \
|
||||
-i Makefile.am || die
|
||||
|
||||
sed "s/int samplerate;/static int samplerate;/" -i src/espeak-ng.c || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with klatt) \
|
||||
$(use_with l10n_ru extdict-ru) \
|
||||
$(use_with l10n_zh extdict-zh) \
|
||||
$(use_with l10n_zh extdict-zhy) \
|
||||
$(use_with mbrola) \
|
||||
$(use_with sound pcaudiolib) \
|
||||
$(use_with sonic) \
|
||||
--with-async \
|
||||
--without-libfuzzer \
|
||||
--disable-rpath
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" VIMDIR=/usr/share/vimfiles install
|
||||
rm "${ED}"/usr/lib*/libespeak.la || die
|
||||
rm "${ED}"/usr/lib*/libespeak-ng.{a,la} || die
|
||||
}
|
||||
24
app-accessibility/espeak-ng/metadata.xml
Normal file
24
app-accessibility/espeak-ng/metadata.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<upstream>
|
||||
<maintainer>
|
||||
<name>Reece H. Dunn</name>
|
||||
<email>msclrhd@gmail.com</email>
|
||||
</maintainer>
|
||||
<remote-id type="github">espeak-ng/espeak-ng</remote-id>
|
||||
<changelog>https://github.com/espeak-ng/espeak-ng/releases.atom</changelog>
|
||||
</upstream>
|
||||
<maintainer type="person">
|
||||
<email>cyber+gentoo@sysrq.in</email>
|
||||
<name>Anna</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="doc">Builds and installs manpage with app-text/ronn</flag>
|
||||
<flag name="l10n_ru">Builds extended Russian Dictionary file</flag>
|
||||
<flag name="l10n_zh">Builds extended Chinese (Mandarin and Cantonese) Dictionary files</flag>
|
||||
<flag name="klatt">Enables Klatt formant synthesis and implementation</flag>
|
||||
<flag name="mbrola">Adds support for mbrola voices</flag>
|
||||
<flag name="sonic">Enables the sonic library to speed up the audio</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user