[22037] trunk/dports/editors/vim/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Thu Feb 15 07:09:46 PST 2007


Revision: 22037
          http://trac.macosforge.org/projects/macports/changeset/22037
Author:   pipping at macports.org
Date:     2007-02-15 07:09:46 -0800 (Thu, 15 Feb 2007)

Log Message:
-----------
 * make aqua's gvim ppc-only (crashes under rosetta)
 * rework the serverlist

Modified Paths:
--------------
    trunk/dports/editors/vim/Portfile

Modified: trunk/dports/editors/vim/Portfile
===================================================================
--- trunk/dports/editors/vim/Portfile	2007-02-15 14:36:50 UTC (rev 22036)
+++ trunk/dports/editors/vim/Portfile	2007-02-15 15:09:46 UTC (rev 22037)
@@ -5,7 +5,7 @@
 set vim_version	    7.0
 set vim_patchlevel  195
 version             ${vim_version}.${vim_patchlevel}
-revision            0
+revision            1
 categories          editors
 maintainers         pipping at macports.org
 description         Vi "workalike" with many additional features
@@ -20,54 +20,37 @@
 
 use_bzip2           yes
 
-master_sites        ftp://ftp.vim.org/pub/vim/unix/:vim \
-                      http://ftp.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp.us.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp2.us.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp9.us.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp.ca.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp.nl.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp2.nl.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp3.nl.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp3.de.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp.uk.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp.ie.vim.org/pub/vim/unix/:vim \
-                      ftp://miroir-francais.fr/pub/vim/unix/:vim \
-                      ftp://ftp.is.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp.pl.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp.ro.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp.cz.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp.sk.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp.tw.vim.org/pub/Unix/Editors/Vim/unix/:vim \
-                      ftp://ftp2.tw.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp.jp.vim.org/pub/vim/unix/:vim \
-                      ftp://ftp.kr.vim.org/pub/vim/unix/:vim \
-                      \
-                      ftp://ftp.vim.org/pub/vim/extra/:extra \
-                      http://ftp.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp.us.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp2.us.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp9.us.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp.ca.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp.nl.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp2.nl.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp3.nl.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp3.de.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp.uk.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp.ie.vim.org/pub/vim/extra/:extra \
-                      ftp://miroir-francais.fr/pub/vim/extra/:extra \
-                      ftp://ftp.is.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp.pl.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp.ro.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp.cz.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp.sk.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp.tw.vim.org/pub/Unix/Editors/Vim/extra/:extra \
-                      ftp://ftp2.tw.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp.jp.vim.org/pub/vim/extra/:extra \
-                      ftp://ftp.kr.vim.org/pub/vim/extra/:extra
+set serverList {
+                    ftp://ftp.vim.org/pub/vim/ \
+                      http://ftp.vim.org/pub/vim/ \
+                      ftp://ftp.us.vim.org/pub/vim/ \
+                      ftp://ftp.ca.vim.org/pub/vim/ \
+                      ftp://ftp.nl.vim.org/pub/vim/ \
+                      ftp://ftp.uk.vim.org/pub/vim/ \
+                      ftp://ftp.ie.vim.org/pub/vim/ \
+                      ftp://ftp.is.vim.org/pub/vim/ \
+                      ftp://ftp.pl.vim.org/pub/vim/ \
+                      ftp://ftp.ro.vim.org/pub/vim/ \
+                      ftp://ftp.cz.vim.org/pub/vim/ \
+                      ftp://ftp.sk.vim.org/pub/vim/ \
+                      ftp://ftp.jp.vim.org/pub/vim/ \
+                      ftp://ftp.kr.vim.org/pub/vim/ \
+                      ftp://ftp2.us.vim.org/pub/vim/ \
+                      ftp://ftp9.us.vim.org/pub/vim/ \
+                      ftp://ftp2.nl.vim.org/pub/vim/ \
+                      ftp://ftp3.nl.vim.org/pub/vim/ \
+                      ftp://ftp3.de.vim.org/pub/vim/ \
+                      ftp://ftp2.tw.vim.org/pub/vim/ \
+                      ftp://miroir-francais.fr/pub/vim/ \
+                      ftp://ftp.tw.vim.org/pub/Unix/Editors/Vim/
+}
 
-patch_sites         [strsed [strsed ${master_sites} \
-                      g/unix/patches\/${vim_version}/] g/:vim//]
+# create list of locations for source, extras, patches from serverList
+foreach server ${serverList} {
+    lappend master_sites ${server}unix/:vim
+    lappend master_sites ${server}extra/:extra
+    lappend patch_sites ${server}patches/${vim_version}
+}
 
 patchfiles          patch-if_ruby.c
 
@@ -129,12 +112,14 @@
         delete ${destroot}${prefix}/var
         system "ln -f ${destroot}${appPath}/Vim/Vim.app/Contents/MacOS/Vim \
           ${destroot}/${prefix}/bin/vim"
-        system "gnutar xvfz ${filespath}/GVim_app.tar.gz -C \
-          ${destroot}${appPath}"
-        xinstall -m 755 ${filespath}/gvim.sh \
-          ${destroot}/${prefix}/bin/gvim
-        xinstall -m 644 ${workpath}/app.icns \
-          ${destroot}${appPath}/GVim.app/Contents/Resources/appIcon.icns
+        if {![variant_isset darwin_i386]} {
+            system "gnutar xvfz ${filespath}/GVim_app.tar.gz -C \
+              ${destroot}${appPath}"
+            xinstall -m 755 ${filespath}/gvim.sh \
+              ${destroot}/${prefix}/bin/gvim
+            xinstall -m 644 ${workpath}/app.icns \
+              ${destroot}${appPath}/GVim.app/Contents/Resources/appIcon.icns
+        }
         xinstall -m 644 ${filespath}/gvimrc \
           ${destroot}${appPath}/Vim/Vim.app/
         xinstall -m 644 ${filespath}/vimrc \
@@ -204,8 +189,7 @@
 variant cscope {
     configure.args-append   --enable-cscope
 }
-variant darwin x86 {
-    configure.args-append   --disable-darwin
+platform darwin i386 {
 }
 
 include checksums_dist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070215/f27a7990/attachment.html


More information about the macports-changes mailing list