Ticket #10678: vim.patch

File vim.patch, 5.3 KB (added by erickt@…, 18 years ago)

patch to update vim's Portfile

  • dports/editors/vim/files/gvim.sh

     
    11#!/bin/sh
    2 # $Id: gvim.sh,v 1.1 2004/07/20 18:55:50 rshaw Exp $
    32#
    4 # You should be able to start Vim from the command line by typing
     3# This shell script passes all its arguments to the binary inside the Vim.app
     4# application bundle.  If you make links to this script as view, gvim, etc.,
     5# then it will peek at the name used to call it and set options appropriately.
    56#
    6 #       % gvim <arguments>
    7 #
    8 # Note that this will start a new instance of Vim.  As of May 2003, the
    9 # Carbon version of Vim does not support the --remote option.
    10 #
    11 /Applications/DarwinPorts/Vim/Vim.app/Contents/MacOS/Vim -g "$@" &
     7# Based on a script by Wout Mertens and suggestions from Laurent Bihanic.
     8# This version is the fault of Benji Fisher, 16 May 2005.
    129
     10# First, check "All the Usual Suspects" for the location of the Vim.app bundle.
     11# You can short-circuit this by setting the VIM_APP_DIR environment variable
     12# or by un-commenting and editing the following line:
     13# VIM_APP_DIR=/Applications
     14
     15binary="/Applications/DarwinPorts/Vim/Vim.app/Contents/MacOS/Vim"
     16
     17# Next, peek at the name used to invoke this script, and set options
     18# accordingly.
     19
     20name="`basename "$0"`"
     21gui=
     22opts=
     23
     24# GUI mode, implies forking
     25case "$name" in g*|rg*) gui=true ;; esac
     26
     27# Restricted mode
     28case "$name" in r*) opts="$opts -Z";; esac
     29
     30# vimdiff and view
     31case "$name" in
     32        *vimdiff)
     33                opts="$opts -dO"
     34                ;;
     35        *view)
     36                opts="$opts -R"
     37                ;;
     38esac
     39
     40# Last step:  fire up vim.
     41# GUI mode will always create a new Vim instance, because Vim can't have
     42# more than one graphic window yet.
     43# The program should fork by default when started in GUI mode, but it does
     44# not; we work around this when this script is invoked as "gvim" or "rgview"
     45# etc., but not when it is invoked as "vim -g".
     46if [ "$gui" ]; then
     47        # Note: this isn't perfect, because any error output goes to the
     48        # terminal instead of the console log.
     49        # But if you use open instead, you will need to fully qualify the
     50        # path names for any filenames you specify, which is hard.
     51        exec "$binary" -g $opts ${1:+"$@"} &
     52else
     53        exec "$binary" $opts ${1:+"$@"}
     54fi
  • dports/editors/vim/Portfile

     
    33
    44name                    vim
    55set vim_version         7.0
    6 set vim_patchlevel      66
    7 revision                0
     6set vim_patchlevel      91
     7revision                1
    88version                 ${vim_version}.${vim_patchlevel}
    99categories              editors
    1010maintainers             mij@macports.org
  • dports/editors/vim/patch_checksums

     
    6565                    7.0.063 sha1 a9e4ebab3c86f09eb1ed2f9450090f33f5a3429e \
    6666                    7.0.064 sha1 bf8dcf33d73ddadf7847223016669f721dc80801 \
    6767                    7.0.065 sha1 daa8838720fff490ea1d43314d46ca21d17a1ddf \
    68                     7.0.066 sha1 d7bbfbb053ff26c034bd644e0f22f7a345e21433
     68                    7.0.066 sha1 d7bbfbb053ff26c034bd644e0f22f7a345e21433 \
     69                    7.0.067 sha1 40165a2e5a73f031a26292a75faab833de4cd9f8 \
     70                    7.0.068 sha1 20313caa1534e3679b696a34868949aa26b66c7e \
     71                    7.0.069 sha1 132a0fd1025d64d4dd2cd3f1841bb3e4729326c7 \
     72                    7.0.070 sha1 103f0dcfba192df8e15fe7004e18ff38d083021e \
     73                    7.0.070 sha1 103f0dcfba192df8e15fe7004e18ff38d083021e \
     74                    7.0.071 sha1 99db83541d38661a1c57aaa4a0810dbf3236b8c6 \
     75                    7.0.072 sha1 3898b25c90e0c2d55799ec5dd00c62f4fa47e58c \
     76                    7.0.073 sha1 01c43abcf3eed62807393e94b974f854fb87e466 \
     77                    7.0.074 sha1 6b223ce82ef9d6f6e9537b80950d8d7a2749fff5 \
     78                    7.0.075 sha1 544dbc027aac36ac21e85564b0cedaeb647488be \
     79                    7.0.076 sha1 fa99c657acd2840d37992d51f876fc462da3bbb1 \
     80                    7.0.077 sha1 c763a340ea1991717a120ef19e887de9692969b3 \
     81                    7.0.078 sha1 2484e671efdaa06ed2a37120da50c5742d90fcaf \
     82                    7.0.079 sha1 ba6cd607e4aa4e03e78e411b84de4a798ea89f91 \
     83                    7.0.080 sha1 644e42b686fccf512d86f7f422ce78a41282fcb6 \
     84                    7.0.080 sha1 644e42b686fccf512d86f7f422ce78a41282fcb6 \
     85                    7.0.081 sha1 b252f6d502d5d21dc8311ab424862c591fbbbe83 \
     86                    7.0.082 sha1 57a904f24d9b2852ab697dc377914ac763729378 \
     87                    7.0.083 sha1 41cd60c9d34b930ae1b6b8194e8520f27e1a0934 \
     88                    7.0.084 sha1 8b5f67e9b45f20ede1c02a352a54f245261a496c \
     89                    7.0.085 sha1 1b7206852a6351771d9b390bac7d6ed2a245adc3 \
     90                    7.0.086 sha1 d0117047eac935cf872a80ee23ec4b7e8476228c \
     91                    7.0.087 sha1 31f7708e4753126d7841984014dcccb269fba5ab \
     92                    7.0.088 sha1 79e9269cdb20a83ef0e94684d1e20b31c2c0dc93 \
     93                    7.0.089 sha1 2fba154227b9b0e59ad6622d7540c7c65810a854 \
     94                    7.0.090 sha1 903c0ca43575f4ceb5674e23d6e227d3b5022a36 \
     95                    7.0.091 sha1 05433075df261adef6ecbfcefaaed1782f050539