Ticket #47090: Portfile-MacVim.diff
File Portfile-MacVim.diff, 3.9 KB (added by joelfred@…, 10 years ago) |
---|
-
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 1 2 # $Id: Portfile 131243 2015-01-07 13:53:26Z raimue@macports.org $ 2 3 3 4 PortSystem 1.0 … … 5 6 6 7 name MacVim 7 8 set vim_version 7.4 8 set snapshot 7 39 set snapshot 74 9 10 set gitcommit snapshot-${snapshot} 10 11 version ${vim_version}.snapshot${snapshot} 11 revision 112 12 categories editors 13 13 platforms darwin 14 14 license Vim GPL-2+ … … 19 19 better and integrate more seamlessly with the Mac than vim-app. 20 20 homepage http://code.google.com/p/macvim 21 21 22 master_sites http://github.com/b4winckler/macvim/zipball/${gitcommit} 23 checksums ${name}-${version}.zip \ 24 rmd160 457b0eea2d7d86629d67683125df994e11e680dd \ 25 sha256 ed008a0d31f3c38f7fd018586aaa8c0bccda97c911f1be9f12c7120312f66976 22 master_sites http://github.com/douglasdrumond/macvim/archive 23 distfiles snapshot-${snapshot}.zip 24 checksums snapshot-${snapshot}.zip \ 25 rmd160 65aba3f7e16c2e9b59ad1984d92b904eba6d4d87 \ 26 sha256 05b46b80dd5ee8324ae8f83d404169b7b25ea323891a69cadd31eb38449b71c1 26 27 use_zip yes 27 28 worksrcdir ${name} 28 extract.only ${name}-${version}.zip29 extract.only snapshot-${snapshot}.zip 29 30 30 31 depends_build bin:gnutar:gnutar \ 31 32 bin:grep:grep \ … … 41 42 } 42 43 43 44 patchfiles patch-src-MacVim-icons-python.diff \ 44 patch-MacVim-GCC-VERSION.diff 45 patch-MacVim-GCC-VERSION.diff \ 46 patch-compat-sigaltstack.diff 45 47 46 48 pre-fetch { 47 49 if {${os.platform} eq "darwin" && ${os.major} < 10} { … … 51 53 } 52 54 53 55 # 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}56 compiler.blacklist macports-clang-2.9 macports-clang-3.0 {clang < 400} 55 57 56 58 post-extract { 57 59 # 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} 59 61 60 62 # create cache directory 61 63 file mkdir ${workpath}/caches 62 64 } 63 65 64 patchfiles-append patch-compat-sigaltstack.diff65 66 66 67 post-patch { 67 68 reinplace "s|^# VIM_APP_DIR=/Applications$|VIM_APP_DIR=${applications_dir}|" \ 68 69 ${worksrcpath}/src/MacVim/mvim 69 70 } 70 71 71 autoconf.dir ${worksrcpath}/src72 autoconf.dir ${worksrcpath}/src 72 73 73 74 configure.args --enable-gui=macvim \ 74 75 --without-x \ … … 108 109 configure.args-append --with-xim 109 110 } 110 111 111 variant breakindent description {Apply the breakindent patch} {112 # Upstream: https://retracile.net/wiki/VimBreakIndent113 master_sites-append https://retracile.net/raw-attachment/blog/2013/09/12/23.00/:breakindent114 distfiles-append vim-7.4.16-fc19-breakindent.patch:breakindent115 checksums-append vim-7.4.16-fc19-breakindent.patch \116 rmd160 a03d102166b7fa4d699b621c6a9c54dae05017c6 \117 sha256 8374b1fa505797761fd4480adb1f636d5cdebc1c943c9af70db8f7431b761548118 119 post-patch {120 system -W ${worksrcpath} "patch -p1 < ${distpath}/vim-7.4.16-fc19-breakindent.patch"121 }122 }123 124 112 variant perl description {Enable Perl scripting} { 125 113 configure.args-append --enable-perlinterp 126 114 depends_lib-append path:bin/perl:perl5 … … 199 187 200 188 201 189 livecheck.type regex 202 livecheck.url https://github.com/ b4winckler/macvim/releases190 livecheck.url https://github.com/douglasdrumond/macvim/releases 203 191 livecheck.version ${snapshot} 204 192 livecheck.regex snapshot-(\\d+)