summaryrefslogtreecommitdiff
blob: 1e7a03b0537b03f9121b6cc54073d9b76a2c7159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeaccessibility/kdeaccessibility-3.4.3.ebuild,v 1.4 2005/11/27 22:02:21 gmsoft Exp $

inherit kde-dist eutils

DESCRIPTION="KDE accessibility module"
KEYWORDS="~alpha amd64 hppa ~ia64 ~ppc sparc ~x86"
IUSE="arts gstreamer"

DEPEND="gstreamer? ( >=media-libs/gstreamer-0.8.7
	             >=media-libs/gst-plugins-0.8.7 )"

RDEPEND="${DEPEND}
	arts? ( || ( app-accessibility/festival
		     app-accessibility/epos
		     app-accessibility/flite
		     app-accessibility/freetts ) )

	gstreamer? ( || ( app-accessibility/festival
		     app-accessibility/epos
		     app-accessibility/flite ) )"

DEPEND="${DEPEND}
	dev-util/pkgconfig"

pkg_setup() {
	kde_pkg_setup
	if use gstreamer; then
		ewarn "gstreamer support in kdeaccessibility is experimental"
	fi
}

src_unpack() {
	kde_src_unpack

	# Make arts optional. Applied for 3.5.
	epatch "${FILESDIR}/kdeaccessibility-3.4.0-noarts.patch"

	# for the noarts patch
	make -f admin/Makefile.common || die
}

src_compile() {
	local myconf="$(use_enable gstreamer kttsd-gstreamer)"

	kde_src_compile
}