summaryrefslogtreecommitdiff
blob: 3e7dbe0fa4ca1c25c540c271825d42517dc9de26 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/zeitgeist/zeitgeist-0.8.2-r1.ebuild,v 1.2 2012/03/25 15:25:41 eva Exp $

EAPI=4

PYTHON_DEPEND="2"
PYTHON_USE_WITH="sqlite"

AUTOTOOLS_AUTORECONF=true

inherit autotools-utils eutils python versionator

DIR_PV=$(get_version_component_range 1-2)
EXT_VER=0.0.13

DESCRIPTION="Service to log activities and present to other apps"
HOMEPAGE="http://launchpad.net/zeitgeist/"
SRC_URI="http://launchpad.net/zeitgeist/${DIR_PV}/${PV}/+download/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="extensions passiv plugins"

RDEPEND="
	dev-python/dbus-python
	dev-python/pygobject:2
	dev-python/pyxdg
	dev-python/rdflib
	media-libs/raptor:2
	extensions? ( gnome-extra/zeitgeist-extensions  )
	passiv? ( gnome-extra/zeitgeist-datahub )
	plugins? ( gnome-extra/zeitgeist-datasources )
"
DEPEND="${RDEPEND}"

PATCHES=( "${FILESDIR}"/${P}-gobject.patch )

pkg_setup() {
	python_set_active_version 2
	python_pkg_setup
}

src_prepare() {
	python_clean_py-compile_files
	autotools-utils_src_prepare
}

src_install() {
	autotools-utils_src_install
	python_convert_shebangs -r 2 "${ED}"
}

pkg_postinst() {
	python_mod_optimize zeitgeist
	python_mod_optimize /usr/share/zeitgeist/
}

pkg_postrm() {
	python_mod_cleanup zeitgeist
	python_mod_cleanup /usr/share/zeitgeist/
}