You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/gnome-extra/zeitgeist-extensions/zeitgeist-extensions-0.0.13...

78 lines
1.9 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/zeitgeist-extensions/zeitgeist-extensions-0.0.13-r1.ebuild,v 1.12 2013/12/08 19:02:26 pacho Exp $
EAPI=4
PYTHON_DEPEND="2"
PYTHON_USE_WITH="sqlite"
inherit eutils python
DESCRIPTION="Allow manipulating events before/after insertion as well as before fetching"
HOMEPAGE="https://launchpad.net/zeitgeist-extensions/"
SRC_URI="http://launchpad.net/${PN}/trunk/fts-${PV}/+download/${P}.tar.gz"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
LICENSE="GPL-3"
IUSE="fts geolocation memprofile sqldebug tracker"
RDEPEND="
fts? (
!gnome-extra/zeitgeist[fts]
dev-libs/xapian-bindings[python]
dev-python/dbus-python
dev-python/pygobject
dev-python/pyxdg
)
geolocation? (
dev-python/dbus-python
dev-python/python-geoclue
)
memprofile? (
dev-python/dbus-python
dev-python/pympler
)
sqldebug? ( dev-python/python-sqlparse )
tracker? (
app-misc/tracker
dev-python/pygobject
dev-python/dbus-python
)"
DEPEND=""
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-python.patch \
"${FILESDIR}"/${P}-gobject.patch
}
src_install() {
insinto /usr/share/zeitgeist/_zeitgeist/engine/extensions
use fts && doins ./fts/fts.py
if use geolocation; then
dodoc ./geolocation/example.py
doins ./geolocation/geolocation.py
fi
if use memprofile; then
doins ./memory-profile/profile_memory.py
newdoc ./memory-profile/README README-memprofile
fi
use sqldebug && doins ./debug_sql/debug_sql.py
use tracker && doins ./tracker/tracker.py
}
pkg_postinst() {
python_mod_optimize /usr/share/zeitgeist/_zeitgeist/engine/extensions
}
pkg_postrm() {
python_mod_cleanup /usr/share/zeitgeist/_zeitgeist/engine/extensions
}