aboutsummaryrefslogtreecommitdiff
blob: 650f0ce14b483980e1d55ad80a0802e1bfc51c90 (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

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"

RESTRICT="fetch"

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

pkg_nofetch() {
	elog "Please download"
	elog "  - HTK-3.4.1.tar.gz"
	elog "from ${HOMEPAGE}"
	if use hdecode; then
		elog "  - HDecode-3.4.1.tar.gz"
		elog "from ${HDECODE_HOME}"
	fi
	elog "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
	else
		default
	fi
}