app-accessibility/espeak-ng: new package
Package-Manager: Portage-2.3.76, Repoman-2.3.16
This commit is contained in:
parent
4312db02b9
commit
ac3fe0b0b0
3
app-accessibility/espeak-ng/Manifest
Normal file
3
app-accessibility/espeak-ng/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
DIST espeak-ng-1.49.2.tar.gz 11022938 BLAKE2B c5d352547adafd3f8b8a56b36fe6f3471b4d0f6f7fcec32ebfb5fe08caa6ae99ecf12bf8b1e244286111f5884eeb6c9f1e907cc5d32dd419d133f5b1e77fb1b4 SHA512 86096bf99b3aa16eb7b00cd1563f4af30e10f65f8014dcb05b255736a98dab4984e6cc4afc74792baed4a4d2971efdc5ced901867daa48f1204897dbc8e3e8c3
|
||||
EBUILD espeak-ng-1.49.2.ebuild 2178 BLAKE2B 5a26c8f410035013c3bc24970297068b4578265335a701cbd274ddd77e5bf41a24fe608f0cb549bbd511231c923ed6bd9edce5dffe9c8cbaa82a8c78a04bbba0 SHA512 e63186828f78805245ebb3e4bca6e57aefb38ad0b0e20a11dd0e8d54dc33bcf4cc7b94a58cbac1d619ed02500ae890fbc05a52b359fd816c8da6da523d1fb6e9
|
||||
MISC metadata.xml 671 BLAKE2B 83517fb9a8754ee9e4500ceb7a5aa467a98a9b925b7023cbde9fd3c7eabb437f4e6ee479547fe60da849e9a5734786c04f37bcecf7fcad9cb835350c3366ef9b SHA512 8f41170185353d2740ba032c3454fbfd51ee1b3493813379e51488b157db53fe929bccd1c5c88ba14f6b2f28ed9737a1add509a3e1dd3c21730ed8b1f4f414f2
|
104
app-accessibility/espeak-ng/espeak-ng-1.49.2.ebuild
Normal file
104
app-accessibility/espeak-ng/espeak-ng-1.49.2.ebuild
Normal file
@ -0,0 +1,104 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs autotools
|
||||
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
DESCRIPTION="Speech synthesizer for English and other languages"
|
||||
HOMEPAGE="https://github.com/espeak-ng/espeak-ng"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64"
|
||||
IUSE="+async doc +klatt +mbrola +portaudio pulseaudio"
|
||||
|
||||
COMMON_DEPEND="portaudio? (
|
||||
media-libs/pcaudiolib
|
||||
>=media-libs/portaudio-19_pre20071207
|
||||
)
|
||||
pulseaudio? (
|
||||
media-libs/pcaudiolib[pulseaudio]
|
||||
media-sound/pulseaudio
|
||||
)
|
||||
"
|
||||
|
||||
BDEPEND="${COMMON_DEPEND}
|
||||
app-arch/unzip
|
||||
doc? (
|
||||
app-text/ronn
|
||||
dev-ruby/kramdown
|
||||
)"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
media-sound/sox"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local my_conf=(
|
||||
$(use_with async)
|
||||
$(use_with klatt)
|
||||
$(use_with mbrola)
|
||||
$(use_with portaudio)
|
||||
$(use_with pulseaudio)
|
||||
)
|
||||
econf "${my_conf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
PREFIX="${EPREFIX}/usr" \
|
||||
CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
CXX="$(tc-getCXX)" \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
AR="$(tc-getAR)" \
|
||||
src/espeak-ng src/speak-ng
|
||||
|
||||
# README indicates "building voice data does not work with -jN option"
|
||||
emake \
|
||||
PREFIX="${EPREFIX}/usr" \
|
||||
CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
CXX="$(tc-getCXX)" \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
AR="$(tc-getAR)" \
|
||||
-j1 \
|
||||
all
|
||||
|
||||
use doc && emake docs
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
PREFIX="${EPREFIX}/usr" \
|
||||
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
||||
DESTDIR="${D}" \
|
||||
install
|
||||
|
||||
insinto /usr/share/espeak-data
|
||||
doins -r dictsource
|
||||
|
||||
dodoc CHANGELOG.md README.md
|
||||
use doc && HTML_DOCS="docs/*.html" einstalldocs
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
local voicedir="${ROOT}/usr/share/${PN}-data/voices/en"
|
||||
if [ -d "${voicedir}" ]; then
|
||||
rm -rf "${voicedir}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use portaudio && ! use pulseaudio && ! use sada; then
|
||||
ewarn "Since portaudio and pulseaudio are not in your use flags,"
|
||||
ewarn "espeak will only be able to create wav files."
|
||||
ewarn "If this is not what you want, please reemerge ${CATEGORY}/${PN}"
|
||||
ewarn "with either portaudio or pulseaudio USE flag enabled."
|
||||
fi
|
||||
}
|
26
app-accessibility/espeak-ng/metadata.xml
Normal file
26
app-accessibility/espeak-ng/metadata.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>nemunaire@nemunai.re</email>
|
||||
<name>Pierre-Olivier Mercier</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="async">
|
||||
Enable asynchronous commands.
|
||||
</flag>
|
||||
<flag name="klatt">
|
||||
Enable Klatt formant synthesis.
|
||||
</flag>
|
||||
<flag name="mbrola">
|
||||
Enable MBROLA voice support.
|
||||
</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">espeak-ng/espeak-ng</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user