Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 476424 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-5 / +28 lines)
Line  Link Here
0
-- a/sphinxbase-0.8.ebuild
0
++ b/sphinxbase-0.8.ebuild
Lines 8-14 Link Here
8
DISTUTILS_OPTIONAL=1
8
DISTUTILS_OPTIONAL=1
9
AUTOTOOLS_AUTORECONF=1
9
AUTOTOOLS_AUTORECONF=1
10
10
11
inherit autotools-utils distutils-r1
11
inherit autotools-utils eutils distutils-r1
12
12
13
DESCRIPTION="Support library required by the Sphinx Speech Recognition Engine"
13
DESCRIPTION="Support library required by the Sphinx Speech Recognition Engine"
14
HOMEPAGE="http://cmusphinx.sourceforge.net/"
14
HOMEPAGE="http://cmusphinx.sourceforge.net/"
Lines 17-37 Link Here
17
LICENSE="BSD-2 HPND MIT"
17
LICENSE="BSD-2 HPND MIT"
18
SLOT="0"
18
SLOT="0"
19
KEYWORDS="amd64 x86"
19
KEYWORDS="amd64 x86"
20
IUSE="doc lapack python static-libs"
20
IUSE="alsa doc jack lapack +pulseaudio oss python static-libs"
21
21
22
# automagic dep on pulseaudio
23
RDEPEND="
22
RDEPEND="
24
	media-sound/pulseaudio
23
	pulseaudio? ( media-sound/pulseaudio )
25
	lapack? ( virtual/lapack )
24
	lapack? ( virtual/lapack )
26
	python? ( ${PYTHON_DEPS} )"
25
	python? ( ${PYTHON_DEPS} )"
27
DEPEND="${RDEPEND}
26
DEPEND="${RDEPEND}
28
	doc? ( >=app-doc/doxygen-1.4.7 )"
27
	doc? ( >=app-doc/doxygen-1.4.7 )"
29
28
29
REQUIRED_USE="( ^^ ( pulseaudio jack alsa oss ) )"
30
30
# Due to generated Python setup.py.
31
# Due to generated Python setup.py.
31
AUTOTOOLS_IN_SOURCE_BUILD=1
32
AUTOTOOLS_IN_SOURCE_BUILD=1
32
33
33
PATCHES=( "${FILESDIR}"/${P}-unbundle-lapack.patch )
34
PATCHES=( "${FILESDIR}"/${P}-unbundle-lapack.patch )
34
35
36
src_prepare() {
37
	if ! use pulseaudio then
38
		local line="167"
39
40
		sed -i '184d' configure.in
41
42
		if ! use jack ; then
43
			sed -i '184d' configure.in || die
44
			line="173"
45
		fi
46
47
		if ! use alsa ; then
48
			sed -i '184d' configure.in || die
49
			line="179"
50
		fi
51
52
		sed -i "160,${line}d" configure.in
53
54
		eautoreconf
55
	fi
56
}
57
35
src_configure() {
58
src_configure() {
36
	local myeconfargs=(
59
	local myeconfargs=(
37
		$(use_with lapack)
60
		$(use_with lapack)

Return to bug 476424