<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[19516] trunk/dports/editors/vim</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>19516</dd>
<dt>Author</dt> <dd>mij@macports.org</dd>
<dt>Date</dt> <dd>2006-09-13 08:43:15 -0700 (Wed, 13 Sep 2006)</dd>
</dl>
<h3>Log Message</h3>
<pre>Update to version 7.0.91 and use a better gvim shell script.
Bug #:                10678
Submitted by:        erickt</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportseditorsvimPortfile">trunk/dports/editors/vim/Portfile</a></li>
<li><a href="#trunkdportseditorsvimfilesgvimsh">trunk/dports/editors/vim/files/gvim.sh</a></li>
<li><a href="#trunkdportseditorsvimpatch_checksums">trunk/dports/editors/vim/patch_checksums</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkdportseditorsvimfilesgvim_appsh">trunk/dports/editors/vim/files/gvim_app.sh</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportseditorsvimPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/editors/vim/Portfile (19515 => 19516)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/editors/vim/Portfile        2006-09-13 07:48:18 UTC (rev 19515)
+++ trunk/dports/editors/vim/Portfile        2006-09-13 15:43:15 UTC (rev 19516)
</span><span class="lines">@@ -3,8 +3,7 @@
</span><span class="cx">
</span><span class="cx"> name                        vim
</span><span class="cx"> set vim_version                7.0
</span><del>-set vim_patchlevel        66
-revision                 0
</del><ins>+set vim_patchlevel        91
</ins><span class="cx"> version                        ${vim_version}.${vim_patchlevel}
</span><span class="cx"> categories                editors
</span><span class="cx"> maintainers                mij@macports.org
</span><span class="lines">@@ -14,11 +13,12 @@
</span><span class="cx"> homepage                http://www.vim.org/
</span><span class="cx"> platforms                darwin freebsd
</span><span class="cx">
</span><del>-distfiles        ${name}-${vim_version}.tar.bz2:vim \
- ${name}-${vim_version}-extra.tar.gz:extra \
- ${name}-${vim_version}-lang.tar.gz:extra
-use_bzip2 yes
</del><ins>+distfiles                ${name}-${vim_version}.tar.bz2:vim \
+                        ${name}-${vim_version}-extra.tar.gz:extra \
+                        ${name}-${vim_version}-lang.tar.gz:extra
</ins><span class="cx">
</span><ins>+use_bzip2                yes
+
</ins><span class="cx"> master_sites ftp://ftp.vim.org/pub/vim/unix/:vim \
</span><span class="cx"> ftp://ftp.us.vim.org/pub/vim/unix/:vim \
</span><span class="cx"> ftp://ftp2.us.vim.org/pub/vim/unix/:vim \
</span></span></pre></div>
<a id="trunkdportseditorsvimfilesgvimsh"></a>
<div class="modfile"><h4>Modified: trunk/dports/editors/vim/files/gvim.sh (19515 => 19516)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/editors/vim/files/gvim.sh        2006-09-13 07:48:18 UTC (rev 19515)
+++ trunk/dports/editors/vim/files/gvim.sh        2006-09-13 15:43:15 UTC (rev 19516)
</span><span class="lines">@@ -1,12 +1,54 @@
</span><span class="cx"> #!/bin/sh
</span><del>-# $Id: gvim.sh,v 1.1 2004/07/20 18:55:50 rshaw Exp $
</del><span class="cx"> #
</span><del>-# You should be able to start Vim from the command line by typing
</del><ins>+# This shell script passes all its arguments to the binary inside the Vim.app
+# application bundle. If you make links to this script as view, gvim, etc.,
+# then it will peek at the name used to call it and set options appropriately.
</ins><span class="cx"> #
</span><del>-#        % gvim <arguments>
-#
-# Note that this will start a new instance of Vim. As of May 2003, the
-# Carbon version of Vim does not support the --remote option.
-#
-/Applications/DarwinPorts/Vim/Vim.app/Contents/MacOS/Vim -g "$@" &
</del><ins>+# Based on a script by Wout Mertens and suggestions from Laurent Bihanic.
+# This version is the fault of Benji Fisher, 16 May 2005.
</ins><span class="cx">
</span><ins>+# First, check "All the Usual Suspects" for the location of the Vim.app bundle.
+# You can short-circuit this by setting the VIM_APP_DIR environment variable
+# or by un-commenting and editing the following line:
+# VIM_APP_DIR=/Applications
+
+binary="/Applications/DarwinPorts/Vim/Vim.app/Contents/MacOS/Vim"
+
+# Next, peek at the name used to invoke this script, and set options
+# accordingly.
+
+name="`basename "$0"`"
+gui=
+opts=
+
+# GUI mode, implies forking
+case "$name" in g*|rg*) gui=true ;; esac
+
+# Restricted mode
+case "$name" in r*) opts="$opts -Z";; esac
+
+# vimdiff and view
+case "$name" in
+        *vimdiff)
+                opts="$opts -dO"
+                ;
+        *view)
+                opts="$opts -R"
+                ;
+esac
+
+# Last step: fire up vim.
+# GUI mode will always create a new Vim instance, because Vim can't have
+# more than one graphic window yet.
+# The program should fork by default when started in GUI mode, but it does
+# not; we work around this when this script is invoked as "gvim" or "rgview"
+# etc., but not when it is invoked as "vim -g".
+if [ "$gui" ]; then
+        # Note: this isn't perfect, because any error output goes to the
+        # terminal instead of the console log.
+        # But if you use open instead, you will need to fully qualify the
+        # path names for any filenames you specify, which is hard.
+        exec "$binary" -g $opts ${1:+"$@"} &
+else
+        exec "$binary" $opts ${1:+"$@"}
+fi
</ins></span></pre></div>
<a id="trunkdportseditorsvimfilesgvim_appsh"></a>
<div class="delfile"><h4>Deleted: trunk/dports/editors/vim/files/gvim_app.sh (19515 => 19516)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/editors/vim/files/gvim_app.sh        2006-09-13 07:48:18 UTC (rev 19515)
+++ trunk/dports/editors/vim/files/gvim_app.sh        2006-09-13 15:43:15 UTC (rev 19516)
</span><span class="lines">@@ -1,20 +0,0 @@
</span><del>-#!/bin/sh
-# $Id: gvim_app.sh,v 1.1 2004/07/20 18:55:50 rshaw Exp $
-# Script used to create GVim.app application using the Platypus
-# application builder.
-#
-# The GVim.app included here was built using Platypus version 2.2 with
-# the following settings:
-# App Name: GVim
-# Script Type: Shell
-# Script Path: /path/to/dports/editors/vim/files/gvim_app.sh
-# Output: None
-# Advanced Options - Is droppable: Enabled
-#
-# If first arg is the application path, shift it off, not needed
-case "$1" in
-        */GVim.app) shift ;;
-esac
-# Start Vim in GUI mode in the background
-/Applications/DarwinPorts/Vim/Vim.app/Contents/MacOS/Vim -g "$@" &
-
</del></span></pre></div>
<a id="trunkdportseditorsvimpatch_checksums"></a>
<div class="modfile"><h4>Modified: trunk/dports/editors/vim/patch_checksums (19515 => 19516)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/editors/vim/patch_checksums        2006-09-13 07:48:18 UTC (rev 19515)
+++ trunk/dports/editors/vim/patch_checksums        2006-09-13 15:43:15 UTC (rev 19516)
</span><span class="lines">@@ -65,4 +65,31 @@
</span><span class="cx"> 7.0.063 sha1 a9e4ebab3c86f09eb1ed2f9450090f33f5a3429e \
</span><span class="cx"> 7.0.064 sha1 bf8dcf33d73ddadf7847223016669f721dc80801 \
</span><span class="cx"> 7.0.065 sha1 daa8838720fff490ea1d43314d46ca21d17a1ddf \
</span><del>- 7.0.066 sha1 d7bbfbb053ff26c034bd644e0f22f7a345e21433
</del><ins>+ 7.0.066 sha1 d7bbfbb053ff26c034bd644e0f22f7a345e21433 \
+ 7.0.067 sha1 40165a2e5a73f031a26292a75faab833de4cd9f8 \
+ 7.0.068 sha1 20313caa1534e3679b696a34868949aa26b66c7e \
+ 7.0.069 sha1 132a0fd1025d64d4dd2cd3f1841bb3e4729326c7 \
+ 7.0.070 sha1 103f0dcfba192df8e15fe7004e18ff38d083021e \
+ 7.0.070 sha1 103f0dcfba192df8e15fe7004e18ff38d083021e \
+ 7.0.071 sha1 99db83541d38661a1c57aaa4a0810dbf3236b8c6 \
+ 7.0.072 sha1 3898b25c90e0c2d55799ec5dd00c62f4fa47e58c \
+ 7.0.073 sha1 01c43abcf3eed62807393e94b974f854fb87e466 \
+ 7.0.074 sha1 6b223ce82ef9d6f6e9537b80950d8d7a2749fff5 \
+ 7.0.075 sha1 544dbc027aac36ac21e85564b0cedaeb647488be \
+ 7.0.076 sha1 fa99c657acd2840d37992d51f876fc462da3bbb1 \
+ 7.0.077 sha1 c763a340ea1991717a120ef19e887de9692969b3 \
+ 7.0.078 sha1 2484e671efdaa06ed2a37120da50c5742d90fcaf \
+ 7.0.079 sha1 ba6cd607e4aa4e03e78e411b84de4a798ea89f91 \
+ 7.0.080 sha1 644e42b686fccf512d86f7f422ce78a41282fcb6 \
+ 7.0.080 sha1 644e42b686fccf512d86f7f422ce78a41282fcb6 \
+ 7.0.081 sha1 b252f6d502d5d21dc8311ab424862c591fbbbe83 \
+ 7.0.082 sha1 57a904f24d9b2852ab697dc377914ac763729378 \
+ 7.0.083 sha1 41cd60c9d34b930ae1b6b8194e8520f27e1a0934 \
+ 7.0.084 sha1 8b5f67e9b45f20ede1c02a352a54f245261a496c \
+ 7.0.085 sha1 1b7206852a6351771d9b390bac7d6ed2a245adc3 \
+ 7.0.086 sha1 d0117047eac935cf872a80ee23ec4b7e8476228c \
+ 7.0.087 sha1 31f7708e4753126d7841984014dcccb269fba5ab \
+ 7.0.088 sha1 79e9269cdb20a83ef0e94684d1e20b31c2c0dc93 \
+ 7.0.089 sha1 2fba154227b9b0e59ad6622d7540c7c65810a854 \
+ 7.0.090 sha1 903c0ca43575f4ceb5674e23d6e227d3b5022a36 \
+ 7.0.091 sha1 05433075df261adef6ecbfcefaaed1782f050539
</ins></span></pre>
</div>
</div>
</body>
</html>