/[gentoo-x86]/app-accessibility/sphinxbase/sphinxbase-0.7.ebuild
Gentoo

Contents of /app-accessibility/sphinxbase/sphinxbase-0.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Dec 14 11:11:58 2012 UTC (21 months, 2 weeks ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Fix LICENSE, see COPYING file, bug 445042.

(Portage version: 2.1.11.37/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinxbase/sphinxbase-0.7.ebuild,v 1.3 2012/02/24 11:29:47 patrick Exp $
4
5 EAPI=3
6 PYTHON_DEPEND="python? 2:2.6"
7 RESTRICT_PYTHON_ABIS="3* 2.7-pypy-*"
8 SUPPORT_PYTHON_ABIS="1"
9
10 inherit autotools-utils python
11
12 DESCRIPTION="Support library required by the Sphinx Speech Recognition Engine"
13 HOMEPAGE="http://cmusphinx.sourceforge.net/"
14 SRC_URI="mirror://sourceforge/cmusphinx/${P}.tar.gz"
15
16 LICENSE="BSD-2 HPND MIT"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="doc lapack python static-libs"
20
21 RDEPEND="lapack? ( virtual/lapack )"
22 DEPEND="${RDEPEND}
23 doc? ( >=app-doc/doxygen-1.4.7 )"
24
25 # Due to generated Python setup.py.
26 AUTOTOOLS_IN_SOURCE_BUILD=1
27
28 src_configure() {
29 local myeconfargs=(
30 $( use_with lapack )
31 # python modules are built through distutils
32 # so disable the ugly wrapper
33 --without-python
34 )
35
36 autotools-utils_src_configure
37 }
38
39 src_compile() {
40 autotools-utils_src_compile
41
42 if use python; then
43 python_copy_sources python
44
45 building() {
46 emake PYTHON="$(PYTHON)" PYTHON_INCLUDEDIR="$(python_get_includedir)" PYTHON_LIBDIR="$(python_get_libdir)"
47 }
48
49 python_execute_function -s --source-dir python building
50 fi
51 }
52
53 src_install() {
54 autotools-utils_src_install
55
56 if use python; then
57 python_execute_function -s --source-dir python -d
58 fi
59
60 if use doc; then
61 dohtml doc/html/*
62 fi
63 }

  ViewVC Help
Powered by ViewVC 1.1.20