Ticket #11949: vim-app-Portfile.v71.diff
File vim-app-Portfile.v71.diff, 5.7 KB (added by raimue (Rainer Müller), 18 years ago) |
---|
-
Portfile
3 3 4 4 name vim-app 5 5 set realname vim 6 set vim_version 7. 07 set vim_patchlevel 2246 set vim_version 7.1 7 set vim_patchlevel 000 8 8 version ${vim_version}.${vim_patchlevel} 9 revision 010 9 categories editors 11 10 maintainers raimue@codingfarm.de 12 11 description Vim.app is a GUI version of the famous editor vim. … … 15 14 homepage http://www.vim.org/ 16 15 platforms darwin freebsd 17 16 18 distfiles ${realname}-${vim_version}.tar.bz2:vim \19 ${realname}-${vim_version}-extra.tar.gz:extra \20 ${realname}-${vim_version}-lang.tar.gz:extra \21 app-bm.tar.gz:app_aqua \22 doc.tar.gz:doc_aqua23 24 17 use_bzip2 yes 25 18 26 set serverList { 27 ftp://ftp.vim.org/pub/vim/ \ 28 http://ftp.vim.org/pub/vim/ \ 29 ftp://ftp.us.vim.org/pub/vim/ \ 30 ftp://ftp.ca.vim.org/pub/vim/ \ 31 ftp://ftp.nl.vim.org/pub/vim/ \ 32 ftp://ftp.uk.vim.org/pub/vim/ \ 33 ftp://ftp.ie.vim.org/pub/vim/ \ 34 ftp://ftp.is.vim.org/pub/vim/ \ 35 ftp://ftp.pl.vim.org/pub/vim/ \ 36 ftp://ftp.ro.vim.org/pub/vim/ \ 37 ftp://ftp.cz.vim.org/pub/vim/ \ 38 ftp://ftp.sk.vim.org/pub/vim/ \ 39 ftp://ftp.jp.vim.org/pub/vim/ \ 40 ftp://ftp.kr.vim.org/pub/vim/ \ 41 ftp://ftp2.us.vim.org/pub/vim/ \ 42 ftp://ftp9.us.vim.org/pub/vim/ \ 43 ftp://ftp2.nl.vim.org/pub/vim/ \ 44 ftp://ftp3.nl.vim.org/pub/vim/ \ 45 ftp://ftp3.de.vim.org/pub/vim/ \ 46 ftp://ftp2.tw.vim.org/pub/vim/ \ 47 ftp://miroir-francais.fr/pub/vim/ \ 48 ftp://ftp.tw.vim.org/pub/Unix/Editors/Vim/ 49 } 19 distfiles \ 20 ${realname}-${vim_version}${extract.suffix}:vim \ 21 ${realname}-${vim_version}-extra.tar.gz:extra \ 22 ${realname}-${vim_version}-lang.tar.gz:extra \ 23 app-bm.tar.gz:app_aqua \ 24 doc.tar.gz:doc_aqua 50 25 51 # create list of locations for source, extras, patches from serverList 52 foreach server ${serverList} { 53 lappend master_sites ${server}unix/:vim 54 lappend master_sites ${server}extra/:extra 55 lappend patch_sites ${server}patches/${vim_version} 56 } 26 checksums \ 27 ${realname}-${vim_version}${extract.suffix} \ 28 md5 44c6b4914f38d6f9aa959640b89da329 \ 29 sha1 981e1acecc4d8f15680b6e160de84aed038d857d \ 30 rmd160 470775e0d0219cafe7e04dd91199ed7441882456 \ 31 ${realname}-${vim_version}-extra.tar.gz \ 32 md5 605cc7ae31bcc9d7864bb0bb6025f55d \ 33 sha1 65581f63ff3c665e0513ba578d9e80e9e9512aa3 \ 34 rmd160 e44bde407fb42233a8fbcc74d96a03650bf863d1 \ 35 ${realname}-${vim_version}-lang.tar.gz \ 36 md5 144aa049ba70621acf4247f0459f3ee7 \ 37 sha1 7c1e2f498e1f8304879e73b88562f9036801c7ee \ 38 rmd160 ac38dde9b2e497687f9d046786b3ce1e45f45020 \ 39 app-bm.tar.gz \ 40 md5 418b9e615a34ae5aad918f5c5a694a44 \ 41 doc.tar.gz \ 42 md5 692f7874fc617162d0fe110daf39a98a 43 44 dist_subdir vim 45 distname vim[strsed ${vim_version} {g/\.//}] 46 57 47 master_sites-append \ 58 48 http://www.douglas.stebila.ca/files/code/vim/app/:app_aqua \ 59 49 http://www.douglas.stebila.ca/files/code/vim/doc/:doc_aqua 60 50 61 patchfiles patch-if_ruby.c62 63 dist_subdir ${realname}64 distname ${realname}[strsed ${vim_version} {g/[.]//}]65 66 eval {67 set low 168 while {$low <= $vim_patchlevel} {69 set high [expr $low + 99];70 if {$high < $vim_patchlevel} {71 patchfiles-append \72 [format "%s.%03d-%03d.gz" $vim_version $low $high]73 incr low 10074 } else {75 patchfiles-append [format "%s.%03d" $vim_version $low]76 incr low 177 }78 }79 }80 81 51 set appPath "/Applications/MacPorts/" 82 52 depends_lib port:gettext \ 83 53 port:ncurses … … 87 57 --disable-gpm \ 88 58 --mandir=${prefix}/share/man \ 89 59 --with-tlib=ncurses 90 configure.env CPPFLAGS="-I${prefix}/include" \91 LDFLAGS="-L${prefix}/lib"92 60 extract.only ${realname}-${vim_version}${extract.suffix} 93 61 post-extract { 94 62 system "gnutar xvfz ${distpath}/${realname}-${vim_version}-extra.tar.gz -C \ … … 138 106 } 139 107 140 108 # vim-app specific, experimental variants. 141 # Since the patches may overlap, only ONE of these142 # can be installed at a time.143 109 144 110 # macatsui: better antialising (experimental) 145 111 # see http://wiki.macvim.org/wiki/VimPatches/ATSUI 146 variant macatsui conflicts guitab { 147 patch_sites-append macports:.:macatsui 148 patchfiles-append atsui.patch_mod:macatsui 149 } 112 # -- doesn't work with 7.1 113 #variant macatsui { 114 # patch_sites-append macports:.:macatsui 115 # patchfiles-append atsui.patch_mod:macatsui 116 # checksums-append atsui.patch_mod md5 b0d53c9faa40fa8a43f905dc938d86c9 117 #} 150 118 151 # guitab: use a drawer for tabs (experimental)152 # see http://wiki.macvim.org/wiki/VimPatches/GuiTab153 variant guitab conflicts macatsui {154 patch_sites-append macports:.:guitab155 patchfiles-append guitab.v7.diff:guitab156 }157 158 119 # general vim variants 159 120 160 121 variant big { configure.args-append --with-features=big } … … 186 147 platform darwin i386 { 187 148 } 188 149 189 include checksums_dist 190 include checksums_patch 150 include serverlist 151 include patchlist 152