# $Id$ PortSystem 1.0 name macvim version 7.2.148 revision 0 categories editors platforms darwin maintainers nomaintainer description MacVim is a port of the text editor Vim to Mac OS X. long_description MacVim supports multiple windows with tabbed editing and a host of other features. \ MacVim brings you the full power of Vim to Mac OS X. homepage http://code.google.com/p/macvim/ set gittag snapshot-44-kaoriya distname KaoriYa-${gittag} use_zip yes checksums \ ${distname}.zip sha1 884ba1af08e0478fa7ce9541d3e367a690f349c3 master_sites \ "http://repo.or.cz/w/MacVim/KaoriYa.git?a=snapshot;h=${gittag};sf=zip&" worksrcdir KaoriYa/src extract.only ${distname}.zip depends_lib port:cmigemo \ port:gettext \ port:libiconv \ port:ncurses configure.pre_args --prefix=${applications_dir} configure.args --enable-gui=macvim \ --without-x \ --disable-gpm \ --with-features=huge \ --enable-multibyte \ --with-tlib=ncurses configure.cppflags -I${prefix}/include configure.ldflags -L${prefix}/lib use_parallel_build yes variant perl description {Enable Perl scripting} { configure.args-append --enable-perlinterp depends_lib-append bin:perl:perl5.8 } variant python description {Enable Python scripting} { configure.args-append --enable-pythoninterp depends_lib-append bin:python:python25 } variant ruby description {Enable Ruby scripting} { configure.args-append --enable-rubyinterp configure.env-append ARCHFLAGS="-L${prefix}/lib" depends_lib-append bin:ruby:ruby } variant tcl description {Enable Tcl scripting} { configure.args-append --enable-tclinterp depends_lib-append bin:tclsh:tcl } variant cscope description {Enable source code browsing with cscope} { configure.args-append --enable-cscope } variant universal { configure.args-append --with-mac-arch=both } post-patch { reinplace \ "s|^# VIM_APP_DIR=/Applications$|VIM_APP_DIR=${applications_dir}|" \ ${worksrcpath}/MacVim/mvim } pre-configure { system "make autoconf" } post-build { if {[variant_isset universal]} { set xcodeconfig Universal } else { set xcodeconfig Release } system "cd ${worksrcpath}/MacVim; xcodebuild -configuration ${xcodeconfig}" } # Can be removed once MacPorts 1.7.1 is released pre-destroot { xinstall -d ${destroot}${applications_dir} } set appPath "${destroot}${applications_dir}/MacVim.app/Contents" set runtimePath "${appPath}/Resources/vim/runtime" destroot { file copy ${worksrcpath}/MacVim/build/Release/MacVim.app ${destroot}${applications_dir} xinstall -m 755 ${worksrcpath}/MacVim/mvim ${destroot}${prefix}/bin xinstall -d 755 ${runtimePath}/lang/ja/LC_MESSAGES xinstall -m 644 ${worksrcpath}/po/ja.mo \ ${runtimePath}/lang/ja/LC_MESSAGES/vim.mo file copy ${prefix}/share/migemo/tools/migemo.vim \ ${runtimePath}/plugin/migemo.vim } test.run yes variant standalone description {Enable standalonize} { post-destroot { foreach dylib {intl.8 iconv.2 migemo.1 ncurses.5} { set libname [lindex [split ${dylib} .] 0] set instname "@executable_path/../Frameworks/lib${libname}.dylib" set origname "${prefix}/lib/lib${dylib}.dylib" system "install_name_tool \ -change ${origname} ${instname} ${appPath}/MacOS/Vim" if {[file type ${origname}] == "link"} { set realpath "${prefix}/lib/" append realpath [file readlink ${origname}] } else { set realpath ${origname} } xinstall -m 755 ${realpath} \ ${appPath}/Frameworks/lib${libname}.dylib } xinstall -d 755 ${runtimePath}/dict xinstall -m 644 ${prefix}/share/migemo/utf-8/migemo-dict \ ${runtimePath}/dict } } include gdb