pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/mikutter mikutter: pull upstream fix for ticket 11...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dd8a88035c09
branches:  trunk
changeset: 373983:dd8a88035c09
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Sat Jan 13 04:46:39 2018 +0000

description:
mikutter: pull upstream fix for ticket 1137 (errors on image preview).

Bump PKGREVISION.

diffstat:

 net/mikutter/Makefile                                    |   4 +-
 net/mikutter/distinfo                                    |   3 +-
 net/mikutter/patches/patch-core_plugin_openimg_window.rb |  51 ++++++++++++++++
 3 files changed, 55 insertions(+), 3 deletions(-)

diffs (86 lines):

diff -r 40f8def70255 -r dd8a88035c09 net/mikutter/Makefile
--- a/net/mikutter/Makefile     Sat Jan 13 01:09:16 2018 +0000
+++ b/net/mikutter/Makefile     Sat Jan 13 04:46:39 2018 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.151 2018/01/02 02:43:59 tsutsui Exp $
+# $NetBSD: Makefile,v 1.152 2018/01/13 04:46:39 tsutsui Exp $
 #
 
 DISTNAME=      mikutter.3.6.0
-PKGREVISION=   1
+PKGREVISION=   2
 PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME:S/./-/}
 CATEGORIES=    net
 MASTER_SITES=  http://mikutter.hachune.net/bin/
diff -r 40f8def70255 -r dd8a88035c09 net/mikutter/distinfo
--- a/net/mikutter/distinfo     Sat Jan 13 01:09:16 2018 +0000
+++ b/net/mikutter/distinfo     Sat Jan 13 04:46:39 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.135 2017/12/30 05:05:14 tsutsui Exp $
+$NetBSD: distinfo,v 1.136 2018/01/13 04:46:39 tsutsui Exp $
 
 SHA1 (mikutter.3.6.0.tar.gz) = 8dd1b52e8fe00bdc7d1ac1c25c3a8fa16d91ff8c
 RMD160 (mikutter.3.6.0.tar.gz) = 40d493d2660ba3e5af92a522fd4cd03d7949dd14
@@ -7,6 +7,7 @@
 SHA1 (patch-core_mui_gtk__inneruserlist.rb) = 552338b5029ca6236993b2c75f892a2b9fd64d2d
 SHA1 (patch-core_mui_gtk__userlist.rb) = fc7a2d850e7e9ab4d5716c2534f991afbda88a7e
 SHA1 (patch-core_plugin_libnotify_rnotify.rb) = 0bb5630f4411d11ad188c722fb1d14e2d6748d17
+SHA1 (patch-core_plugin_openimg_window.rb) = 436127822c21382a091c4c121ca471bca1fa1fb4
 SHA1 (patch-core_plugin_photo__support_Gemfile) = 754b96024904e2e2f55c83e88fd3c763eecf723c
 SHA1 (patch-core_plugin_photo__support_photo__support.rb) = 182135fc0b46035c343c746ddba091d71cdc81f4
 SHA1 (patch-core_plugin_twitter_mikutwitter_api__shortcuts.rb) = 3742017931e18e4e1c97154b919cf00ddaed474f
diff -r 40f8def70255 -r dd8a88035c09 net/mikutter/patches/patch-core_plugin_openimg_window.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/mikutter/patches/patch-core_plugin_openimg_window.rb  Sat Jan 13 04:46:39 2018 +0000
@@ -0,0 +1,51 @@
+$NetBSD: patch-core_plugin_openimg_window.rb,v 1.1 2018/01/13 04:46:39 tsutsui Exp $
+
+- pull upstream fix
+ https://dev.mikutter.hachune.net/issues/1137
+
+--- core/plugin/openimg/window.rb.orig 2017-12-24 15:00:56.000000000 +0000
++++ core/plugin/openimg/window.rb
+@@ -20,23 +20,28 @@ module Plugin::Openimg
+         if pixbufloader.is_a? GdkPixbuf::PixbufLoader
+           rect = nil
+           pixbufloader.ssc(:area_updated, self) do |_, x, y, width, height|
+-            if rect
+-              rect[:left] = [rect[:left], x].min
+-              rect[:top] = [rect[:top], y].min
+-              rect[:right] = [rect[:right], x+width].max
+-              rect[:bottom] = [rect[:bottom], y+height].max
+-            else
+-              rect = {left: x, top: y, right: x+width, bottom: y+height}
+-              Delayer.new do
+-                progress(pixbufloader.pixbuf,
+-                         x: rect[:left],
+-                         y: rect[:top],
+-                         width: rect[:right] - rect[:left],
+-                         height: rect[:bottom] - rect[:top])
+-                rect = nil
++            atomic do
++              if rect
++                rect[:left] = [rect[:left], x].min
++                rect[:top] = [rect[:top], y].min
++                rect[:right] = [rect[:right], x+width].max
++                rect[:bottom] = [rect[:bottom], y+height].max
++              else
++                rect = {left: x, top: y, right: x+width, bottom: y+height}
++                Delayer.new do
++                  atomic do
++                    progress(pixbufloader.pixbuf,
++                             x: rect[:left],
++                             y: rect[:top],
++                             width: rect[:right] - rect[:left],
++                             height: rect[:bottom] - rect[:top])
++                    rect = nil
++                  end
++                end
+               end
+             end
+-            true end
++            true
++          end
+ 
+           complete_promise.next{
+             progress(pixbufloader.pixbuf, paint: true)



Home | Main Index | Thread Index | Old Index