Skip to content

Commit bcb732d

Browse files
committed
macvim: application icon fix
See pull request #1191 for screenshots
1 parent d26b0fd commit bcb732d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Library/Formula/macvim.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ class Macvim < Formula
1919
version "7.4-80"
2020
sha256 "b07e0fe35e22f30ad2be5f9700e0fca9d3f4a1e91c68b0fdd607f0f732912923"
2121

22-
2322
head "https://github.com/macvim-dev/macvim.git"
2423

24+
# Use icon from older build otherwise app in the dock has a blank icon on Tiger.
25+
resource "compatible-icon" do
26+
url "https://raw.githubusercontent.com/macvim-dev/macvim/refs/tags/snapshot-70/src/MacVim/icons/MacVim.icns"
27+
sha256 "1c0b2eaf7f369f958e0b9b81a02a7b8a0798f5d15007468a97abebd626950396"
28+
end
29+
2530
option "with-custom-icons", "Try to generate custom document icons"
2631
option "with-override-system-vim", "Override system vim"
2732

@@ -51,6 +56,9 @@ def install
5156
# If building for 10.7 or up, make sure that CC is set to "clang".
5257
ENV.clang if MacOS.version >= :lion
5358

59+
# Overwrite the supplied MacVim.icns with the version from older build.
60+
(buildpath/"src/MacVim/icons/").install resource("compatible-icon")
61+
5462
args = %W[
5563
--with-features=huge
5664
--enable-multibyte

0 commit comments

Comments
 (0)