9 maintainers nomaintainer
10 description MacVim is a port of the text editor Vim to Mac OS X.
11 long_description MacVim supports multiple windows with tabbed editing and a host of other features. \
12 MacVim brings you the full power of Vim to Mac OS X.
13 homepage http://code.google.com/p/macvim/
15 set gittag a3824cb1356c9f85f592ce13486d11b00bf3640c
16 distname KaoriYa-${gittag}
19 ${distname}.zip sha1 a0a0e4570589637cf47535b99bdd47ecd0ea5529
21 "http://repo.or.cz/w/MacVim/KaoriYa.git?a=snapshot;h=${gittag};sf=zip&"
22 worksrcdir KaoriYa/src
23 extract.only ${distname}.zip
25 depends_lib port:cmigemo \
30 configure.pre_args --prefix=${applications_dir}
31 configure.args --enable-gui=macvim \
34 --with-features=huge \
37 configure.cppflags -I${prefix}/include
38 configure.ldflags -L${prefix}/lib
40 use_parallel_build yes
42 variant perl description {Enable Perl scripting} {
43 configure.args-append --enable-perlinterp
44 depends_lib-append bin:perl:perl5.8
46 variant python description {Enable Python scripting} {
47 configure.args-append --enable-pythoninterp
48 depends_lib-append bin:python:python25
50 variant ruby description {Enable Ruby scripting} {
51 configure.args-append --enable-rubyinterp
52 configure.env-append ARCHFLAGS="-L${prefix}/lib"
53 depends_lib-append bin:ruby:ruby
55 variant tcl description {Enable Tcl scripting} {
56 configure.args-append --enable-tclinterp
57 depends_lib-append bin:tclsh:tcl
59 variant cscope description {Enable source code browsing with cscope} {
60 configure.args-append --enable-cscope
63 configure.args-append --with-mac-arch=both
68 "s|^# VIM_APP_DIR=/Applications$|VIM_APP_DIR=${applications_dir}|" \
69 ${worksrcpath}/MacVim/mvim
73 system "make autoconf"
77 if {[variant_isset universal]} {
78 set xcodeconfig Universal
80 set xcodeconfig Release
82 system "cd ${worksrcpath}/MacVim; xcodebuild -configuration ${xcodeconfig}"
85 # Can be removed once MacPorts 1.7.1 is released
87 xinstall -d ${destroot}${applications_dir}
90 set appPath "${destroot}${applications_dir}/MacVim.app/Contents"
91 set runtimePath "${appPath}/Resources/vim/runtime"
94 file copy ${worksrcpath}/MacVim/build/Release/MacVim.app ${destroot}${applications_dir}
95 xinstall -m 755 ${worksrcpath}/MacVim/mvim ${destroot}${prefix}/bin
96 xinstall -d 755 ${runtimePath}/lang/ja/LC_MESSAGES
97 xinstall -m 644 ${worksrcpath}/po/ja.mo \
98 ${runtimePath}/lang/ja/LC_MESSAGES/vim.mo
99 file copy ${prefix}/share/migemo/tools/migemo.vim \
100 ${runtimePath}/plugin/migemo.vim
105 variant standalone description {Enable standalonize} {
107 foreach dylib {intl.8 iconv.2 migemo.1 ncurses.5} {
108 set libname [lindex [split ${dylib} .] 0]
109 set instname "@executable_path/../Frameworks/lib${libname}.dylib"
110 set origname "${prefix}/lib/lib${dylib}.dylib"
111 system "install_name_tool \
112 -change ${origname} ${instname} ${appPath}/MacOS/Vim"
113 if {[file type ${origname}] == "link"} {
114 set realpath "${prefix}/lib/"
115 append realpath [file readlink ${origname}]
117 set realpath ${origname}
119 xinstall -m 755 ${realpath} \
120 ${appPath}/Frameworks/lib${libname}.dylib
122 system "install_name_tool \
123 -change ${prefix}/lib/libiconv.2.dylib \
124 @executable_path/../Frameworks/libiconv.dylib \
125 ${appPath}/Frameworks/libintl.dylib"
127 xinstall -d 755 ${runtimePath}/dict
128 xinstall -m 644 ${prefix}/share/migemo/utf-8/migemo-dict \