[19516] trunk/dports/editors/vim

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 13 08:43:18 PDT 2006


Revision: 19516
Author:   mij at macports.org
Date:     2006-09-13 08:43:15 -0700 (Wed, 13 Sep 2006)

Log Message:
-----------
Update to version 7.0.91 and use a better gvim shell script.

Bug #:		10678
Submitted by:	erickt

Modified Paths:
--------------
    trunk/dports/editors/vim/Portfile
    trunk/dports/editors/vim/files/gvim.sh
    trunk/dports/editors/vim/patch_checksums

Removed Paths:
-------------
    trunk/dports/editors/vim/files/gvim_app.sh

Modified: trunk/dports/editors/vim/Portfile
===================================================================
--- 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)
@@ -3,8 +3,7 @@
 
 name			vim
 set vim_version		7.0
-set vim_patchlevel	66
-revision 		0
+set vim_patchlevel	91
 version			${vim_version}.${vim_patchlevel}
 categories		editors
 maintainers		mij at macports.org
@@ -14,11 +13,12 @@
 homepage		http://www.vim.org/
 platforms		darwin freebsd
 
-distfiles	${name}-${vim_version}.tar.bz2:vim \
-            ${name}-${vim_version}-extra.tar.gz:extra \
-            ${name}-${vim_version}-lang.tar.gz:extra
-use_bzip2   yes
+distfiles		${name}-${vim_version}.tar.bz2:vim \
+			${name}-${vim_version}-extra.tar.gz:extra \
+			${name}-${vim_version}-lang.tar.gz:extra
 
+use_bzip2		yes
+
 master_sites    ftp://ftp.vim.org/pub/vim/unix/:vim \
                 ftp://ftp.us.vim.org/pub/vim/unix/:vim \
                 ftp://ftp2.us.vim.org/pub/vim/unix/:vim \

Modified: trunk/dports/editors/vim/files/gvim.sh
===================================================================
--- 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)
@@ -1,12 +1,54 @@
 #!/bin/sh
-# $Id: gvim.sh,v 1.1 2004/07/20 18:55:50 rshaw Exp $
 #
-# You should be able to start Vim from the command line by typing
+# 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.
 #
-#	% 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 "$@" &
+# Based on a script by Wout Mertens and suggestions from Laurent Bihanic.
+# This version is the fault of Benji Fisher, 16 May 2005.
 
+# 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

Deleted: trunk/dports/editors/vim/files/gvim_app.sh
===================================================================
--- 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)
@@ -1,20 +0,0 @@
-#!/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 "$@" &
-

Modified: trunk/dports/editors/vim/patch_checksums
===================================================================
--- 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)
@@ -65,4 +65,31 @@
                     7.0.063 sha1 a9e4ebab3c86f09eb1ed2f9450090f33f5a3429e \
                     7.0.064 sha1 bf8dcf33d73ddadf7847223016669f721dc80801 \
                     7.0.065 sha1 daa8838720fff490ea1d43314d46ca21d17a1ddf \
-                    7.0.066 sha1 d7bbfbb053ff26c034bd644e0f22f7a345e21433
+                    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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20060913/a9f0510c/attachment.html


More information about the macports-changes mailing list