OSDN Git Service

macvim support dynamic
authorKazuki Sakamoto <sakamoto@splhack.org>
Wed, 15 Apr 2009 22:00:16 +0000 (07:00 +0900)
committerKazuki Sakamoto <sakamoto@splhack.org>
Wed, 15 Apr 2009 22:00:16 +0000 (07:00 +0900)
editors/macvim/Portfile

index 6d1d218..23d4eaa 100644 (file)
@@ -3,7 +3,7 @@ PortSystem      1.0
 
 name                           macvim
 version                                20090414
-revision                       0
+revision                       1
 categories                     editors
 platforms                      darwin
 maintainers                    nomaintainer
@@ -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                     ${version}
+set gittag                     a343a16399e42a88e35343bfb19975ed882f5a7a
 distname                       KaoriYa-${gittag}
 use_zip                                yes
 checksums                      \
-       ${distname}.zip sha1 b60ca18813ede2f3d079f8c8dd7bd77b016c0add
+       ${distname}.zip sha1 1008afdef816131ab5414322855dc84290d89783
 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              -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]