PortSystem 1.0
name macvim
-version 20090511
+version 20090802
revision 0
categories editors
platforms darwin
distname KaoriYa-${gittag}
use_zip yes
checksums \
- ${distname}.zip sha1 ae9e8f8d289a4a5b063f5e36a12c337520a3b2ea
+ ${distname}.zip sha1 d276f8e1d109689dba82ccefcf4ec1744ea4c9e5
master_sites \
"http://repo.or.cz/w/MacVim/KaoriYa.git?a=snapshot;h=${gittag};sf=zip&"
worksrcdir KaoriYa/src
--disable-gpm \
--with-features=huge \
--enable-multibyte \
+ --enable-netbeans \
--with-tlib=ncurses
configure.cppflags -I${prefix}/include
configure.ldflags -L${prefix}/lib
test.run yes
variant standalone description {Enable standalonize} {
+ depends_lib-append port:vimproc port:clewn
configure.env-append PATH="/usr/bin:${env(PATH)}"
configure.cppflags-append -DDYNAMIC_PERL -DDYNAMIC_PYTHON -DDYNAMIC_RUBY
post-configure {
reinplace "s|^RUBY_LIBS|#RUBY_LIBS|" ${worksrcpath}/auto/config.mk
}
post-destroot {
- foreach dylib {intl.8 iconv.2 migemo.1 ncurses.5} {
+ # ctags
+ file copy ${prefix}/bin/ctags ${appPath}/MacOS
+
+ # vimproc
+ set vimprocPath ${prefix}/share/vimproc/autoload
+ file copy ${vimprocPath}/proc.so ${runtimePath}/autoload
+ file copy ${vimprocPath}/proc.vim ${runtimePath}/autoload
+
+ # clewn
+ file copy ${prefix}/bin/clewn ${appPath}/MacOS
+ set clewnPath ${prefix}/share/clewn
+ file copy ${clewnPath}/.clewn_keys ${runtimePath}
+ file copy ${clewnPath}/clewn.vim ${runtimePath}
+ file copy ${clewnPath}/doc/clewn.txt ${runtimePath}/doc
+ file copy ${clewnPath}/macros/clewn_mappings.vim ${runtimePath}/macros
+ file copy ${clewnPath}/syntax/gdbvar.vim ${runtimePath}/syntax
+
+ # dylibs
+ foreach dylib {intl.8 iconv.2 migemo.1 ncurses.5 readline.6} {
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"
+ foreach exec {MacOS/Vim MacOS/clewn} {
+ system "install_name_tool \
+ -change ${origname} ${instname} ${appPath}/${exec}"
+ }
if {[file type ${origname}] == "link"} {
set realpath "${prefix}/lib/"
append realpath [file readlink ${origname}]
-change ${prefix}/lib/libiconv.2.dylib \
@executable_path/../Frameworks/libiconv.dylib \
${appPath}/Frameworks/libintl.dylib"
+ system "install_name_tool \
+ -change ${prefix}/lib/libncurses.5.dylib \
+ @executable_path/../Frameworks/libncurses.dylib \
+ ${appPath}/Frameworks/libreadline.dylib"
+ # migemo dicts
xinstall -d 755 ${runtimePath}/dict
foreach mdict {han2zen.dat hira2kata.dat \
migemo-dict roma2hira.dat zen2han.dat} {
${runtimePath}/dict
}
- xinstall -m 755 ${prefix}/bin/ctags ${appPath}/MacOS/ctags
+ # vim tags
+ system "${appPath}/MacOS/Vim \
+ --cmd \":helptag ${runtimePath}/doc\" --cmd :quit"
}
}
-
-include gdb