commit: a3386e74c74b24765d11d1de0a86eb74ecf86604 parent: 733bcebd60dc5a80ce99056b56a1a44bf08afeb5 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Wed, 7 Feb 2018 23:10:36 +0100 app-accessibility/julius: Import from ::gentoo + bumpDiffstat:
A | app-accessibility/julius/Manifest | 1 | + |
A | app-accessibility/julius/julius-4.3.1.ebuild | 57 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 58 insertions(+), 0 deletions(-)
diff --git a/app-accessibility/julius/Manifest b/app-accessibility/julius/Manifest @@ -0,0 +1 @@ +DIST julius-4.3.1.tar.gz 1761555 SHA256 4bf77c7b91f4bb0686c375c70bd4f2077e7de7db44f60716af9f3660f65a6253 SHA512 67dca6b1c9e2b18b08cd9ea2c7b1a751c3a26285d59de7e78bd709737c0c44ab8dc3cf78440bc5e603df6a7e7e881ee4cdb8aa10c829f20e4780ffda4b37619b WHIRLPOOL 5f5f411ca74894ca467d7388b764323be2168c525c09ce849466ae0dc33bc793b3584e1d3c06cfb9333cb0dbf0a087cbbfd11d8b8dc59c0c4d0b7b87cfb8869a diff --git a/app-accessibility/julius/julius-4.3.1.ebuild b/app-accessibility/julius/julius-4.3.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="Large Vocabulary Continuous Speech Recognition Engine" +HOMEPAGE="http://julius.sourceforge.jp/" +SRC_URI="mirror://sourceforge.jp/julius/60273/${P}.tar.gz" + +LICENSE="julius" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+alsa oss portaudio pulseaudio sndfile" +REQUIRED_USE="^^ ( alsa oss portaudio pulseaudio )" + +RDEPEND=" + dev-lang/perl + dev-perl/Jcode + sys-libs/readline:0 + sys-libs/zlib + alsa? ( media-libs/alsa-lib ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-sound/pulseaudio ) + sndfile? ( media-libs/libsndfile )" +DEPEND="${RDEPEND} + sys-devel/flex" + +pkg_setup() { + tc-export CC CXX +} + +src_configure() { + local mymic i + for i in alsa oss portaudio pulseaudio ; do + use ${i} && mymic=${i} + done + + econf \ + --with-mictype=${mymic} \ + $(use_with sndfile) +} + +src_install() { + default + if ! has ja ${LINGUAS} ; then + rm -r "${ED}"/usr/share/man/ja || die + fi +} + +pkg_postinst() { + eerror "IMPORTANT NOTICE" + elog "/usr/bin/jcontrol has been renamed to /usr/bin/jucontrol" + elog "to avoid file collision with dev-java/java-config." + elog "If this creates a problem with applications, file a gentoo bug." +}