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 / +29 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 )
24
	jack? ( media-sound/jack-audio-connection-kit )
25
	lapack? ( virtual/lapack )
25
	lapack? ( virtual/lapack )
26
	python? ( ${PYTHON_DEPS} )"
26
	python? ( ${PYTHON_DEPS} )"
27
DEPEND="${RDEPEND}
27
DEPEND="${RDEPEND}
28
	doc? ( >=app-doc/doxygen-1.4.7 )"
28
	doc? ( >=app-doc/doxygen-1.4.7 )"
29
29
30
REQUIRED_USE="( ^^ ( pulseaudio jack alsa oss ) )"
31
30
# Due to generated Python setup.py.
32
# Due to generated Python setup.py.
31
AUTOTOOLS_IN_SOURCE_BUILD=1
33
AUTOTOOLS_IN_SOURCE_BUILD=1
32
34
33
PATCHES=( "${FILESDIR}"/${P}-unbundle-lapack.patch )
35
PATCHES=( "${FILESDIR}"/${P}-unbundle-lapack.patch )
34
36
37
src_prepare() {
38
	if ! use pulseaudio ; then
39
		local line="167"
40
41
		sed -i '184d' configure.in
42
43
		if ! use jack ; then
44
			sed -i '184d' configure.in || die
45
			line="173"
46
		fi
47
48
		if ! use alsa ; then
49
			sed -i '184d' configure.in || die
50
			line="179"
51
		fi
52
53
		sed -i "160,${line}d" configure.in
54
55
		eautoreconf
56
	fi
57
}
58
35
src_configure() {
59
src_configure() {
36
	local myeconfargs=(
60
	local myeconfargs=(
37
		$(use_with lapack)
61
		$(use_with lapack)

Return to bug 476424