Skip to content

Commit

Permalink
MacVim: Update to version 8.1.snapshot166
Browse files Browse the repository at this point in the history
- Add Python 3.8 Variant
- Remove GCC Version patch
- Update Homebrew Python patch
- Update Sparkle patch

Closes: https://trac.macports.org/ticket/60242
  • Loading branch information
0az committed Sep 24, 2020
1 parent 176d0a1 commit 6418dc0
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 131 deletions.
26 changes: 17 additions & 9 deletions editors/MacVim/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ PortSystem 1.0
PortGroup github 1.0
PortGroup compiler_blacklist_versions 1.0

set vim_version 8.1
set snapshot 161
set vim_version 8.2
set snapshot 166
github.setup macvim-dev macvim ${snapshot} snapshot-
name MacVim
version ${vim_version}.snapshot${snapshot}
Expand All @@ -19,9 +19,9 @@ long_description \

homepage https://macvim-dev.github.io/macvim/

checksums rmd160 25adc7f380af17101948b2d6fc39e347672c3383 \
sha256 bbc220da67525d1bc4732c8c0689ef04dc1f39603acf1530c6938aca049f3017 \
size 21198775
checksums rmd160 653794d83ca1dbf116a3c765acea5d25b5f6749f \
sha256 7ebc9c5ad56e4a75a3fc1c35b2730c646f5fb82635c04b9e5b8e9192e92652f7 \
size 21834717

depends_lib port:ncurses \
port:gettext \
Expand All @@ -31,8 +31,7 @@ depends_lib port:ncurses \
# https://trac.macports.org/ticket/54666
supported_archs x86_64

patchfiles patch-MacVim-GCC-VERSION.diff \
patch-remove-sparkle.diff \
patchfiles patch-remove-sparkle.diff \
patch-remove-Homebrew-python.diff

pre-fetch {
Expand Down Expand Up @@ -131,7 +130,7 @@ variant python27 description {Enable Python scripting} {
# Overwriting autoconf.cmd above removes dependency, add it again
depends_build-append port:autoconf
}
variant python36 conflicts python37 description {Enable Python scripting} {
variant python36 conflicts python37 python38 description {Enable Python scripting} {
configure.args-append --enable-python3interp --with-python3-command=${prefix}/bin/python3.6
patchfiles-append patch-python3.diff
depends_lib-append port:python36
Expand All @@ -140,7 +139,7 @@ variant python36 conflicts python37 description {Enable Python scripting} {
# Overwriting autoconf.cmd above removes dependency, add it again
depends_build-append port:autoconf
}
variant python37 conflicts python36 description {Enable Python scripting} {
variant python37 conflicts python36 python38 description {Enable Python scripting} {
configure.args-append --enable-python3interp --with-python3-command=${prefix}/bin/python3.7
patchfiles-append patch-python3.diff
depends_lib-append port:python37
Expand All @@ -149,6 +148,15 @@ variant python37 conflicts python36 description {Enable Python scripting} {
# Overwriting autoconf.cmd above removes dependency, add it again
depends_build-append port:autoconf
}
variant python38 conflicts python36 python37 description {Enable Python scripting} {
configure.args-append --enable-python3interp --with-python3-command=${prefix}/bin/python3.8
patchfiles-append patch-python3.diff
depends_lib-append port:python38

use_autoconf yes
# Overwriting autoconf.cmd above removes dependency, add it again
depends_build-append port:autoconf
}

variant ruby requires ruby18 description {Compatibility variant, requires +ruby18} {}
variant ruby18 conflicts ruby19 ruby20 ruby21 ruby22 ruby23 ruby24 ruby25 description {Enable Ruby scripting} {
Expand Down
20 changes: 0 additions & 20 deletions editors/MacVim/files/patch-MacVim-GCC-VERSION.diff

This file was deleted.

16 changes: 7 additions & 9 deletions editors/MacVim/files/patch-remove-Homebrew-python.diff
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
Upstream: https://github.com/macvim-dev/macvim/pull/423 (reverting partly)

--- src/MacVim/vimrc 2019-10-30 12:33:12.000000000 +0100
+++ src/MacVim/vimrc 2019-12-29 01:10:11.000000000 +0100
--- src/MacVim/vimrc 2020-09-15 01:48:35.000000000 -0500
+++ src/MacVim/vimrc 2020-09-15 01:54:22.000000000 -0500
@@ -13,36 +13,3 @@
" the entire MacVim menu is set up in a nib file which currently only is
" translated to English).
Expand Down Expand Up @@ -30,12 +28,12 @@ Upstream: https://github.com/macvim-dev/macvim/pull/423 (reverting partly)
-" or an installation from python.org:
-if exists("&pythonthreedll") && exists("&pythonthreehome") &&
- \ !filereadable(&pythonthreedll)
- if filereadable("/opt/local/Library/Frameworks/Python.framework/Versions/3.7/Python")
- " MacPorts python 3.7
- set pythonthreedll=/opt/local/Library/Frameworks/Python.framework/Versions/3.7/Python
- elseif filereadable("/Library/Frameworks/Python.framework/Versions/3.7/Python")
- if filereadable("/opt/local/Library/Frameworks/Python.framework/Versions/3.8/Python")
- " MacPorts python 3.8
- set pythonthreedll=/opt/local/Library/Frameworks/Python.framework/Versions/3.8/Python
- elseif filereadable("/Library/Frameworks/Python.framework/Versions/3.8/Python")
- " https://www.python.org/downloads/mac-osx/
- set pythonthreedll=/Library/Frameworks/Python.framework/Versions/3.7/Python
- set pythonthreedll=/Library/Frameworks/Python.framework/Versions/3.8/Python
- endif
-endif
-
143 changes: 50 additions & 93 deletions editors/MacVim/files/patch-remove-sparkle.diff
Original file line number Diff line number Diff line change
@@ -1,95 +1,52 @@
--- src/MacVim/English.lproj/Preferences.nib/designable.nib 2018-12-12 12:45:19.000000000 +0100
+++ src/MacVim/English.lproj/Preferences.nib/designable.nib 2018-12-27 15:38:28.000000000 +0100
@@ -75,28 +75,6 @@
<binding destination="58" name="selectedTag" keyPath="values.MMOpenLayout" id="441"/>
</connections>
</popUpButton>
- <textField verticalHuggingPriority="750" id="124">
- <rect key="frame" x="17" y="209" width="187" height="17"/>
- <autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
- <textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="When MacVim launches:" id="976">
- <font key="font" metaFont="system"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <button id="122">
- <rect key="frame" x="207" y="208" width="258" height="18"/>
- <autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
- <string key="toolTip">Checks for updates and presents a dialog box showing the release notes and prompt for whether you want to install the new version.</string>
- <buttonCell key="cell" type="check" title="Check for updates" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="975">
- <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="checkForUpdatesChanged:" target="-2" id="YjS-ig-M1j"/>
- <binding destination="58" name="value" keyPath="values.SUCheckAtStartup" id="169"/>
- </connections>
- </button>
<textField verticalHuggingPriority="750" id="121">
<rect key="frame" x="209" y="50" width="243" height="58"/>
<autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
--- src/MacVim/MacVim.xcodeproj/project.pbxproj 2019-12-29 01:02:12.000000000 +0100
+++ src/MacVim/MacVim.xcodeproj/project.pbxproj 2019-12-29 01:02:12.000000000 +0100
@@ -66,8 +66,6 @@
1DFE25A50C527BC4003000F7 /* PSMTabBarControl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D493DB90C52533B00AB718C /* PSMTabBarControl.framework */; };
52818B031C1C08CE00F59085 /* QLStephen.qlgenerator in Copy QuickLookPlugin */ = {isa = PBXBuildFile; fileRef = 52818AFF1C1C075300F59085 /* QLStephen.qlgenerator */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
528DA66A1426D4F9003380F1 /* macvim-askpass in Copy Scripts */ = {isa = PBXBuildFile; fileRef = 528DA6691426D4EB003380F1 /* macvim-askpass */; };
- 52A364731C4A5789005757EC /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 52A364721C4A5789005757EC /* Sparkle.framework */; };
- 52A364761C4A57C1005757EC /* Sparkle.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 52A364721C4A5789005757EC /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
52B7ED9B1C4A4D6900AFFF15 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = 52B7ED9A1C4A4D6900AFFF15 /* dsa_pub.pem */; };
8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; };
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
@@ -124,7 +122,6 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
- 52A364761C4A57C1005757EC /* Sparkle.framework in Copy Frameworks */,
1D493DBA0C52534300AB718C /* PSMTabBarControl.framework in Copy Frameworks */,
);
name = "Copy Frameworks";
@@ -250,7 +247,6 @@
32CA4F630368D1EE00C91783 /* MacVim_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MacVim_Prefix.pch; sourceTree = "<group>"; };
52818AFA1C1C075300F59085 /* QuickLookStephen.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = QuickLookStephen.xcodeproj; path = qlstephen/QuickLookStephen.xcodeproj; sourceTree = "<group>"; };
528DA6691426D4EB003380F1 /* macvim-askpass */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "macvim-askpass"; sourceTree = "<group>"; };
- 52A364721C4A5789005757EC /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
52B7ED9A1C4A4D6900AFFF15 /* dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = dsa_pub.pem; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
8D1107320486CEB800E47090 /* MacVim.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MacVim.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -395,7 +391,6 @@
1DFE25A50C527BC4003000F7 /* PSMTabBarControl.framework in Frameworks */,
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
1D8B5A53104AF9FF002E59D5 /* Carbon.framework in Frameworks */,
- 52A364731C4A5789005757EC /* Sparkle.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -575,7 +570,6 @@
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
isa = PBXGroup;
children = (
- 52A364721C4A5789005757EC /* Sparkle.framework */,
1D8B5A52104AF9FF002E59D5 /* Carbon.framework */,
1D493DB30C52533B00AB718C /* PSMTabBarControl.xcodeproj */,
1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */,
--- src/MacVim/English.lproj/MainMenu.nib/designable.nib 2019-10-30 12:33:12.000000000 +0100
+++ src/MacVim/English.lproj/MainMenu.nib/designable.nib 2019-12-29 01:07:47.000000000 +0100
@@ -24,11 +24,6 @@
<action selector="orderFrontStandardAboutPanel:" target="-2" id="142"/>
</connections>
</menuItem>
- <menuItem title="Check for Updates…" id="255">
--- src/MacVim/English.lproj/Preferences.nib/designable.nib 2020-09-15 01:22:03.000000000 -0500
+++ src/MacVim/English.lproj/Preferences.nib/designable.nib 2020-09-15 01:36:27.000000000 -0500
@@ -180,49 +180,6 @@
</popUpButton>
</subviews>
</customView>
- <customView fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="0hT-y8-Hge" userLabel="Updater">
- <rect key="frame" x="19" y="22" width="444" height="36"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <subviews>
- <button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="122">
- <rect key="frame" x="188" y="18" width="258" height="18"/>
- <autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
- <string key="toolTip">Checks for updates and presents a dialog box showing the release notes and prompt for whether you want to install the new version.</string>
- <buttonCell key="cell" type="check" title="Check for updates" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="975">
- <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="checkForUpdatesChanged:" target="-2" id="YjS-ig-M1j"/>
- <binding destination="58" name="value" keyPath="values.SUCheckAtStartup" id="169"/>
- </connections>
- </button>
- <button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="UYM-W0-Kgl" userLabel="Auto-install updates">
- <rect key="frame" x="202" y="-2" width="244" height="18"/>
- <autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
- <string key="toolTip">MacVim will automatically download and install updates without prompting. The updated version will be used the next time MacVim starts.</string>
- <buttonCell key="cell" type="check" title="Automatically install updates" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="GfP-vg-mec">
- <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
- <font key="font" metaFont="system"/>
- <connections>
- <action selector="checkForUpdates:" target="Jqk-qh-n0J" id="Wau-rL-cbn"/>
- <binding destination="58" name="enabled" keyPath="values.SUCheckAtStartup" id="5oY-Gf-XJN"/>
- </connections>
- </menuItem>
<menuItem isSeparatorItem="YES" id="196">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
@@ -208,6 +203,5 @@
</items>
<point key="canvasLocation" x="139" y="67"/>
</menu>
- <customObject id="Jqk-qh-n0J" customClass="SUUpdater"/>
</objects>
</document>
- </buttonCell>
- <connections>
- <binding destination="58" name="value" keyPath="values.SUAutomaticallyUpdate" id="kyZ-ah-zKf"/>
- </connections>
- </button>
- <textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="124">
- <rect key="frame" x="-2" y="19" width="187" height="17"/>
- <autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
- <textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="When MacVim launches:" id="976">
- <font key="font" metaFont="system"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- </subviews>
- </customView>
</subviews>
<point key="canvasLocation" x="137.5" y="382"/>
</customView>

0 comments on commit 6418dc0

Please sign in to comment.