OSDN Git Service

macvim 20090425
[splhack/MacPorts.git] / editors / macvim / Portfile
index 6d1d218..8af1ad6 100644 (file)
@@ -2,7 +2,7 @@
 PortSystem     1.0
 
 name                           macvim
-version                                20090414
+version                                20090425
 revision                       0
 categories                     editors
 platforms                      darwin
@@ -16,7 +16,7 @@ set gittag                    ${version}
 distname                       KaoriYa-${gittag}
 use_zip                                yes
 checksums                      \
-       ${distname}.zip sha1 b60ca18813ede2f3d079f8c8dd7bd77b016c0add
+       ${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}"
 }
 
@@ -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]
@@ -126,6 +134,8 @@ variant standalone description {Enable standalonize} {
                        xinstall -m 644 ${prefix}/share/migemo/utf-8/${mdict} \
                                ${runtimePath}/dict
                }
+
+               xinstall -m 755 ${prefix}/bin/jexctags ${appPath}/MacOS/ctags
        }
 }