Ticket #47090: Portfile-MacVim.diff

File Portfile-MacVim.diff, 3.9 KB (added by joelfred@…, 9 years ago)

Diff file for update

  • Portfile

    old new  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id: Portfile 131243 2015-01-07 13:53:26Z raimue@macports.org $
    23
    34PortSystem          1.0
     
    56
    67name                MacVim
    78set vim_version     7.4
    8 set snapshot        73
     9set snapshot        74
    910set gitcommit       snapshot-${snapshot}
    1011version             ${vim_version}.snapshot${snapshot}
    11 revision            1
    1212categories          editors
    1313platforms           darwin
    1414license             Vim GPL-2+
     
    1919    better and integrate more seamlessly with the Mac than vim-app.
    2020homepage            http://code.google.com/p/macvim
    2121
    22 master_sites        http://github.com/b4winckler/macvim/zipball/${gitcommit}
    23 checksums           ${name}-${version}.zip \
    24                     rmd160  457b0eea2d7d86629d67683125df994e11e680dd \
    25                     sha256  ed008a0d31f3c38f7fd018586aaa8c0bccda97c911f1be9f12c7120312f66976
     22master_sites        http://github.com/douglasdrumond/macvim/archive
     23distfiles           snapshot-${snapshot}.zip
     24checksums           snapshot-${snapshot}.zip \
     25                    rmd160  65aba3f7e16c2e9b59ad1984d92b904eba6d4d87 \
     26                    sha256  05b46b80dd5ee8324ae8f83d404169b7b25ea323891a69cadd31eb38449b71c1
    2627use_zip             yes
    2728worksrcdir          ${name}
    28 extract.only        ${name}-${version}.zip
     29extract.only        snapshot-${snapshot}.zip
    2930
    3031depends_build       bin:gnutar:gnutar \
    3132                    bin:grep:grep \
     
    4142}
    4243
    4344patchfiles          patch-src-MacVim-icons-python.diff \
    44                     patch-MacVim-GCC-VERSION.diff
     45                    patch-MacVim-GCC-VERSION.diff \
     46                    patch-compat-sigaltstack.diff
    4547
    4648pre-fetch {
    4749    if {${os.platform} eq "darwin" && ${os.major} < 10} {
     
    5153}
    5254
    5355# does not run correctly when build with older clang releases, see #30985
    54 compiler.blacklist macports-clang-2.9 macports-clang-3.0 {clang < 400}
     56compiler.blacklist  macports-clang-2.9 macports-clang-3.0 {clang < 400}
    5557
    5658post-extract {
    5759    # github zipball has root folder including commitish, renaming for ease of use
    58     file rename [glob ${workpath}/b4winckler-*] ${worksrcpath}
     60    file rename [glob ${workpath}/macvim-snapshot-*] ${worksrcpath}
    5961
    6062    # create cache directory
    6163    file mkdir ${workpath}/caches
    6264}
    6365
    64 patchfiles-append patch-compat-sigaltstack.diff
    6566
    6667post-patch {
    6768    reinplace "s|^# VIM_APP_DIR=/Applications$|VIM_APP_DIR=${applications_dir}|" \
    6869         ${worksrcpath}/src/MacVim/mvim
    6970}
    7071
    71 autoconf.dir ${worksrcpath}/src
     72autoconf.dir        ${worksrcpath}/src
    7273
    7374configure.args      --enable-gui=macvim \
    7475                    --without-x \
     
    108109    configure.args-append --with-xim
    109110}
    110111
    111 variant breakindent description {Apply the breakindent patch} {
    112     # Upstream: https://retracile.net/wiki/VimBreakIndent
    113     master_sites-append https://retracile.net/raw-attachment/blog/2013/09/12/23.00/:breakindent
    114     distfiles-append    vim-7.4.16-fc19-breakindent.patch:breakindent
    115     checksums-append    vim-7.4.16-fc19-breakindent.patch \
    116                         rmd160  a03d102166b7fa4d699b621c6a9c54dae05017c6 \
    117                         sha256  8374b1fa505797761fd4480adb1f636d5cdebc1c943c9af70db8f7431b761548
    118 
    119     post-patch {
    120         system -W ${worksrcpath} "patch -p1 < ${distpath}/vim-7.4.16-fc19-breakindent.patch"
    121     }
    122 }
    123 
    124112variant perl description {Enable Perl scripting} {
    125113    configure.args-append   --enable-perlinterp
    126114    depends_lib-append      path:bin/perl:perl5
     
    199187
    200188
    201189livecheck.type          regex
    202 livecheck.url           https://github.com/b4winckler/macvim/releases
     190livecheck.url           https://github.com/douglasdrumond/macvim/releases
    203191livecheck.version       ${snapshot}
    204192livecheck.regex         snapshot-(\\d+)