summaryrefslogtreecommitdiff
blob: 1268db6a5fdc7b8036a56b88bc9167806c09fa19 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/baloo/baloo-4.13.3.ebuild,v 1.1 2014/07/16 17:40:39 johu Exp $

EAPI=5

inherit kde4-base

DESCRIPTION="Next generation of the Nepomuk project"
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
IUSE="+alternatekcm debug minimal"

DEPEND="
	$(add_kdebase_dep kdepimlibs)
	$(add_kdebase_dep kfilemetadata)
	dev-libs/qjson
	=dev-libs/xapian-1.2*[chert]
	sys-apps/attr
	!<kde-base/nepomuk-4.12.50
"
RDEPEND="
	${DEPEND}
"
PDEPEND="alternatekcm? ( kde-misc/baloo-kcmadv )"

RESTRICT="test"

src_prepare() {
	kde4-base_src_prepare
	use alternatekcm && epatch "${FILESDIR}/${PN}-4.13.0-nokcm.patch"
}

src_install() {
	kde4-base_src_install

	if use minimal ; then
		rm "${D}"/usr/bin/baloo*
		rm -r "${D}"/usr/share/dbus-1
		rm -r "${D}"/usr/share/icons
		rm -r "${D}"/usr/share/polkit-1
	fi
}