aboutsummaryrefslogtreecommitdiff
blob: 9dc14dd609b47f66027c0a7a66c628bb451acb66 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit autotools eutils

MYPV="${PV/_p/+git}"
[[ "${PR}" == "r0" ]] && MYPR="" || MYPR="${PR}"

DESCRIPTION="SVOX Pico non-free TTS, from Android"
SRC_URI="http://http.debian.net/debian/pool/non-free/s/svox/svox_${MYPV}.orig.tar.gz
	http://http.debian.net/debian/pool/non-free/s/svox/svox_${MYPV}${PR:+-${PR#r}}.debian.tar.xz"
RESTRICT="nomirror"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

DEPEND="sys-apps/help2man
	dev-libs/popt
	sys-devel/libtool"

WANT_AUTOMAKE="1.11"

# svox-pico-1.0_p20130326-r5 -> svox-1.0+git20130326
S="${WORKDIR}"/"${PN%-pico}-${MYPV}"

src_prepare() {
	local patch

	default

	cd "${S}"

	while read -r patch; do
		eapply ../debian/patches/"${patch}" || die "Debian patch '${patch}' application failed: ${?}"
	done < <( sed 's/#.*$//' "${WORKDIR}"/debian/patches/series | grep -v '^\s*$' )

	mv pico/* . && rmdir pico

	chmod 755 autogen.sh && ./autogen.sh || die "Package-provided autogen.sh failed: ${?}"

	eautoreconf

	help2man --name 'Small Footprint TTS' --version-string ' ' --no-info pico2wave > pico2wave.1
}

src_install() {
	default

	doman pico2wave.1
}