summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Proschofsky <suka@gentoo.org>2012-05-20 09:05:16 +0000
committerAndreas Proschofsky <suka@gentoo.org>2012-05-20 09:05:16 +0000
commit2e15715a054752771ecab10b46724060fe54abac (patch)
tree43190e84185a73dac2988d9b2eef0cd83ff5dc58 /gnome-extra/gnome-documents
parentsushi dev-release bump (diff)
downloadsuka-2e15715a054752771ecab10b46724060fe54abac.tar.gz
suka-2e15715a054752771ecab10b46724060fe54abac.tar.bz2
suka-2e15715a054752771ecab10b46724060fe54abac.zip
dev-buil of gnome-document, plus a patch to increase search speed in the gnome shell overlay
svn path=/; revision=333
Diffstat (limited to 'gnome-extra/gnome-documents')
-rw-r--r--gnome-extra/gnome-documents/Manifest3
-rw-r--r--gnome-extra/gnome-documents/files/gnome-documents-searchspeed.patch58
-rw-r--r--gnome-extra/gnome-documents/gnome-documents-0.5.1.ebuild60
3 files changed, 121 insertions, 0 deletions
diff --git a/gnome-extra/gnome-documents/Manifest b/gnome-extra/gnome-documents/Manifest
new file mode 100644
index 0000000..0272e27
--- /dev/null
+++ b/gnome-extra/gnome-documents/Manifest
@@ -0,0 +1,3 @@
+AUX gnome-documents-searchspeed.patch 1751 RMD160 037a37c01ba10fc0159b2bb3bd6d1bdeee994d61 SHA1 4c01180154e43d798a547b46950c926f5f17227b SHA256 97641b91b285f57b5ae6f36ece1b5469074c6909c74b8c9aa3c3563aa3264c77
+DIST gnome-documents-0.5.1.tar.xz 499924 RMD160 eec24573613984a585a85484b501788bf38061d4 SHA1 05346eb25226cc7b29661059497ecbca68ee5cc8 SHA256 c98496a6142732785dbec35c70c01bdda0ab93c801f91e402ccb276281c54a8d
+EBUILD gnome-documents-0.5.1.ebuild 1382 RMD160 73dac3b9d59bf14c88c102a28caf5af08c69aba9 SHA1 aa60b557a040e0f5129690d9df21ad7287c882b1 SHA256 92206fb1e0afec65c26041c54b95b916d790522c3b09ab94db488a1d85c488c3
diff --git a/gnome-extra/gnome-documents/files/gnome-documents-searchspeed.patch b/gnome-extra/gnome-documents/files/gnome-documents-searchspeed.patch
new file mode 100644
index 0000000..014c2c1
--- /dev/null
+++ b/gnome-extra/gnome-documents/files/gnome-documents-searchspeed.patch
@@ -0,0 +1,58 @@
+From 0596135f44b1edaaea6dd7398d109cd3662efa88 Mon Sep 17 00:00:00 2001
+From: "Owen W. Taylor" <otaylor@fishsoup.net>
+Date: Mon, 26 Mar 2012 17:47:45 -0400
+Subject: [PATCH] FTS: proof of concept patch
+
+https://bugzilla.gnome.org/show_bug.cgi?id=672690
+---
+ src/query.js | 11 +++++++++--
+ src/searchbar.js | 12 ++++++++++++
+ 2 files changed, 21 insertions(+), 2 deletions(-)
+
+diff --git a/src/query.js b/src/query.js
+index 7596512..0e91131 100644
+--- a/src/query.js
++++ b/src/query.js
+@@ -140,8 +140,15 @@ QueryBuilder.prototype = {
+
+ _buildQueryInternal: function(global, flags) {
+ let globalSparql =
+- 'WHERE { ?urn a rdfs:Resource ' +
+- this._buildOptional();
++ 'WHERE { ?urn a rdfs:Resource ';
++
++ if ((flags & QueryFlags.UNFILTERED) == 0) {
++ let ftsclause = Global.searchMatchManager.getFTS();
++ if (ftsclause != null)
++ globalSparql += '; ' + ftsclause + ' ';
++ }
++
++ globalSparql += this._buildOptional();
+
+ if (global) {
+ if ((flags & QueryFlags.UNFILTERED) == 0)
+diff --git a/src/searchbar.js b/src/searchbar.js
+index 89c1b8b..a979074 100644
+--- a/src/searchbar.js
++++ b/src/searchbar.js
+@@ -216,6 +216,18 @@ SearchMatchManager.prototype = {
+ this.setActiveItemById(SearchMatchStock.ALL);
+ },
+
++ getFTS: function() {
++ let terms = Global.searchController.getTerms();
++ if (terms.length == 0 || (terms.length == 1 && terms[0] == ''))
++ return null;
++
++ let starterms = [];
++ for (let i = 0; i < terms.length; i++)
++ starterms.push(terms[i] + '*');
++
++ return 'fts:match "' + starterms.join(' ') + '"';
++ },
++
+ getFilter: function() {
+ let terms = Global.searchController.getTerms();
+ let filters = [];
+--
+1.7.9.3 \ No newline at end of file
diff --git a/gnome-extra/gnome-documents/gnome-documents-0.5.1.ebuild b/gnome-extra/gnome-documents/gnome-documents-0.5.1.ebuild
new file mode 100644
index 0000000..226b1fd
--- /dev/null
+++ b/gnome-extra/gnome-documents/gnome-documents-0.5.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+
+inherit gnome2 eutils
+if [[ ${PV} = 9999 ]]; then
+ inherit gnome2-live
+fi
+
+DESCRIPTION="GNOME document manager"
+HOMEPAGE="https://live.gnome.org/Design/Apps/Documents"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+if [[ ${PV} = 9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# Need gdk-pixbuf-2.25 for gdk_pixbuf_get_pixels_with_length
+COMMON_DEPEND="
+ >=app-misc/tracker-0.13.1
+ >=app-text/evince-3.3.0[introspection]
+ dev-libs/gjs
+ >=dev-libs/glib-2.31.6:2
+ >=dev-libs/gobject-introspection-1.31.6
+ >=dev-libs/libgdata-0.11.0[introspection]
+ gnome-base/gnome-desktop:3
+ >=media-libs/clutter-gtk-1.0.2:1.0[introspection]
+ >=net-libs/gnome-online-accounts-3.2.0
+ net-libs/liboauth
+ net-libs/libsoup:2.4
+ >=x11-libs/gdk-pixbuf-2.25:2[introspection]
+ >=x11-libs/gtk+-3.3.6:3[introspection]
+ x11-libs/pango[introspection]"
+RDEPEND="${COMMON_DEPEND}
+ media-libs/clutter[introspection]
+ sys-apps/dbus
+ x11-themes/gnome-icon-theme-symbolic"
+DEPEND="${COMMON_DEPEND}
+ >=dev-util/intltool-0.40
+ >=sys-devel/gettext-0.17
+ virtual/pkgconfig"
+
+pkg_setup() {
+ DOCS="AUTHORS NEWS README TODO"
+ G2CONF="${G2CONF} --disable-schemas-compile"
+}
+
+src_prepare() {
+ gnome2_src_prepare
+
+ epatch ${FILESDIR}/${PN}-searchspeed.patch
+}