Skip to content

Instantly share code, notes, and snippets.

@megalithic
Forked from voldmar/vim.rb
Created October 26, 2012 03:07
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 megalithic/3956649 to your computer and use it in GitHub Desktop.
Save megalithic/3956649 to your computer and use it in GitHub Desktop.
Fresh homebrew formula for Vim
# To use this recipe you have to:
# $ brew install python --framework
# $ mkdir ~/Frameworks
# $ ln -s "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework" ~/Frameworks
# $ brew install ./vim.rb
require 'formula'
require 'open-uri'
class Vim < Formula
# Get stable versions from hg repo instead of downloading an increasing
# number of separate patches.
tag = open("https://vim.googlecode.com/hg/.hgtags") {|f| f.readlines[-1].split[1] }
url 'https://vim.googlecode.com/hg/', :tag => tag
version tag.tr('v', '').tr('-', '.')
homepage 'http://www.vim.org/'
head 'https://vim.googlecode.com/hg/'
def install
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-gui=no",
"--without-x",
"--disable-nls",
"--enable-multibyte",
"--with-tlib=ncurses",
"--enable-pythoninterp=dynamic",
"--with-python-config-dir=/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config"
"--enable-rubyinterp",
"--with-ruby-command=/usr/local/bin/ruby",
"--with-features=huge",
"--enable-clipboard=yes",
"--enable-xterm_clipboard=yes"
system "make"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment