summaryrefslogtreecommitdiff
blob: 0b0363c94bcb2932a2526a24cd4ac3bba24288eb (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

MY_P="${P/_/}"

DESCRIPTION="Console based speech recognition system"
HOMEPAGE="http://www.kiecza.net/daniel/linux"
SRC_URI="http://www.kiecza.net/daniel/linux/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE=""

S="${WORKDIR}/${MY_P}"

PATCHES=(
	"${FILESDIR}/${P}-gentoo-2.patch"
	"${FILESDIR}/${P}-tinfo.patch" #647166
)

src_prepare() {
	default
	# Handle documentation with dohtml instead.
	sed \
		-e "s:SUBDIRS = docs:#SUBDIRS = docs:" \
		-i cvoicecontrol/Makefile.am || die

	eautoreconf #647166

	sed \
		-e "s/install-data-am: install-data-local/install-data-am:/" \
		-i Makefile.in || die
}

src_install() {
	HTML_DOCS=( cvoicecontrol/docs/en/*.html )
	default
}