From da276fca11d9f06f95d04db06d6ad150953eee9a Mon Sep 17 00:00:00 2001 From: Thomas Nyman Date: Sat, 14 Oct 2023 21:08:21 +0200 Subject: [PATCH] vim, MacVim: update to vim version 9.0.1897 * update Vim to v9.0.1897 * update MacVim to release-178 * remove remaining pre-release software update channel description textfield from Advanced Settings dialog --- editors/MacVim/Portfile | 10 ++--- .../files/patch-remove-Homebrew-python.diff | 41 +++++++++++-------- .../MacVim/files/patch-remove-updater.diff | 17 ++++++++ editors/vim/Portfile | 10 ++--- 4 files changed, 52 insertions(+), 26 deletions(-) diff --git a/editors/MacVim/Portfile b/editors/MacVim/Portfile index 208a0e12b47ea..7503931fbc2bc 100644 --- a/editors/MacVim/Portfile +++ b/editors/MacVim/Portfile @@ -8,9 +8,9 @@ PortGroup compiler_blacklist_versions 1.0 # is because they both share the same set of configuration files and ensures # that the user's configuration files will always work with both. set vim_version 9.0 -set release 177 +set release 178 github.setup macvim-dev macvim ${release} release- -revision 3 +revision 0 name MacVim version ${vim_version}.release${release} categories editors @@ -25,9 +25,9 @@ long_description \ homepage https://macvim.org -checksums rmd160 36c16994eedfc40c1e477ee9ab90b623e68cbcab \ - sha256 a942786b67486d906ef5ec75ee3bf896b9433a1fde4cd835215445aa3d6a9dbe \ - size 24759057 +checksums rmd160 792e03eac8d6741fe4ac9f7b9098327407a0507b \ + sha256 eaa765e53963fbe6d2e0c1b48f0416e9fa7c0013f5b2d25a66d7a159281d3748 \ + size 24958039 depends_lib port:ncurses \ port:gettext \ diff --git a/editors/MacVim/files/patch-remove-Homebrew-python.diff b/editors/MacVim/files/patch-remove-Homebrew-python.diff index 6451bfa071c2a..11cc751cf50b2 100644 --- a/editors/MacVim/files/patch-remove-Homebrew-python.diff +++ b/editors/MacVim/files/patch-remove-Homebrew-python.diff @@ -1,38 +1,47 @@ --- src/MacVim/vimrc 2021-04-01 10:32:44.000000000 +0200 +++ src/MacVim/vimrc 2021-04-05 14:56:37.000000000 +0200 -@@ -9,36 +9,4 @@ +@@ -9,45 +9,4 @@ " more sensible value. Add "set backspace&" to your ~/.vimrc to reset it. set backspace+=indent,eol,start -" Python2 --" MacVim is configured by default to use the pre-installed System python2 --" version. However, following code tries to find a Homebrew, MacPorts or --" an installation from python.org: +-" MacVim is configured by default in the binary release to use the +-" pre-installed System python2 version. However, following code tries to +-" find a Homebrew, MacPorts or an installation from python.org: -if exists("&pythondll") && exists("&pythonhome") +- " Homebrew python 2.7 - if filereadable("/usr/local/Frameworks/Python.framework/Versions/2.7/Python") -- " Homebrew python 2.7 - set pythondll=/usr/local/Frameworks/Python.framework/Versions/2.7/Python +- +- " MacPorts python 2.7 - elseif filereadable("/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python") -- " MacPorts python 2.7 - set pythondll=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python +- +- " https://www.python.org/downloads/mac-osx/ - elseif filereadable("/Library/Frameworks/Python.framework/Versions/2.7/Python") -- " https://www.python.org/downloads/mac-osx/ - set pythondll=/Library/Frameworks/Python.framework/Versions/2.7/Python - endif -endif - -" Python3 --" MacVim is configured by default to use Homebrew python3 version --" If this cannot be found, following code tries to find a MacPorts --" or an installation from python.org: +-" MacVim is configured by default in the binary release to set +-" pythonthreedll to Homebrew python3. If it cannot be found, the following +-" code tries to find Python3 from other popular locations. Note that we are +-" using "Current" for the version, because Vim supports the stable ABI and +-" therefore any new version of Python3 will work. -if exists("&pythonthreedll") && exists("&pythonthreehome") && - \ !filereadable(&pythonthreedll) -- if filereadable("/opt/local/Library/Frameworks/Python.framework/Versions/3.11/Python") -- " MacPorts python -- set pythonthreedll=/opt/local/Library/Frameworks/Python.framework/Versions/3.11/Python -- elseif filereadable("/Library/Frameworks/Python.framework/Versions/3.11/Python") -- " https://www.python.org/downloads/mac-osx/ -- set pythonthreedll=/Library/Frameworks/Python.framework/Versions/3.11/Python +- " MacPorts python +- if filereadable("/opt/local/Library/Frameworks/Python.framework/Versions/Current/Python") +- set pythonthreedll=/opt/local/Library/Frameworks/Python.framework/Versions/Current/Python +- +- " macOS default Python, installed by 'xcode-select --install' +- elseif filereadable("/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/Current/Python3") +- set pythonthreedll=/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/Current/Python3 +- +- " https://www.python.org/downloads/mac-osx/ +- elseif filereadable("/Library/Frameworks/Python.framework/Versions/Current/Python") +- set pythonthreedll=/Library/Frameworks/Python.framework/Versions/Current/Python - endif -endif - diff --git a/editors/MacVim/files/patch-remove-updater.diff b/editors/MacVim/files/patch-remove-updater.diff index 91980c85531e0..71f508df3d572 100644 --- a/editors/MacVim/files/patch-remove-updater.diff +++ b/editors/MacVim/files/patch-remove-updater.diff @@ -113,3 +113,20 @@ +@@ -633,16 +558,6 @@ + + + +- +- +- +- +- +- Opt-in to the pre-release software update channel. Sofware updater will now also download early pre-release builds that will get new features faster, but will be less tested and occasionally have stability issues or incomplete features. Use this if you want to try out new features and help provide feedbacks early on, but don't use this if you need to rely on MacVim. +- +- +- +- + + + diff --git a/editors/vim/Portfile b/editors/vim/Portfile index 45eecead1391b..aa3ceb502ad99 100644 --- a/editors/vim/Portfile +++ b/editors/vim/Portfile @@ -18,12 +18,12 @@ if {${os.platform} eq "darwin" && ${os.major} <= 14} { sha256 7185577d6cd3708b62b2079b69a29215bb6a6048070d34e960d2d565c18b8a9b \ size 16851486 } else { - set vim_patchlevel 1677 - set port_revision 1 + set vim_patchlevel 1897 + set port_revision 0 - checksums rmd160 9a62a3612177c661462dd218b305f92fc036d9f2 \ - sha256 996766187b040b67fe13721e1601584fcf5e89f3ff9d5986be87c3fd1fe5d7c5 \ - size 17069893 + checksums rmd160 03c9bc4d54789cbec843fbfbfa342de2f6af4384 \ + sha256 8b86cfb2b609e7a7e386b88a89b01522354990d4eef27e7001cc607d49d62ebf \ + size 17268335 } github.setup vim vim ${vim_version}.${vim_patchlevel} v