summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-02-16 19:50:03 +0000
committerJustin Lecher <jlec@gentoo.org>2012-02-16 19:50:03 +0000
commit65c42f0682e5a0c78c6de77d097a85ab8341571f (patch)
tree551aa6b77f64a5d70bb72ef05896e2c4d5612529 /gnome-extra
parentarm stable, bug #402253 (diff)
downloadgentoo-2-65c42f0682e5a0c78c6de77d097a85ab8341571f.tar.gz
gentoo-2-65c42f0682e5a0c78c6de77d097a85ab8341571f.tar.bz2
gentoo-2-65c42f0682e5a0c78c6de77d097a85ab8341571f.zip
Add missing dep on dev-python/pymplet, add gobject patches created by eva
(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)
Diffstat (limited to 'gnome-extra')
-rw-r--r--gnome-extra/zeitgeist-extensions/ChangeLog10
-rw-r--r--gnome-extra/zeitgeist-extensions/files/zeitgeist-extensions-0.0.13-gobject.patch53
-rw-r--r--gnome-extra/zeitgeist-extensions/files/zeitgeist-extensions-0.0.13-python.patch17
-rw-r--r--gnome-extra/zeitgeist-extensions/zeitgeist-extensions-0.0.13-r1.ebuild71
4 files changed, 150 insertions, 1 deletions
diff --git a/gnome-extra/zeitgeist-extensions/ChangeLog b/gnome-extra/zeitgeist-extensions/ChangeLog
index 1d0ffb5c9dc6..53fcac2a796a 100644
--- a/gnome-extra/zeitgeist-extensions/ChangeLog
+++ b/gnome-extra/zeitgeist-extensions/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for gnome-extra/zeitgeist-extensions
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/gnome-extra/zeitgeist-extensions/ChangeLog,v 1.1 2012/02/16 07:46:28 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/zeitgeist-extensions/ChangeLog,v 1.2 2012/02/16 19:50:03 jlec Exp $
+
+*zeitgeist-extensions-0.0.13-r1 (16 Feb 2012)
+
+ 16 Feb 2012; Justin Lecher <jlec@gentoo.org>
+ +zeitgeist-extensions-0.0.13-r1.ebuild,
+ +files/zeitgeist-extensions-0.0.13-gobject.patch,
+ +files/zeitgeist-extensions-0.0.13-python.patch:
+ Add missing dep on dev-python/pymplet, add gobject patches created by eva
*zeitgeist-extensions-0.0.13 (16 Feb 2012)
diff --git a/gnome-extra/zeitgeist-extensions/files/zeitgeist-extensions-0.0.13-gobject.patch b/gnome-extra/zeitgeist-extensions/files/zeitgeist-extensions-0.0.13-gobject.patch
new file mode 100644
index 000000000000..00d03f2656ce
--- /dev/null
+++ b/gnome-extra/zeitgeist-extensions/files/zeitgeist-extensions-0.0.13-gobject.patch
@@ -0,0 +1,53 @@
+diff -Nur a/extensions/tracker/tracker.py b/extensions/tracker/tracker.py
+--- a/extensions/tracker/tracker.py 2011-12-18 16:42:33.000000000 +0100
++++ b/extensions/tracker/tracker.py 2011-12-18 16:55:08.000000000 +0100
+@@ -26,9 +26,7 @@
+ import logging
+
+ import gi
+-from gi.repository import Tracker
+-
+-import gobject
++from gi.repository import Tracker, GObject
+
+ from _zeitgeist.engine.extension import Extension
+ from _zeitgeist.engine import constants
+@@ -52,7 +50,7 @@
+ self._engine = engine
+ self.cursor = get_default_cursor()
+ if not (os.path.exists(INDEX_FILE)):
+- gobject.idle_add (self._reindex)
++ GObject.idle_add (self._reindex)
+
+ def _reindex(self):
+ log.info("Empty index detected. Doing full rebuild")
+diff -Nur a/extensions/fts/fts.py b/extensions/fts/fts.py
+--- a/extensions/fts/fts.py 2011-12-18 17:21:37.000000000 +0100
++++ b/extensions/fts/fts.py 2011-12-18 17:22:09.000000000 +0100
+@@ -49,7 +49,7 @@
+ from Queue import Queue, Empty
+ import threading
+ from urllib import quote as url_escape, unquote as url_unescape
+-import gobject, gio
++from gi.repository import GObject
+ from cStringIO import StringIO
+
+ from zeitgeist.datamodel import Symbol, StorageState, ResultType, TimeRange, NULL_EVENT, NEGATION_OPERATOR
+@@ -294,7 +294,7 @@
+ # Cache of parsed DesktopEntrys
+ self._desktops = {}
+
+- gobject.threads_init()
++ GObject.threads_init()
+ self._may_run = True
+ self._queue = Queue(0)
+ self._worker = threading.Thread(target=self._worker_thread,
+@@ -304,7 +304,7 @@
+ # We need to defer the index checking until after ZG has completed
+ # full setup. Hence the idle handler.
+ # We also don't start the worker until after we've checked the index
+- gobject.idle_add (self._check_index_and_start_worker)
++ GObject.idle_add (self._check_index_and_start_worker)
+
+ @synchronized (INDEX_LOCK)
+ def _check_index_and_start_worker (self):
diff --git a/gnome-extra/zeitgeist-extensions/files/zeitgeist-extensions-0.0.13-python.patch b/gnome-extra/zeitgeist-extensions/files/zeitgeist-extensions-0.0.13-python.patch
new file mode 100644
index 000000000000..3875dc682e05
--- /dev/null
+++ b/gnome-extra/zeitgeist-extensions/files/zeitgeist-extensions-0.0.13-python.patch
@@ -0,0 +1,17 @@
+ memory-profile/profile_memory.py | 3 +--
+ 1 files changed, 1 insertions(+), 2 deletions(-)
+
+diff --git a/memory-profile/profile_memory.py b/memory-profile/profile_memory.py
+index b1e8c06..da37c90 100644
+--- a/memory-profile/profile_memory.py
++++ b/memory-profile/profile_memory.py
+@@ -28,8 +28,7 @@ from _zeitgeist.engine.extension import Extension
+ from _zeitgeist.engine import constants
+ from _zeitgeist.singleton import SingletonApplication
+
+-from pympler.tracker import ClassTracker
+-from pympler.tracker.stats import ConsoleStats
++from pympler.classtracker import ClassTracker, ConsoleStats
+
+ DBUS_OBJECT_PATH = "/org/gnome/zeitgeist/memory_profiler"
+
diff --git a/gnome-extra/zeitgeist-extensions/zeitgeist-extensions-0.0.13-r1.ebuild b/gnome-extra/zeitgeist-extensions/zeitgeist-extensions-0.0.13-r1.ebuild
new file mode 100644
index 000000000000..3e8d300ef94d
--- /dev/null
+++ b/gnome-extra/zeitgeist-extensions/zeitgeist-extensions-0.0.13-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2012 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.1 2012/02/16 19:50:03 jlec Exp $
+
+EAPI=4
+
+PYTHON_DEPEND="2"
+PYTHON_USE_WITH="sqlite"
+
+inherit eutils python
+
+DESCRIPTION="Extensions to the engine such as Teamgeist, Relevancy Providers and Machine Learning Algorithms"
+HOMEPAGE="https://launchpad.net/zeitgeist-extensions/"
+SRC_URI="http://launchpad.net/${PN}/trunk/fts-${PV}/+download/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+LICENSE="GPL-3"
+IUSE="fts geolocation memprofile sqldebug tracker"
+
+RDEPEND="
+ 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=""
+
+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
+}