# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 PYTHON_COMPAT=( python2_7 python3_4 ) inherit autotools-utils python-single-r1 AUTOTOOLS_AUTORECONF=1 AUTOTOOLS_IN_SOURCE_BUILD=1 DESCRIPTION="Large open source vocabulary, speaker-independent continuous speech recognition engine" HOMEPAGE="https://sourceforge.net/projects/cmusphinx/" case ${PV} in 9999) EGIT_REPO_URI="git://github.com/cmusphinx/pocketsphinx.git" inherit git-r3 ;; *|*_p*) KEYWORDS="~amd64 ~x86 ~arm" SRC_URI="mirror://sourceforge/cmusphinx/${P}.tar.gz" ;; esac LICENSE="BSD-2" SLOT="0" IUSE="python static-libs doc" RDEPEND="=app-accessibility/sphinxbase-{PV} media-libs/gstreamer:1.0 media-libs/gst-plugins-base:1.0 python? ( ${PYTHON_DEPS} )" DEPEND="${RDEPEND} virtual/pkgconfig" DOCS=( README AUTHORS NEWS ) pkg_setup() { use python && python-single-r1_pkg_setup } src_configure() { local myeconfargs=( $(use_with python) \ $(use_enable static-libs static) ) autotools-utils_src_configure } src_install() { use doc && local HTML_DOCS=( doc/html/. ) autotools-utils_src_install }