summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-04-26 17:09:09 +0000
committerJustin Lecher <jlec@gentoo.org>2012-04-26 17:09:09 +0000
commit041f1602e36fc0b201ab309476a4108f4456416b (patch)
tree80a999981f61620a0fa381456c9804fb3d4dc3f8 /gnome-extra/gnome-activity-journal
parentmask sqlite[icu] and remove masks depending on sqlite (diff)
downloadgentoo-2-041f1602e36fc0b201ab309476a4108f4456416b.tar.gz
gentoo-2-041f1602e36fc0b201ab309476a4108f4456416b.tar.bz2
gentoo-2-041f1602e36fc0b201ab309476a4108f4456416b.zip
gnome-extra/gnome-activity-journal: Add compatibility patch for libzg-0.9, https://code.launchpad.net/~manishsinha/gnome-activity-journal/fixes-924988
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
Diffstat (limited to 'gnome-extra/gnome-activity-journal')
-rw-r--r--gnome-extra/gnome-activity-journal/ChangeLog10
-rw-r--r--gnome-extra/gnome-activity-journal/files/gnome-activity-journal-0.8.0-zg-0.9.patch15
-rw-r--r--gnome-extra/gnome-activity-journal/gnome-activity-journal-0.8.0-r2.ebuild68
3 files changed, 92 insertions, 1 deletions
diff --git a/gnome-extra/gnome-activity-journal/ChangeLog b/gnome-extra/gnome-activity-journal/ChangeLog
index 06e06ed74595..022cf4fdd02a 100644
--- a/gnome-extra/gnome-activity-journal/ChangeLog
+++ b/gnome-extra/gnome-activity-journal/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for gnome-extra/gnome-activity-journal
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-activity-journal/ChangeLog,v 1.6 2012/02/10 23:45:23 tetromino Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-activity-journal/ChangeLog,v 1.7 2012/04/26 17:09:09 jlec Exp $
+
+*gnome-activity-journal-0.8.0-r2 (26 Apr 2012)
+
+ 26 Apr 2012; Justin Lecher <jlec@gentoo.org>
+ +gnome-activity-journal-0.8.0-r2.ebuild,
+ +files/gnome-activity-journal-0.8.0-zg-0.9.patch:
+ Add compatibility patch for libzg-0.9,
+ https://code.launchpad.net/~manishsinha/gnome-activity-journal/fixes-924988
10 Feb 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
gnome-activity-journal-0.8.0-r1.ebuild:
diff --git a/gnome-extra/gnome-activity-journal/files/gnome-activity-journal-0.8.0-zg-0.9.patch b/gnome-extra/gnome-activity-journal/files/gnome-activity-journal-0.8.0-zg-0.9.patch
new file mode 100644
index 000000000000..73e87e0b0713
--- /dev/null
+++ b/gnome-extra/gnome-activity-journal/files/gnome-activity-journal-0.8.0-zg-0.9.patch
@@ -0,0 +1,15 @@
+--- a/src/external.py
++++ b/src/external.py
+@@ -41,7 +41,11 @@
+ _restarted = False
+
+ def __init__(self):
+- self._extension = CLIENT._iface.get_extension("Log", "journal/activity")
++ if CLIENT.get_version() >= [0, 8, 99]:
++ self._extension = CLIENT._iface.get_extension("Histogram", "journal/activity")
++ else:
++ self._extension = CLIENT._iface.get_extension("Log", "journal/activity")
++
+
+ def _show_error(self):
+ dialog = gtk.MessageDialog(
diff --git a/gnome-extra/gnome-activity-journal/gnome-activity-journal-0.8.0-r2.ebuild b/gnome-extra/gnome-activity-journal/gnome-activity-journal-0.8.0-r2.ebuild
new file mode 100644
index 000000000000..ae1d3a4f9fa1
--- /dev/null
+++ b/gnome-extra/gnome-activity-journal/gnome-activity-journal-0.8.0-r2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-activity-journal/gnome-activity-journal-0.8.0-r2.ebuild,v 1.1 2012/04/26 17:09:09 jlec Exp $
+
+EAPI=4
+
+PYTHON_DEPEND="2"
+
+inherit eutils gnome2 distutils gnome2-utils versionator
+
+DIR_PV=$(get_version_component_range 1-2)
+
+DESCRIPTION="Tool for easily browsing and finding files on your computer"
+HOMEPAGE="https://launchpad.net/gnome-activity-journal/"
+SRC_URI="http://launchpad.net/gnome-activity-journal/${DIR_PV}/${PV}/+download/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-3 LGPL-3"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="
+ dev-python/dbus-python
+ dev-python/libgnome-python
+ dev-python/gconf-python
+ dev-python/gst-python
+ dev-python/pycairo
+ dev-python/pygobject:2
+ dev-python/pygtk:2
+ dev-python/pyxdg
+ gnome-extra/zeitgeist
+ sys-apps/dbus"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ dev-python/python-distutils-extra"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_configure() { :; }
+
+pkg_preinst() {
+ gnome2_pkg_preinst
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-zg-0.9.patch
+ distutils_src_prepare
+}
+
+src_install() {
+ distutils_src_install
+ python_convert_shebangs -r 2 "${D}"
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+ python_mod_optimize /usr/share/gnome-activity-journal
+ gnome2_pkg_postinst
+}
+
+pkg_postrm() {
+ distutils_pkg_postrm
+ python_mod_cleanup /usr/share/gnome-activity-journal
+ gnome2_pkg_postrm
+}