Vim-app version ${vim_version}.${vim_patchlevel} - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    vim-app  most recent diff


    version ${vim_version}.${vim_patchlevel}

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


      The vim-app Portfile 58985 2009-10-08 09:29:53Z raimue macports.org $

      PortSystem 1.0

      Name: vim-app
      set realname vim
      set vim_version 7.2
      set vim_patchlevel 264
      Version: ${vim_version}.${vim_patchlevel}
      Category: editors
      Maintainers: raimue
      Description: Vim.app is a GUI version of the famous editor vim.
      Long Description: This port provides Vim.app, a GUI version of the famous editor vim. Vim is a highly configurable text editor built to enable efficient text editing.
      Homepage: http://www.vim.org/
      Platform: darwin

      use_bzip2 yes

      distfiles [suffix ${realname}-${vim_version}]:vim ${realname}-${vim_version}-extra.tar.gz:extra ${realname}-${vim_version}-lang.tar.gz:extra app-bm.tar.gz:app_aqua doc.tar.gz:doc_aqua

      Checksums: [suffix ${realname}-${vim_version}] md5 f0901284b338e448bfd79ccca0041254 sha1 a4b6641ca528fada71ea77c998a441495ed4984c rmd160 eaff64d0fec09d725addf8de569f508b80a5766e ${realname}-${vim_version}-extra.tar.gz md5 35e04482f07c57221c9a751aaa3b8dac sha1 6a17629093e59958bff336b6c122dea1b8b1b649 rmd160 05976466c8a6c1bd2fb2b1d58eb4613947de07df ${realname}-${vim_version}-lang.tar.gz md5 d8884786979e0e520c112faf2e176f05 sha1 970e0dda7e5b2308cf33488be1ea33d593d951cb rmd160 946bd64fbf030b341cc13bee7101f2c0acb26ce2 app-bm.tar.gz md5 418b9e615a34ae5aad918f5c5a694a44 doc.tar.gz md5 692f7874fc617162d0fe110daf39a98a

      distname ${realname}[strsed ${vim_version} {g/\.//}]
      dist_subdir ${distname}

      Master Sites:-append http://www.douglas.stebila.ca/files/code/vim/app/:app_aqua http://www.douglas.stebila.ca/files/code/vim/doc/:doc_aqua

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

      configure.pre_args --prefix=${applications_dir}
      configure.args --enable-gui=carbon --without-x --disable-gpm --mandir=${prefix}/share/man --with-tlib=ncurses --enable-multibyte

      extract.only [suffix ${realname}-${vim_version}]
      post-extract {
      system "gnutar xvfz ${distpath}/${realname}-${vim_version}-extra.tar.gz -C ${workpath}"
      system "gnutar xvfz ${distpath}/${realname}-${vim_version}-lang.tar.gz -C ${workpath}"
      system "gnutar xvfz ${distpath}/app-bm.tar.gz -C ${workpath}"
      system "gnutar xvfz ${distpath}/doc.tar.gz -C ${workpath}"
      }

      post-patch {
      set features [open ${worksrcpath}/src/feature.h a+]
      puts $features "#define SYS_VIMRC_FILE \"${prefix}/etc/vimrc\""
      close $features
      }

      use_parallel_build yes

      test.run yes

      pre-destroot {
      xinstall -d ${destroot}${applications_dir}
      }

      destroot {
      # copy Vim.app
      file copy ${worksrcpath}/src/Vim.app ${destroot}${applications_dir}
      xinstall -m 644 ${filespath}/vimrc ${filespath}/gvimrc ${destroot}${applications_dir}/Vim.app
      xinstall -m 644 ${workpath}/doc-txt.icns ${destroot}${applications_dir}/Vim.app/Contents/Resources
      xinstall -m 644 ${workpath}/app.icns ${destroot}${applications_dir}/Vim.app/Contents/Resources/gui_mac.icns
      # remove the broken link to 'runtime', copy the folder instead
      set runtimePath "${destroot}${applications_dir}/Vim.app/Contents/Resources/vim/runtime"
      file delete ${runtimePath}
      file copy ${worksrcpath}/runtime ${runtimePath}
      # fix permissions
      foreach f [glob ${runtimePath}/autoload/*.vim] {
      file attributes ${f} -permissions 0644
      }
      # install launchscript
      xinstall -m 755 ${filespath}/gvim.sh ${destroot}/${prefix}/bin/gvim
      reinplace "s| APPPATH |${applications_dir}|g" ${destroot}/${prefix}/bin/gvim

      # allow for Vim.App to open .nfo, .vim, .latex, .tex, .diff files
      system "patch -d ${destroot}${applications_dir}/Vim.app/Contents/ -p0 < ${filespath}/patch-Info.plist.diff"
      }

      # general vim variants

      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

      depends_build-append bin:autoconf:autoconf
      pre-configure {
      system "cd ${worksrcpath}/src && make autoconf"
      }
      }
      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

      depends_build-append bin:autoconf:autoconf
      pre-configure {
      system "cd ${worksrcpath}/src && make autoconf"
      }
      }
      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
      }

      platform darwin powerpc {
      post-destroot {
      system "gnutar xvfz ${filespath}/GVim_app.tar.gz -C ${destroot}${applications_dir}/"
      xinstall -m 644 ${workpath}/app.icns ${destroot}${applications_dir}/Vim.app/Contents/Resources/appIcon.icns
      }
      }

      include serverlist
      include patchlist

      livecheck.type regex
      livecheck.url http://ftp.vim.org/pub/${realname}/patches/${vim_version}/?O=D
      livecheck.regex (${vim_version}\.\\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/vim-app
      % sudo port install vim-app
      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 vim-app
      ---> Verifying checksum for vim-app
      ---> Extracting vim-app
      ---> Configuring vim-app
      ---> Building vim-app with target all
      ---> Staging vim-app into destroot
      ---> Installing vim-app
    - 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 vim-app with these commands:
      %  man vim-app
      % apropos vim-app
      % which vim-app
      % locate vim-app

     Where to find more information:

    Darwin Ports



    Lightbox this page.