diff options
| author | Adam Vandenberg | 2013-06-19 12:19:50 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-19 12:19:50 -0700 |
| commit | 837072104558e3e0d366358acbe6477b7b789cfe (patch) | |
| tree | a4655fc7ef96ee25cbe7deb0171c8764fd0529b9 /Library/Formula/macvim.rb | |
| parent | 2bd51323304827e45a0018cf79fa2f2565dd8e0d (diff) | |
| download | homebrew-837072104558e3e0d366358acbe6477b7b789cfe.tar.bz2 | |
MacVim: only need font when building icons
Closes #20606.
Diffstat (limited to 'Library/Formula/macvim.rb')
| -rw-r--r-- | Library/Formula/macvim.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Formula/macvim.rb b/Library/Formula/macvim.rb index dd8eb0f14..c30df7c7b 100644 --- a/Library/Formula/macvim.rb +++ b/Library/Formula/macvim.rb @@ -1,5 +1,6 @@ require 'formula' +# Reference: https://github.com/b4winckler/macvim/wiki/building class Macvim < Formula homepage 'http://code.google.com/p/macvim/' url 'https://github.com/b4winckler/macvim/archive/snapshot-66.tar.gz' @@ -26,7 +27,6 @@ class Macvim < Formula ENV['ARCHFLAGS'] = "-arch #{arch}" # If building for 10.7 or up, make sure that CC is set to "clang". - # Reference: https://github.com/b4winckler/macvim/wiki/building ENV.clang if MacOS.version >= :lion args = %W[ @@ -73,17 +73,17 @@ class Macvim < Formula system "./configure", *args - # Building custom icons fails for many users, so off by default. - unless build.include? "custom-icons" + if build.include? "custom-icons" + # Get the custom font used by the icons + cd 'src/MacVim/icons' do + system "make getenvy" + end + else + # Building custom icons fails for many users, so off by default. inreplace "src/MacVim/icons/Makefile", "$(MAKE) -C makeicns", "" inreplace "src/MacVim/icons/make_icons.py", "dont_create = False", "dont_create = True" end - # Reference: https://github.com/b4winckler/macvim/wiki/building - cd 'src/MacVim/icons' do - system "make getenvy" - end - system "make" prefix.install "src/MacVim/build/Release/MacVim.app" |
