blob: 02b46f80e8847e52af63297edf43548be240e250 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
AUTOTOOLS_AUTORECONF=true
PYTHON_COMPAT=( python2_7 )
VALA_MIN_API_VERSION=0.22
inherit autotools-utils bash-completion-r1 eutils python-r1 vala versionator
DIR_PV=$(get_version_component_range 1-2)
DESCRIPTION="Service to log activities and present to other apps"
HOMEPAGE="https://launchpad.net/zeitgeist/"
SRC_URI="https://launchpad.net/zeitgeist/${DIR_PV}/${PV}/+download/${P}.tar.xz
https://dev.gentoo.org/~eva/distfiles/${PN}/${P}.tar.xz"
LICENSE="LGPL-2+ LGPL-3+ GPL-2+"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86"
IUSE="+datahub downloads-monitor +fts icu introspection nls plugins sql-debug telepathy"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
downloads-monitor? ( datahub )"
RDEPEND="
${PYTHON_DEPS}
dev-libs/json-glib
dev-python/dbus-python[${PYTHON_USEDEP}]
dev-python/rdflib[${PYTHON_USEDEP}]
media-libs/raptor:2
>=dev-libs/glib-2.35.4:2
>=dev-db/sqlite-3.7.11:3
sys-apps/dbus
datahub? ( x11-libs/gtk+:3 )
fts? ( dev-libs/xapian:0=[inmemory] )
icu? ( dev-libs/dee[icu?] )
introspection? ( dev-libs/gobject-introspection )
telepathy? ( net-libs/telepathy-glib )
"
DEPEND="${RDEPEND}
$(vala_depend)
>=dev-util/intltool-0.35
virtual/pkgconfig
"
PDEPEND="plugins? ( gnome-extra/zeitgeist-datasources )"
src_prepare() {
# pure-python module is better managed manually, see src_install
sed -e 's:python::g' \
-i Makefile.am || die
# Fix direct invocation of python in configure
epatch "${FILESDIR}"/${PN}-0.9.15-python-detection.patch
autotools-utils_src_prepare
vala_src_prepare
}
src_configure() {
local myeconfargs=(
--docdir="${EPREFIX}/usr/share/doc/${PF}"
--with-session-bus-services-dir="${EPREFIX}/usr/share/dbus-1/services"
$(use_enable sql-debug explain-queries)
$(use_enable datahub)
$(use_enable downloads-monitor)
$(use_enable telepathy)
$(use_enable introspection)
$(use_with icu dee-icu)
)
use nls || myeconfargs+=( --disable-nls )
use fts && myeconfargs+=( --enable-fts )
python_setup
autotools-utils_src_configure
}
src_test() {
autotools-utils_src_test TESTS_ENVIRONMENT="dbus-run-session"
}
src_install() {
dobashcomp data/completions/zeitgeist-daemon
autotools-utils_src_install
cd python || die
python_moduleinto ${PN}
python_foreach_impl python_domodule *py
# Redundant NEWS/AUTHOR installation
rm -r "${D}"/usr/share/zeitgeist/doc/ || die
}
|