# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 PYTHON_COMPAT=( python2_7 python3_4 ) AUTOTOOLS_AUTORECONF=1 WANT_AUTOMAKE="1.12" inherit autotools-utils python-r1 MY_PV="ec89abd9d2e976019338ecae7d6cafeecdb95eb2" DESCRIPTION="Large open source vocabulary, speaker-independent continuous speech recognition engine" HOMEPAGE="http://cmusphinx.sourceforge.net/" SRC_URI="https://github.com/cmusphinx/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="doc lapack python static-libs" RDEPEND="app-accessibility/sphinxbase python? ( ${PYTHON_DEPS} ) media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10" DEPEND="${RDEPEND} virtual/pkgconfig" S=${WORKDIR}/${PN}-${MY_PV} DOCS=( README AUTHORS NEWS ) src_prepare() { eautoreconf } src_configure() { local myeconfargs=( $(use_with python) ) python_foreach_impl autotools-utils_src_configure } src_compile() { python_foreach_impl autotools-utils_src_compile } src_install() { python_foreach_impl autotools-utils_src_install use doc && local HTML_DOCS=( doc/html/. ) }