# $Id: Portfile 49226 2009-04-05 23:02:50Z raimue@macports.org $ PortSystem 1.0 name MacVim set vim_version 7.2 set snapshot 44 set gitcommit baf35cf73329e4676833ab9022c97f310d0134c8 version ${vim_version}.snapshot${snapshot} categories editors platforms 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 141291d39fe951931b318c34aa49f42f \ sha1 ea77f47d098017357e3e3d2c7aee9e498e6751a8 \ rmd160 63ac0431d43ce6c72b6ec53b7c032b0d60c1ff16 use_zip yes worksrcdir MacVim/src depends_build bin:gnutar:gnutar \ bin:grep:grep depends_lib port:ncurses \ port:libiconv \ port:ctags patchfiles patch-configure.diff 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}/MacVim/mvim } post-build { system "cd ${worksrcpath}/MacVim && xcodebuild" } # Can be removed once MacPorts 1.7.1 is released pre-destroot { xinstall -d ${destroot}${applications_dir} } destroot { copy ${worksrcpath}/MacVim/build/Release/MacVim.app ${destroot}${applications_dir} copy ${worksrcpath}/MacVim/mvim ${destroot}${prefix}/bin } 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 description {Enable Python scripting} { configure.args-append --enable-pythoninterp depends_lib-append port:python25 } 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.check regex livecheck.url http://code.google.com/p/macvim/downloads/list livecheck.version ${snapshot} livecheck.regex MacVim-snapshot-(\\d+)