Macvim version ${vim_version}.snapshot${snapshot} - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version ${vim_version}.snapshot${snapshot}

      View the most recent changes for the macvim port at: macvim.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for macvim.
      The raw portfile for macvim ${vim_version}.snapshot${snapshot} is located here:
      http://macvim.darwinports.com/dports/editors/MacVim/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/macvim


      The macvim Portfile 59171 2009-10-10 22:14:29Z raimue macports.org $

      PortSystem 1.0

      Name: MacVim
      set vim_version 7.2
      set snapshot 50
      set gitcommit snapshot-${snapshot}
      Version: ${vim_version}.snapshot${snapshot}
      Category: editors
      Platform: darwin
      Maintainers: raimue
      Description: MacVim is a GUI version of vim for Mac OS X
      Long Description: MacVim is a port of the text editor Vim to Mac OS X that is meant to look better and integrate more seamlessly with the Mac than vim-app.
      Homepage: http://code.google.com/p/macvim

      Master Sites: "http://repo.or.cz/w/MacVim.git?a=snapshot;h=${gitcommit};sf=zip;foo="
      Checksums: md5 ac2bde597bc455e9bbdc13a582647a2d sha1 c58fe52d162e53dcd125180a0138748c3e2d0195 rmd160 8c5fe73de7e0580312d313c3f0bc478fd4b2d5b0
      use_zip yes
      worksrcdir ${name}

      depends_build bin:gnutar:gnutar bin:grep:grep bin:autoconf:autoconf
      depends_lib port:ncurses port:libiconv port:ctags

      # Leave this in for variants adding a patch targeting configure.in
      pre-configure {
      system "cd ${worksrcpath}/src && autoconf"
      }

      configure.args --enable-gui=macvim --without-x --disable-gpm --disable-nls --with-tlib=ncurses --enable-multibyte

      use_parallel_build yes

      post-patch {
      reinplace "s|^# VIM_APP_DIR=/Applications$|VIM_APP_DIR=${applications_dir}|" ${worksrcpath}/src/MacVim/mvim
      }

      destroot {
      copy ${worksrcpath}/src/MacVim/build/Release/MacVim.app ${destroot}${applications_dir}
      copy ${worksrcpath}/src/MacVim/mvim ${destroot}${prefix}/bin

      # Create MacVim vimdiff, view, ex equivalents
      ln -s mvim ${destroot}${prefix}/bin/mvimdiff
      ln -s mvim ${destroot}${prefix}/bin/mview
      # Link as mvimex as bin/mex conflicts with texlive
      ln -s mvim ${destroot}${prefix}/bin/mvimex
      }

      test.run yes

      Variant: big description {Build big feature set} conflicts huge {
      configure.args-append --with-features=big
      }
      Variant: huge description {Build huge feature set} conflicts big {
      configure.args-append --with-features=huge
      }
      Variant: xim description {Build with support for X Input Method} {
      configure.args-append --with-xim
      }

      Variant: perl description {Enable Perl scripting} {
      configure.args-append --enable-perlinterp
      depends_lib-append path:bin/perl:perl5
      }
      Variant: python requires python25 description {Compatibility variant, requires +python25} {}
      Variant: python25 conflicts python26 description {Enable Python scripting} {
      configure.args-append --enable-pythoninterp --with-python=${prefix}/bin/python2.5
      patchfiles-append patch-python.diff
      depends_lib-append port:python25
      }
      Variant: python26 conflicts python25 description {Enable Python scripting} {
      configure.args-append --enable-pythoninterp --with-python=${prefix}/bin/python2.6
      patchfiles-append patch-python.diff
      depends_lib-append port:python26
      }
      Variant: ruby description {Enable Ruby scripting} {
      configure.args-append --enable-rubyinterp
      depends_lib-append port:ruby
      }
      Variant: tcl description {Enable Tcl scripting} {
      configure.args-append --enable-tclinterp
      depends_lib-append port:tcl
      }

      Variant: cscope description {Enable source code browsing with cscope} {
      configure.args-append --enable-cscope
      }

      Variant: nls {
      configure.args-delete --disable-nls
      depends_lib-append port:gettext
      }

      livecheck.type regex
      livecheck.url http://code.google.com/p/macvim/downloads/list
      livecheck.version ${snapshot}
      livecheck.regex MacVim-snapshot-(\\d+)

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/macvim
      % sudo port install macvim
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching macvim
      ---> Verifying checksum for macvim
      ---> Extracting macvim
      ---> Configuring macvim
      ---> Building macvim with target all
      ---> Staging macvim into destroot
      ---> Installing macvim
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using macvim with these commands:
      %  man macvim
      % apropos macvim
      % which macvim
      % locate macvim

     Where to find more information:

    Darwin Ports



    Lightbox this page.