OSDN Git Service

macvim 20100614
[splhack/MacPorts.git] / editors / macvim / Portfile
index 57e6e0e..fed1eb4 100644 (file)
@@ -2,7 +2,7 @@
 PortSystem     1.0
 
 name                           macvim
-version                                20091027
+version                                20100614
 revision                       0
 categories                     editors
 platforms                      darwin
@@ -12,15 +12,10 @@ 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}
-distname                       KaoriYa-${gittag}
-use_zip                                yes
-checksums                      ${distname}.zip sha1 \
-                                               ae4ad747aec17ae674831475442ea5cbe5e87279
-master_sites           \
-       "http://repo.or.cz/w/MacVim/KaoriYa.git?a=snapshot;h=${gittag};sf=zip&"
-worksrcdir                     KaoriYa/src
-extract.only           ${distname}.zip
+master_sites           http://github.com/splhack/macvim/tarball
+checksums                      sha1 16a9d6b5df52ed5f45af1f09a208f36d2ba69b00
+distfiles                      ${version}
+worksrcdir                     splhack-macvim-9dea77b/src
 
 depends_lib                    port:cmigemo \
                                        port:gettext \
@@ -45,19 +40,15 @@ use_parallel_build  yes
 
 variant perl description {Enable Perl scripting} {
        configure.args-append   --enable-perlinterp
-       depends_lib-append              bin:perl:perl5.10
 }
 variant python description {Enable Python scripting} {
        configure.args-append   --enable-pythoninterp
-       depends_lib-append              bin:python:python26
 }
 variant ruby description {Enable Ruby scripting} {
        configure.args-append   --enable-rubyinterp
-       depends_lib-append              bin:ruby:ruby
 }
 variant tcl description {Enable Tcl scripting} {
        configure.args-append   --enable-tclinterp
-       depends_lib-append              bin:tclsh:tcl
 }
 variant cscope description {Enable source code browsing with cscope} {
        configure.args-append   --enable-cscope
@@ -78,16 +69,19 @@ destroot {
        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
 }
 
 test.run                       yes
 
 variant standalone description {Enable standalonize} {
-       depends_lib-append port:vimproc port:clewn
+       depends_lib-append port:clewn
        configure.env-append    PATH="/usr/bin:${env(PATH)}"
        configure.cppflags-append       -DDYNAMIC_PERL -DDYNAMIC_PYTHON -DDYNAMIC_RUBY
+       pre-extract {
+               if {[catch {system "port installed|grep -e \" ruby @.*(active)\" -e \" perl5 @.*(active)\" -e \" perl5.8 @.*(active)\""} result]} {} else {
+                       return -code error "perl or ruby is activated"
+               }
+       }
        post-configure {
                reinplace "s|^PERL_LIBS|#PERL_LIBS|" ${worksrcpath}/auto/config.mk
                reinplace "s|^PYTHON_LIBS|#PYTHON_LIBS|" ${worksrcpath}/auto/config.mk
@@ -97,11 +91,6 @@ variant standalone description {Enable standalonize} {
                # 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