| 1 |
# Copyright 1999-2012 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.0-r1.ebuild,v 1.2 2012/05/05 06:25:21 jdhore Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
PYTHON_DEPEND="2" |
| 8 |
|
| 9 |
AUTOTOOLS_AUTORECONF=true |
| 10 |
|
| 11 |
inherit autotools-utils eutils python versionator |
| 12 |
|
| 13 |
DIR_PV=$(get_version_component_range 1-2) |
| 14 |
EXT_VER=0.0.13 |
| 15 |
|
| 16 |
DESCRIPTION="Service to log activities and present to other apps" |
| 17 |
HOMEPAGE="http://launchpad.net/zeitgeist/" |
| 18 |
SRC_URI="http://launchpad.net/zeitgeist/${DIR_PV}/${PV}/+download/${P}.tar.bz2" |
| 19 |
|
| 20 |
LICENSE="GPL-2" |
| 21 |
SLOT="0" |
| 22 |
KEYWORDS="~amd64 ~x86" |
| 23 |
IUSE="+dbus extensions +fts icu nls passiv plugins sql-debug" |
| 24 |
|
| 25 |
RDEPEND=" |
| 26 |
dev-libs/xapian |
| 27 |
dev-python/dbus-python |
| 28 |
dev-python/pygobject:2 |
| 29 |
dev-python/pyxdg |
| 30 |
dev-python/rdflib |
| 31 |
media-libs/raptor:2 |
| 32 |
dev-libs/glib:2 |
| 33 |
dev-lang/vala:0.14 |
| 34 |
dev-db/sqlite:3 |
| 35 |
extensions? ( gnome-extra/zeitgeist-extensions ) |
| 36 |
icu? ( dev-libs/dee[icu?] ) |
| 37 |
passiv? ( gnome-extra/zeitgeist-datahub ) |
| 38 |
plugins? ( gnome-extra/zeitgeist-datasources ) |
| 39 |
" |
| 40 |
DEPEND="${RDEPEND} |
| 41 |
virtual/pkgconfig" |
| 42 |
|
| 43 |
PATCHES=( |
| 44 |
"${FILESDIR}"/${PN}-0.9.0-gobject.patch |
| 45 |
"${FILESDIR}"/${PN}-0.9.0-doc.patch |
| 46 |
) |
| 47 |
|
| 48 |
pkg_setup() { |
| 49 |
python_set_active_version 2 |
| 50 |
python_pkg_setup |
| 51 |
} |
| 52 |
|
| 53 |
src_prepare() { |
| 54 |
export VALAC=$(type -p valac-0.14) |
| 55 |
python_clean_py-compile_files |
| 56 |
autotools-utils_src_prepare |
| 57 |
} |
| 58 |
|
| 59 |
src_configure() { |
| 60 |
local myeconfargs=( |
| 61 |
--docdir=/usr/share/doc/${PF} |
| 62 |
$(use_enable sql-debug explain-queries) |
| 63 |
$(use_with icu dee-icu) |
| 64 |
$(use_with dbus session-bus-services-dir /usr/share/dbus-1/services) |
| 65 |
) |
| 66 |
use nls || myeconfargs+=(--disable-nls) |
| 67 |
use fts || myeconfargs+=(--disable-fts) |
| 68 |
autotools-utils_src_configure |
| 69 |
} |
| 70 |
|
| 71 |
src_install() { |
| 72 |
autotools-utils_src_install |
| 73 |
} |
| 74 |
|
| 75 |
pkg_postinst() { |
| 76 |
python_mod_optimize zeitgeist |
| 77 |
} |
| 78 |
|
| 79 |
pkg_postrm() { |
| 80 |
python_mod_cleanup zeitgeist |
| 81 |
} |