Ticket #8795: Portfile.diff
File Portfile.diff, 3.5 KB (added by IngmarStein@…, 19 years ago) |
---|
-
Portfile
old new 2 2 PortSystem 1.0 3 3 4 4 name vim 5 set vim_version 6.46 set vim_patchlevel 85 set vim_version 7.0 6 set vim_patchlevel 0 7 7 revision 0 8 8 version ${vim_version}.${vim_patchlevel} 9 9 categories editors … … 14 14 homepage http://www.vim.org/ 15 15 platforms darwin freebsd 16 16 17 distfiles ${name}-${vim_version}-src1.tar.gz:vim \ 18 ${name}-${vim_version}-src2.tar.gz:vim \ 19 ${name}-${vim_version}-rt1.tar.gz:vim \ 20 ${name}-${vim_version}-rt2.tar.gz:vim \ 17 distfiles ${name}-${vim_version}.tar.bz2:vim \ 21 18 ${name}-${vim_version}-extra.tar.gz:extra \ 22 19 ${name}-${vim_version}-lang.tar.gz:extra 20 use_bzip2 yes 23 21 24 22 master_sites ftp://ftp.vim.org/pub/vim/unix/:vim \ 25 23 ftp://ftp.us.vim.org/pub/vim/unix/:vim \ … … 41 39 dist_subdir vim 42 40 distname vim[strsed ${vim_version} {g/[.]//}] 43 41 44 patchfiles patch-src__os_mac.h45 eval {46 set low 147 while {$low <= $vim_patchlevel} {48 set high [expr $low + 99];49 if {$high < $vim_patchlevel} {50 patchfiles-append [format "%s.%03d-%03d.gz" $vim_version $low $high]51 incr low 10052 } else {53 patchfiles-append [format "%s.%03d" $vim_version $low]54 incr low 155 }56 }57 }58 59 42 configure.args --enable-gui=no --without-x --disable-gpm \ 60 43 --mandir=${prefix}/share/man 61 configure.env CFLAGS="-O1" 44 45 checksums ${name}-${vim_version}.tar.bz2 md5 4ca69757678272f718b1041c810d82d8 \ 46 sha1 38ef48cabf942d0dc804a794dcc6f002b9457fc8 \ 47 ${name}-${vim_version}-extra.tar.gz md5 200f741ecc2a896fca25486764fa18a2 \ 48 sha1 101a3b82b26cd16ca48e2b4a5e4acfc6041abd1e \ 49 rmd160 ae5b749bd88d6354db96b49b2750c82271997994 \ 50 ${name}-${vim_version}-lang.tar.gz md5 6d43efaff570b5c86e76b833ea0c6a04 \ 51 sha1 3db6b0004d213490cc00d361835e7a7c685adb52 \ 52 rmd160 954a098f2f513ccdda96fdfcd043a737e52a5366 53 54 extract.only ${name}-${vim_version}${extract.suffix} 55 post-extract { 56 system "gnutar xvfz ${distpath}/${name}-${vim_version}-extra.tar.gz -C ${workpath}" 57 system "gnutar xvfz ${distpath}/${name}-${vim_version}-lang.tar.gz -C ${workpath}" 58 } 62 59 63 60 variant aqua { 64 61 master_sites-append http://www.douglas.stebila.ca/code/vim/app/:app_aqua \ … … 67 64 doc.tar.gz:doc_aqua 68 65 checksums-append app-bm.tar.gz md5 418b9e615a34ae5aad918f5c5a694a44 \ 69 66 doc.tar.gz md5 692f7874fc617162d0fe110daf39a98a 70 patchfiles-append patch-src-configure.in \ 71 patch-src-auto-configure 72 configure.args-delete --enable-gui=no --without-x 67 configure.args-delete --enable-gui=no 73 68 configure.args-append --enable-gui=carbon 69 post-extract { 70 system "gnutar xvfz ${distpath}/app-bm.tar.gz -C ${workpath}" 71 system "gnutar xvfz ${distpath}/doc.tar.gz -C ${workpath}" 72 } 74 73 post-destroot { 75 74 set appPath /Applications/DarwinPorts 76 75 xinstall -d -m 755 ${destroot}${appPath} … … 79 78 xinstall -m 644 ${workpath}/app.icns \ 80 79 ${destroot}${appPath}/GVim.app/Contents/Resources/appIcon.icns 81 80 xinstall -d -m 755 ${destroot}${appPath}/Vim 81 system "rm -f ${worksrcpath}/src/Vim.app/Contents/Resources/vim/runtime" 82 system "cp -R ${worksrcpath}/runtime \ 83 ${worksrcpath}/src/Vim.app/Contents/Resources/vim" 82 84 system "cp -R ${worksrcpath}/src/Vim.app \ 83 85 ${destroot}${appPath}/Vim/Vim.app" 84 86 xinstall -m 644 ${filespath}/gvimrc \ … … 154 156 configure.args-append --disable-darwin 155 157 } 156 158 157 include dist_checksums158 include patch_checksums159