OSDN Git Service

macvim 20100125
[splhack/MacPorts.git] / editors / macvim / Portfile
index fdddadd..b048712 100644 (file)
@@ -2,7 +2,7 @@
 PortSystem     1.0
 
 name                           macvim
-version                                20090911
+version                                20100125
 revision                       0
 categories                     editors
 platforms                      darwin
@@ -13,11 +13,10 @@ long_description    MacVim supports multiple windows with tabbed editing and a host
 homepage                       http://code.google.com/p/macvim-kaoriya/
 
 set gittag                     ${version}
-patchfiles                     patch-docerator.py
 distname                       KaoriYa-${gittag}
 use_zip                                yes
-checksums                      \
-       ${distname}.zip sha1 01c0bacc6c4b72b742925f99786feaa6e5d54617
+checksums                      ${distname}.zip sha1 \
+                                               2f46b740f70b178f858b8b275f883c9916541a4d
 master_sites           \
        "http://repo.or.cz/w/MacVim/KaoriYa.git?a=snapshot;h=${gittag};sf=zip&"
 worksrcdir                     KaoriYa/src
@@ -29,10 +28,7 @@ depends_lib                  port:cmigemo \
                                        port:ncurses
 
 configure.pre_args     --prefix=${applications_dir}
-configure.args         --enable-gui=macvim \
-                                       --without-x \
-                                       --disable-gpm \
-                                       --with-features=huge \
+configure.args         --with-features=huge \
                                        --enable-multibyte \
                                        --enable-netbeans \
                                        --with-tlib=ncurses
@@ -40,12 +36,9 @@ configure.cppflags   -I${prefix}/include
 configure.ldflags      -L${prefix}/lib
 
 if {[variant_isset universal]} {
-       configure.compiler gcc-4.0
        set macosx_deployment_target 10.5
-       configure.args-append   --with-mac-arch=both
-       set xcodeconfig Universal
-} else {
-       set xcodeconfig Release
+       configure.args-append   --with-macarchs="${universal_archs}" \
+                                                       --with-macsdk="${macosx_deployment_target}"
 }
 
 use_parallel_build     yes
@@ -60,7 +53,6 @@ variant python description {Enable Python scripting} {
 }
 variant ruby description {Enable Ruby scripting} {
        configure.args-append   --enable-rubyinterp
-       configure.env-append    ARCHFLAGS="-L${prefix}/lib"
        depends_lib-append              bin:ruby:ruby
 }
 variant tcl description {Enable Tcl scripting} {
@@ -77,16 +69,11 @@ post-patch {
                ${worksrcpath}/MacVim/mvim
 }
 
-post-build {
-       system "cd ${worksrcpath}/po; make ja_JP.UTF-8.mo"
-       system "cd ${worksrcpath}/MacVim; xcodebuild -configuration ${xcodeconfig}"
-}
-
 set appPath "${destroot}${applications_dir}/MacVim.app/Contents"
 set runtimePath "${appPath}/Resources/vim/runtime"
 
 destroot {
-       file copy ${worksrcpath}/MacVim/build/${xcodeconfig}/MacVim.app ${destroot}${applications_dir}
+       file copy ${worksrcpath}/MacVim/build/Release/MacVim.app ${destroot}${applications_dir}
        xinstall -m 755 ${worksrcpath}/MacVim/mvim ${destroot}${prefix}/bin
        xinstall -d 755 ${runtimePath}/lang/ja_JP.UTF-8/LC_MESSAGES
        xinstall -m 644 ${worksrcpath}/po/ja_JP.UTF-8.mo \
@@ -113,7 +100,7 @@ variant standalone description {Enable standalonize} {
                # vimproc
                set vimprocPath ${prefix}/share/vimproc/autoload
                file copy ${vimprocPath}/proc.so ${runtimePath}/autoload
-               file copy ${vimprocPath}/proc.vim ${runtimePath}/autoload
+               file copy ${vimprocPath}/vimproc.vim ${runtimePath}/autoload
 
                # clewn
                file copy ${prefix}/bin/clewn ${appPath}/MacOS