-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjulius-4.2.2.ebuild
53 lines (39 loc) · 1.05 KB
/
julius-4.2.2.ebuild
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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
inherit eutils flag-o-matic
DESCRIPTION="High-performance, two-pass large vocabulary continuous speech recognition"
HOMEPAGE="http://julius.sourceforge.jp/en_index.php"
SRC_URI="mirror://sourceforge.jp/${PN}/56549/${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
LANGS="ja"
for LNG in ${LANGS}; do
IUSE="${IUSE} linguas_${LNG}"
done
DEPEND=">=sys-libs/readline-4.1
media-libs/alsa-lib
media-libs/libsndfile
sys-libs/zlib
dev-perl/Jcode"
RDEPEND=${DEPEND}
src_prepare() {
epatch "${FILESDIR}/${P}-makefile.patch"
}
src_configure() {
append-flags "-fPIC"
append-cppflags "-DHAVE_ZLIB"
econf --disable-plugin --with-mictype=alsa --without-sndfile
}
src_install() {
default
dodoc 00readme.txt Release.txt || die
for LNG in ${LINGUAS}; do
dodoc 00readme-${LNG}.txt Release-${LNG}.txt || die
done
# /usr/bin/jcontrol collisions to java-config
mv ${D}/usr/bin/jcontrol ${D}/usr/bin/julius-control
}