1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="Large Vocabulary Continuous Speech Recognition Engine"
9 HOMEPAGE="https://github.com/julius-speech/julius"
10 SRC_URI="mirror://sourceforge.jp/julius/56549/${P}.tar.gz"
15 IUSE="+alsa l10n_ja oss portaudio pulseaudio sndfile"
16 REQUIRED_USE="^^ ( alsa oss portaudio pulseaudio )"
23 alsa? ( media-libs/alsa-lib )
24 portaudio? ( media-libs/portaudio )
25 pulseaudio? ( media-sound/pulseaudio )
26 sndfile? ( media-libs/libsndfile )"
31 "${FILESDIR}"/${PN}-4.2.2-install.patch
32 "${FILESDIR}"/${PN}-4.2.2-ldflags.patch
41 for i in alsa oss portaudio pulseaudio ; do
42 use ${i} && mymic=${i}
46 --with-mictype=${mymic} \
52 if ! use l10n_ja ; then
53 rm -r "${ED}"/usr/share/man/ja || die
58 eerror "IMPORTANT NOTICE"
59 elog "/usr/bin/jcontrol has been renamed to /usr/bin/jucontrol"
60 elog "to avoid file collision with dev-java/java-config."
61 elog "If this creates a problem with applications, file a gentoo bug."