-
-
Save satyrius/1635076 to your computer and use it in GitHub Desktop.
Homebrew formula for VIM with python interpreter support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install python --framework | |
mkdir ~/Library/Frameworks/ | |
cd ~/Library/Frameworks/ | |
ln -s /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework . | |
brew install -v https://gist.github.com/satyrius/1635076/raw/vim.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
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", | |
"--enable-multibyte", | |
"--with-tlib=ncurses", | |
"--enable-pythoninterp=dynamic", | |
"--with-python-config-dir=/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config", | |
"--with-features=huge" | |
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