diff options
author | Sven Wegener <swegener@gentoo.org> | 2008-01-03 18:38:30 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2008-01-03 18:38:30 +0000 |
commit | 23ae9fe30f857d7a9b99231f0e3edd51345bdba9 (patch) | |
tree | 8d545c481fdbb31461f0e4c1b9f76494e26fe5ef /x11-misc/glipper | |
parent | Allow to disable ocamlopt via an useflag (diff) | |
download | gentoo-2-23ae9fe30f857d7a9b99231f0e3edd51345bdba9.tar.gz gentoo-2-23ae9fe30f857d7a9b99231f0e3edd51345bdba9.tar.bz2 gentoo-2-23ae9fe30f857d7a9b99231f0e3edd51345bdba9.zip |
Pull in a patch from upstream that should fix binary data clipboard items. This should fix bug #177461.
(Portage version: 2.1.3.19)
Diffstat (limited to 'x11-misc/glipper')
-rw-r--r-- | x11-misc/glipper/ChangeLog | 11 | ||||
-rw-r--r-- | x11-misc/glipper/files/digest-glipper-1.0-r1 | 3 | ||||
-rw-r--r-- | x11-misc/glipper/files/glipper-1.0-binary-data.patch | 64 | ||||
-rw-r--r-- | x11-misc/glipper/glipper-1.0-r1.ebuild | 51 | ||||
-rw-r--r-- | x11-misc/glipper/glipper-1.0.ebuild | 4 |
5 files changed, 129 insertions, 4 deletions
diff --git a/x11-misc/glipper/ChangeLog b/x11-misc/glipper/ChangeLog index 70c525e79e15..ef9f1b3cb2bb 100644 --- a/x11-misc/glipper/ChangeLog +++ b/x11-misc/glipper/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for x11-misc/glipper -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/glipper/ChangeLog,v 1.9 2007/09/22 18:41:36 swegener Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/glipper/ChangeLog,v 1.10 2008/01/03 18:38:29 swegener Exp $ + +*glipper-1.0-r1 (03 Jan 2008) + + 03 Jan 2008; Sven Wegener <swegener@gentoo.org> + +files/glipper-1.0-binary-data.patch, +glipper-1.0-r1.ebuild: + Pull in a patch from upstream that should fix binary data clipboard items. + This should fix bug #177461. 22 Sep 2007; Sven Wegener <swegener@gentoo.org> -glipper-0.95.1.ebuild, -glipper-0.95.1-r1.ebuild: diff --git a/x11-misc/glipper/files/digest-glipper-1.0-r1 b/x11-misc/glipper/files/digest-glipper-1.0-r1 new file mode 100644 index 000000000000..5bdb5be7ec78 --- /dev/null +++ b/x11-misc/glipper/files/digest-glipper-1.0-r1 @@ -0,0 +1,3 @@ +MD5 95315e62b950877611d4645a0b47e1ba glipper-1.0.tar.bz2 364805 +RMD160 131b1c9e6ab1579b444fca47d5c3858bee8f3aef glipper-1.0.tar.bz2 364805 +SHA256 6581f1ed074a98deafa492c0f4aec834b4733df8f4b6812511937ad31bf15ceb glipper-1.0.tar.bz2 364805 diff --git a/x11-misc/glipper/files/glipper-1.0-binary-data.patch b/x11-misc/glipper/files/glipper-1.0-binary-data.patch new file mode 100644 index 000000000000..8a623a53b790 --- /dev/null +++ b/x11-misc/glipper/files/glipper-1.0-binary-data.patch @@ -0,0 +1,64 @@ +This should fix the bug with Openoffice clipboard items + +Index: glipper/Clipboards.py +=================================================================== +RCS file: /cvsroot/glipper/glipper-ng/glipper/Clipboards.py,v +retrieving revision 1.16 +retrieving revision 1.17 +diff --unified -r1.16 -r1.17 +--- glipper/Clipboards.py 30 Sep 2007 19:10:14 -0000 1.16 ++++ glipper/Clipboards.py 28 Dec 2007 17:03:31 -0000 1.17 +@@ -61,23 +61,39 @@ + + def on_default_clipboard_owner_change(self, clipboard, event): + if self.use_default_clipboard: +- item = clipboard.wait_for_text() +- +- if item != None: +- self.default_clipboard_text = item +- self.emit('new-item', item) +- elif self.default_clipboard_text != None: +- clipboard.set_text(self.default_clipboard_text) ++ text = clipboard.wait_for_text() ++ ++ if text != None: ++ self.default_clipboard_text = text ++ self.default_clipboard_image = None ++ self.emit('new-item', text) ++ return ++ ++ targets = clipboard.wait_for_targets() ++ ++ if targets == None: ++ if self.default_clipboard_text != None: ++ clipboard.set_text(self.default_clipboard_text) ++ elif self.default_clipboard_image != None: ++ clipboard.set_image(self.default_clipboard_image) + + def on_primary_clipboard_owner_change(self, clipboard, event): + if self.use_primary_clipboard: +- item = clipboard.wait_for_text() +- +- if item != None: +- self.primary_clipboard_text = item +- self.emit('new-item', item) +- elif self.primary_clipboard_text != None: +- clipboard.set_text(self.primary_clipboard_text) ++ text = clipboard.wait_for_text() ++ ++ if text != None: ++ self.primary_clipboard_text = text ++ self.primary_clipboard_image = None ++ self.emit('new-item', text) ++ return ++ ++ targets = clipboard.wait_for_targets() ++ ++ if targets == None: ++ if self.primary_clipboard_text != None: ++ clipboard.set_text(self.primary_clipboard_text) ++ elif self.default_clipboard_image != None: ++ clipboard.set_image(self.primary_clipboard_image) + + def on_use_default_clipboard_changed (self, value): + if value is None or value.type != gconf.VALUE_BOOL: diff --git a/x11-misc/glipper/glipper-1.0-r1.ebuild b/x11-misc/glipper/glipper-1.0-r1.ebuild new file mode 100644 index 000000000000..d1ae5a29e2e7 --- /dev/null +++ b/x11-misc/glipper/glipper-1.0-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/glipper/glipper-1.0-r1.ebuild,v 1.1 2008/01/03 18:38:29 swegener Exp $ + +GCONF_DEBUG="no" + +inherit gnome2 python eutils + +DESCRIPTION="GNOME Clipboard Manager" +HOMEPAGE="http://glipper.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=dev-lang/python-2.4 + >=dev-python/pygobject-2.6 + >=dev-python/pygtk-2.6 + >=dev-python/gnome-python-2.10 + >=dev-python/gnome-python-desktop-2.10 + >=dev-python/gnome-python-extras-2.10 + >=gnome-base/gnome-desktop-2.10" +RDEPEND="${DEPEND}" + +DOCS="AUTHORS ChangeLog NEWS" + +src_unpack() { + gnome2_src_unpack + cd "${S}" + + epatch "${FILESDIR}"/${P}-binary-data.patch +} + +src_install() { + gnome2_src_install py_compile=true +} + +pkg_postinst() { + gnome2_pkg_postinst + python_mod_optimize "${ROOT}"/usr/lib*/python*/site-packages/glipper + + elog "Glipper has been completely rewritten as a panel applet. Please remove your" + elog "existing ~/.glipper directory and then add glipper as a new panel applet." +} + +pkg_postrm() { + gnome2_pkg_postrm + python_mod_cleanup +} diff --git a/x11-misc/glipper/glipper-1.0.ebuild b/x11-misc/glipper/glipper-1.0.ebuild index 063a590b5dab..8431a5e96689 100644 --- a/x11-misc/glipper/glipper-1.0.ebuild +++ b/x11-misc/glipper/glipper-1.0.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/glipper/glipper-1.0.ebuild,v 1.5 2007/09/11 19:27:35 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/glipper/glipper-1.0.ebuild,v 1.6 2008/01/03 18:38:29 swegener Exp $ GCONF_DEBUG="no" |