[36893] trunk/dports/editors/vim-app
nox at macports.org
nox at macports.org
Sat May 17 06:47:37 PDT 2008
Revision: 36893
http://trac.macosforge.org/projects/macports/changeset/36893
Author: nox at macports.org
Date: 2008-05-17 06:47:34 -0700 (Sat, 17 May 2008)
Log Message:
-----------
vim-app: Fixed the scroll problem on Leopard.
Modified Paths:
--------------
trunk/dports/editors/vim-app/Portfile
Added Paths:
-----------
trunk/dports/editors/vim-app/files/patch-scroll-leopard.diff
Modified: trunk/dports/editors/vim-app/Portfile
===================================================================
--- trunk/dports/editors/vim-app/Portfile 2008-05-17 10:51:58 UTC (rev 36892)
+++ trunk/dports/editors/vim-app/Portfile 2008-05-17 13:47:34 UTC (rev 36893)
@@ -7,7 +7,7 @@
set vim_version 7.1
set vim_patchlevel 298
version ${vim_version}.${vim_patchlevel}
-revision 1
+revision 2
categories editors
maintainers raimue
description Vim.app is a GUI version of the famous editor vim.
@@ -112,11 +112,6 @@
# allow for Vim.App to open .nfo, .vim, .latex, .tex, .diff files
system "patch -d ${destroot}${appPath}Vim.app/Contents/ -p0 < ${filespath}/patch-Info.plist"
- # copy GVim.app (ppc only)
- if {[variant_isset darwin_ppc]} {
- system "gnutar xvfz ${filespath}/GVim_app.tar.gz -C ${destroot}${appPath}"
- xinstall -m 644 ${workpath}/app.icns ${destroot}${appPath}GVim.app/Contents/Resources/appIcon.icns
- }
}
# general vim variants
@@ -158,8 +153,16 @@
}
platform darwin ppc {
+ post-destroot {
+ system "gnutar xvfz ${filespath}/GVim_app.tar.gz -C ${destroot}${appPath}"
+ xinstall -m 644 ${workpath}/app.icns ${destroot}${appPath}GVim.app/Contents/Resources/appIcon.icns
+ }
}
+platform darwin 9 {
+ patchfiles-append patch-scroll-leopard.diff
+}
+
include serverlist
include patchlist
Added: trunk/dports/editors/vim-app/files/patch-scroll-leopard.diff
===================================================================
--- trunk/dports/editors/vim-app/files/patch-scroll-leopard.diff (rev 0)
+++ trunk/dports/editors/vim-app/files/patch-scroll-leopard.diff 2008-05-17 13:47:34 UTC (rev 36893)
@@ -0,0 +1,40 @@
+Taken from http://groups.google.com/group/vim_mac/browse_thread/thread/4b6fa7c2dddbca9d.
+
+Index: gui_mac.c
+===================================================================
+--- src/gui_mac.c (revision 690)
++++ src/gui_mac.c (working copy)
+@@ -2543,7 +2543,6 @@
+ gui_mac_mouse_wheel(EventHandlerCallRef nextHandler, EventRef theEvent,
+ void *data)
+ {
+- EventRef bogusEvent;
+ Point point;
+ Rect bounds;
+ UInt32 mod;
+@@ -2574,16 +2573,6 @@
+ if (mod & optionKey)
+ vim_mod |= MOUSE_ALT;
+
+- /* post a bogus event to wake up WaitNextEvent */
+- if (noErr != CreateEvent(NULL, kEventClassMouse, kEventMouseMoved, 0,
+- kEventAttributeNone, &bogusEvent))
+- goto bail;
+- if (noErr != PostEventToQueue(GetMainEventQueue(), bogusEvent,
+- kEventPriorityLow))
+- goto bail;
+-
+- ReleaseEvent(bogusEvent);
+-
+ if (noErr == GetWindowBounds(gui.VimWindow, kWindowContentRgn, &bounds))
+ {
+ point.h -= bounds.left;
+@@ -2592,6 +2581,8 @@
+
+ gui_send_mouse_event((delta > 0) ? MOUSE_4 : MOUSE_5,
+ point.h, point.v, FALSE, vim_mod);
++ /* post a bogus event to wake up WaitNextEvent */
++ PostEvent(keyUp, 0);
+
+ return noErr;
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080517/13478b66/attachment-0001.htm
More information about the macports-changes
mailing list