[arch-commits] Commit in meld/trunk (PKGBUILD text_iter.patch)

Jan Steffens heftig at archlinux.org
Thu Nov 12 12:15:29 UTC 2015


    Date: Thursday, November 12, 2015 @ 13:15:29
  Author: heftig
Revision: 250813

fix diff since gtk 3.18.3

Added:
  meld/trunk/text_iter.patch
Modified:
  meld/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   15 ++++++++++++---
 text_iter.patch |   11 +++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-11-12 11:51:09 UTC (rev 250812)
+++ PKGBUILD	2015-11-12 12:15:29 UTC (rev 250813)
@@ -6,7 +6,7 @@
 
 pkgname=meld
 pkgver=3.14.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Visual diff and merge tool'
 url='http://meldmerge.org/'
 license=(GPL)
@@ -16,12 +16,21 @@
 depends=(python2-gobject python2-cairo gtksourceview3 hicolor-icon-theme desktop-file-utils
          gsettings-desktop-schemas)
 optdepends=('python2-dbus: open a new tab in an already running instance')
-source=("http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-${pkgver}.tar.xz")
-sha1sums=('a2db7e96bbd99dc038de22fb5e5a0f94668b76c1')
+source=("http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-${pkgver}.tar.xz"
+        text_iter.patch)
+sha1sums=('a2db7e96bbd99dc038de22fb5e5a0f94668b76c1'
+          'b1820837bfeda67f557a390703b72855d5d78dbf')
 
 # Meld does not support Python 3. The build succeeds, but
 # the main executable checks the version and errors out.
 
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Patch Gtk 3.18.3 API break https://bugzilla.gnome.org/show_bug.cgi?id=757881
+  patch -Np1 -i ../text_iter.patch
+}
+
 build() {
   cd $pkgname-$pkgver
   python2 setup.py build

Added: text_iter.patch
===================================================================
--- text_iter.patch	                        (rev 0)
+++ text_iter.patch	2015-11-12 12:15:29 UTC (rev 250813)
@@ -0,0 +1,11 @@
+--- meld-3.14.1-orig/meld/meldbuffer.py 2015-10-02 22:10:11.000000000 -0400
++++ meld-3.14.1/meld/meldbuffer.py      2015-11-11 20:37:09.412543281 -0500
+@@ -76,6 +76,9 @@
+         self.data.filename = filename
+         self.data.label = label
+ 
++    def get_iter_at_line(self, line):
++        return super(MeldBuffer, self).get_iter_at_line(line)[1]
++
+     def get_iter_at_line_or_eof(self, line):
+         """Return a Gtk.TextIter at the given line, or the end of the buffer.



More information about the arch-commits mailing list