1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 AUTOTOOLS_AUTORECONF=true
8 PYTHON_COMPAT=( python2_7 )
9 VALA_MIN_API_VERSION=0.22
11 inherit autotools-utils bash-completion-r1 eutils python-r1 vala versionator
13 DIR_PV=$(get_version_component_range 1-2)
15 DESCRIPTION="Service to log activities and present to other apps"
16 HOMEPAGE="http://launchpad.net/zeitgeist/"
17 SRC_URI="http://launchpad.net/zeitgeist/${DIR_PV}/${PV}/+download/${P}.tar.xz
18 https://dev.gentoo.org/~eva/distfiles/${PN}/${P}.tar.xz"
20 LICENSE="LGPL-2+ LGPL-3+ GPL-2+"
22 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
23 IUSE="+datahub downloads-monitor extensions +fts icu introspection nls plugins sql-debug telepathy"
26 ${PYTHON_REQUIRED_USE}
27 downloads-monitor? ( datahub )"
31 !gnome-extra/zeitgeist-datahub
33 dev-python/dbus-python[${PYTHON_USEDEP}]
34 dev-python/pygobject:2[${PYTHON_USEDEP}]
35 dev-python/pyxdg[${PYTHON_USEDEP}]
36 dev-python/rdflib[${PYTHON_USEDEP}]
38 >=dev-libs/glib-2.35.4:2
39 >=dev-db/sqlite-3.7.11:3
41 datahub? ( x11-libs/gtk+:3 )
42 extensions? ( gnome-extra/zeitgeist-extensions )
43 fts? ( dev-libs/xapian[inmemory] )
44 icu? ( dev-libs/dee[icu?,${PYTHON_USEDEP}] )
45 introspection? ( dev-libs/gobject-introspection )
46 plugins? ( gnome-extra/zeitgeist-datasources )
47 telepathy? ( net-libs/telepathy-glib )
51 >=dev-util/intltool-0.35
56 # pure-python module is better managed manually, see src_install
57 sed -e 's:python::g' \
60 # Fix direct invocation of python in configure
61 epatch "${FILESDIR}"/${PN}-0.9.15-python-detection.patch
63 autotools-utils_src_prepare
69 --docdir="${EPREFIX}/usr/share/doc/${PF}"
70 --with-session-bus-services-dir="${EPREFIX}/usr/share/dbus-1/services"
71 $(use_enable sql-debug explain-queries)
73 $(use_enable downloads-monitor)
74 $(use_enable telepathy)
75 $(use_enable introspection)
76 $(use_with icu dee-icu)
79 use nls || myeconfargs+=( --disable-nls )
80 use fts && myeconfargs+=( --enable-fts )
83 autotools-utils_src_configure
87 autotools-utils_src_test TESTS_ENVIRONMENT="dbus-run-session"
91 dobashcomp data/completions/zeitgeist-daemon
92 autotools-utils_src_install
94 python_moduleinto ${PN}
95 python_foreach_impl python_domodule *py
97 # Redundant NEWS/AUTHOR installation
98 rm -r "${D}"/usr/share/zeitgeist/doc/ || die