blob: 31a8140b565659857e54159da80cc5704baa668b (
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
55
56
57
58
59
60
61
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit eutils
DESCRIPTION="Toolkit for building and manipulating hidden Markov models"
HOMEPAGE="http://htk.eng.cam.ac.uk/"
SRC_URI="http://htk.eng.cam.ac.uk/ftp/software/HTK-3.4.1.tar.gz -> HTK-3.4.1.tar.gz
hdecode? ( http://htk.eng.cam.ac.uk/ftp/software/hdecode/HDecode-3.4.1.tar.gz
-> HDecode-3.4.1.tar.gz )"
HDECODE_HOME="http://htk.eng.cam.ac.uk/extensions/index.shtml"
LICENSE="HTKCambridge
hdecode? ( HDecodeCambridge )"
SLOT="0"
KEYWORDS="~amd64"
IUSE="-hlmtools -hslab -htkbook -hdecode"
DEPEND=""
RDEPEND="${DEPEND}"
RESTRICT="fetch"
S=""${WORKDIR}/${PN}""
pkg_nofetch() {
einfo "Please download"
einfo " - HTK-3.4.1.tar.gz"
einfo "from ${HOMEPAGE}"
if use hdecode; then
einfo " - HDecode-3.4.1.tar.gz"
einfo "from ${HDECODE_HOME}"
fi
einfo "and place them in ${DISTDIR}"
}
src_prepare() {
epatch "${FILESDIR}/include_make_destdir.patch"
}
src_configure() {
econf $(use_enable hlmtools) \
$(use_enable hslab) \
$(use_enable htkbook) \
$(use_enable hdecode)
}
src_compile() {
if use hlmtools || use hdecode; then
emake -j1 || die "Cannot compile"
else
emake
fi
}
src_install() {
emake DESTDIR="${D}" install
}
|