aboutsummaryrefslogtreecommitdiff
blob: 5d07fcc4f9ad349d1fe1d8dc2aa80ef10021c670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

if [[ ${PV} == *9999 ]] ; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/MycroftAI/mimic1.git"
else
	SRC_URI="https://github.com/MycroftAI/mimic1/archive/${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
fi

DESCRIPTION="Mycroft's TTS engine, based on CMU's Flite (Festival Lite)"
HOMEPAGE="https://mimic.mycroft.ai/"

LICENSE="BSD MIT public-domain freetts BSD-2 Apache-2.0"
SLOT="0"
# Note: supports Sun/NetBSD audio
IUSE="alsa portaudio pulseaudio oss"

DEPEND="
	dev-libs/libpcre2
	dev-libs/hts_engine
	alsa? ( media-libs/alsa-lib )
	portaudio? ( media-libs/portaudio )
	pulseaudio? ( media-sound/pulseaudio )
"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"

src_prepare() {
	default

	sed -i 's/-Werror//' Makefile.am

	eautoreconf
}