/[gentoo-x86]/gnome-extra/zeitgeist/zeitgeist-0.9.15.ebuild
Gentoo

Contents of /gnome-extra/zeitgeist/zeitgeist-0.9.15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Jun 28 10:47:38 2015 UTC (3 years, 3 months ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
x86 stable wrt bug #553184

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xC42EB5D6)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/zeitgeist/zeitgeist-0.9.15.ebuild,v 1.3 2015/06/26 12:14:01 ago Exp $
4
5 EAPI=5
6 AUTOTOOLS_AUTORECONF=true
7 PYTHON_COMPAT=( python2_7 )
8 VALA_MIN_API_VERSION=0.22
9
10 inherit autotools-utils bash-completion-r1 eutils python-r1 vala versionator
11
12 DIR_PV=$(get_version_component_range 1-2)
13
14 DESCRIPTION="Service to log activities and present to other apps"
15 HOMEPAGE="http://launchpad.net/zeitgeist/"
16 SRC_URI="http://launchpad.net/zeitgeist/${DIR_PV}/${PV}/+download/${P}.tar.xz
17 http://dev.gentoo.org/~eva/distfiles/${PN}/${P}.tar.xz"
18
19 LICENSE="LGPL-2+ LGPL-3+ GPL-2+"
20 SLOT="0"
21 KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86"
22 IUSE="+datahub downloads-monitor extensions +fts icu introspection nls plugins sql-debug telepathy"
23
24 REQUIRED_USE="
25 ${PYTHON_REQUIRED_USE}
26 downloads-monitor? ( datahub )"
27
28 RDEPEND="
29 ${PYTHON_DEPS}
30 !gnome-extra/zeitgeist-datahub
31 dev-libs/json-glib
32 dev-python/dbus-python[${PYTHON_USEDEP}]
33 dev-python/pygobject:2[${PYTHON_USEDEP}]
34 dev-python/pyxdg[${PYTHON_USEDEP}]
35 dev-python/rdflib[${PYTHON_USEDEP}]
36 media-libs/raptor:2
37 >=dev-libs/glib-2.26.0:2
38 >=dev-db/sqlite-3.7.11:3
39 sys-apps/dbus
40 datahub? ( x11-libs/gtk+:3 )
41 extensions? ( gnome-extra/zeitgeist-extensions )
42 fts? ( dev-libs/xapian[inmemory] )
43 icu? ( dev-libs/dee[icu?,${PYTHON_USEDEP}] )
44 introspection? ( dev-libs/gobject-introspection )
45 plugins? ( gnome-extra/zeitgeist-datasources )
46 telepathy? ( net-libs/telepathy-glib )
47 "
48 DEPEND="${RDEPEND}
49 $(vala_depend)
50 >=dev-util/intltool-0.35
51 virtual/pkgconfig
52 "
53
54 src_prepare() {
55 # pure-python module is better managed manually, see src_install
56 sed -e 's:python::g' \
57 -i Makefile.am || die
58
59 # Fix direct invocation of python in configure
60 epatch "${FILESDIR}"/${PN}-0.9.15-python-detection.patch
61
62 # Fix vapi dependencies
63 epatch "${FILESDIR}"/${PN}-0.9.14-gio-backport.patch
64
65 # Fix query generation, from master
66 epatch "${FILESDIR}"/${PN}-0.9.15-fix-array-length-string-join.patch
67
68 autotools-utils_src_prepare
69 vala_src_prepare
70 }
71
72 src_configure() {
73 local myeconfargs=(
74 --docdir="${EPREFIX}/usr/share/doc/${PF}"
75 --with-session-bus-services-dir="${EPREFIX}/usr/share/dbus-1/services"
76 $(use_enable sql-debug explain-queries)
77 $(use_enable datahub)
78 $(use_enable downloads-monitor)
79 $(use_enable telepathy)
80 $(use_enable introspection)
81 $(use_with icu dee-icu)
82 )
83
84 use nls || myeconfargs+=( --disable-nls )
85 use fts && myeconfargs+=( --enable-fts )
86
87 python_setup
88 autotools-utils_src_configure
89 }
90
91 src_test() {
92 autotools-utils_src_test TESTS_ENVIRONMENT="dbus-run-session"
93 }
94
95 src_install() {
96 dobashcomp data/completions/zeitgeist-daemon
97 autotools-utils_src_install
98 cd python || die
99 python_moduleinto ${PN}
100 python_foreach_impl python_domodule *py
101
102 # Redundant NEWS/AUTHOR installation
103 rm -r "${D}"/usr/share/zeitgeist/doc/ || die
104 }

  ViewVC Help
Powered by ViewVC 1.1.20