OSDN Git Service

macvim 20090425
[splhack/MacPorts.git] / editors / macvim / Portfile
index 97a4693..8af1ad6 100644 (file)
@@ -2,7 +2,7 @@
 PortSystem     1.0
 
 name                           macvim
-version                                20090405
+version                                20090425
 revision                       0
 categories                     editors
 platforms                      darwin
@@ -12,11 +12,11 @@ long_description    MacVim supports multiple windows with tabbed editing and a host
                                        MacVim brings you the full power of Vim to Mac OS X.
 homepage                       http://code.google.com/p/macvim-kaoriya/
 
-set gittag                     20090405
+set gittag                     ${version}
 distname                       KaoriYa-${gittag}
 use_zip                                yes
 checksums                      \
-       ${distname}.zip sha1 342499bc25d5c4abff9a1cee8b9fb01371cf7724
+       ${distname}.zip sha1 366acbbbb0a47297622088c19897a691245b71df
 master_sites           \
        "http://repo.or.cz/w/MacVim/KaoriYa.git?a=snapshot;h=${gittag};sf=zip&"
 worksrcdir                     KaoriYa/src
@@ -75,6 +75,7 @@ post-patch {
 }
 
 post-build {
+       system "cd ${worksrcpath}/po; make ja_JP.UTF-8.mo"
        system "cd ${worksrcpath}/MacVim; xcodebuild -configuration ${xcodeconfig}"
 }
 
@@ -89,9 +90,9 @@ set runtimePath "${appPath}/Resources/vim/runtime"
 destroot {
        file copy ${worksrcpath}/MacVim/build/${xcodeconfig}/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
+       xinstall -d 755 ${runtimePath}/lang/ja_JP.UTF-8/LC_MESSAGES
+       xinstall -m 644 ${worksrcpath}/po/ja_JP.UTF-8.mo \
+               ${runtimePath}/lang/ja_JP.UTF-8/LC_MESSAGES/vim.mo
        file copy ${prefix}/share/migemo/tools/migemo.vim \
                ${runtimePath}/plugin/migemo.vim
 }
@@ -99,6 +100,13 @@ destroot {
 test.run                       yes
 
 variant standalone description {Enable standalonize} {
+       configure.env-append    PATH="/usr/bin:${env(PATH)}"
+       configure.cppflags-append       -DDYNAMIC_PERL -DDYNAMIC_PYTHON -DDYNAMIC_RUBY
+       post-configure {
+               reinplace "s|^PERL_LIBS|#PERL_LIBS|" ${worksrcpath}/auto/config.mk
+               reinplace "s|^PYTHON_LIBS|#PYTHON_LIBS|" ${worksrcpath}/auto/config.mk
+               reinplace "s|^RUBY_LIBS|#RUBY_LIBS|" ${worksrcpath}/auto/config.mk
+       }
        post-destroot {
                foreach dylib {intl.8 iconv.2 migemo.1 ncurses.5} {
                        set libname [lindex [split ${dylib} .] 0]
@@ -121,8 +129,13 @@ variant standalone description {Enable standalonize} {
                        ${appPath}/Frameworks/libintl.dylib"
 
                xinstall -d 755 ${runtimePath}/dict
-               xinstall -m 644 ${prefix}/share/migemo/utf-8/migemo-dict \
-                       ${runtimePath}/dict
+               foreach mdict {han2zen.dat hira2kata.dat \
+                               migemo-dict roma2hira.dat zen2han.dat} {
+                       xinstall -m 644 ${prefix}/share/migemo/utf-8/${mdict} \
+                               ${runtimePath}/dict
+               }
+
+               xinstall -m 755 ${prefix}/bin/jexctags ${appPath}/MacOS/ctags
        }
 }