Skip to content

Instantly share code, notes, and snippets.

@flori
Created May 30, 2013 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flori/5677881 to your computer and use it in GitHub Desktop.
Save flori/5677881 to your computer and use it in GitHub Desktop.
diff --git a/Library/Formula/vim.rb b/Library/Formula/vim.rb
index d3f5ff2..ccc8cdc 100644
--- a/Library/Formula/vim.rb
+++ b/Library/Formula/vim.rb
@@ -5,6 +5,7 @@ class Vim < Formula
# This package tracks debian-unstable: http://packages.debian.org/unstable/vim
url 'http://ftp.de.debian.org/debian/pool/main/v/vim/vim_7.3.923.orig.tar.gz'
sha1 'f308d219dd9c6b56e84109ace4e7487a101088f5'
+ depends_on 'gtk+'
head 'https://vim.googlecode.com/hg/'
env :std # To find interpreters
@@ -47,12 +48,14 @@ class Vim < Formula
# when calling "make install".
system "./configure", "--prefix=#{HOMEBREW_PREFIX}",
"--mandir=#{man}",
- "--enable-gui=no",
- "--without-x",
+ "--enable-gui=gtk2",
+ "--with-x",
"--enable-multibyte",
"--with-tlib=ncurses",
"--enable-cscope",
+ "--enable-rubyinterp",
"--with-features=huge",
+ "--with-ruby-command=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby",
*opts
system "make"
# If stripping the binaries is not enabled, vim will segfault with
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment