Skip to content

Instantly share code, notes, and snippets.

@castor4bit
Forked from mugijiru/vim.rb
Created July 16, 2012 03:54
Show Gist options
  • Save castor4bit/3120384 to your computer and use it in GitHub Desktop.
Save castor4bit/3120384 to your computer and use it in GitHub Desktop.
Homebrew Formula for vim+ruby
require 'formula'
class Vim < Formula
# url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2' url 'https://vim.googlecode.com/hg/', :tag => 'v7-3-600' version '7.3.600'
homepage 'http://www.vim.org/'
# md5 '5b9510a17074e2b37d8bb38ae09edbf2'
head 'https://vim.googlecode.com/hg/'
# depends_on 'cmake' => :build
def install
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-gui=no",
"CPPFLAGS=-arch x86_64",
"LDFLAGS=-L/usr/lib",
"CFLAGS=-g -O2",
"--without-x",
"--disable-nls",
"--disable-gpm",
"--enable-multibyte",
"--enable-256-color",
"--with-tlib=ncurses",
"--enable-perlinterp",
"--enable-rubyinterp",
"--with-ruby-command=/usr/bin/ruby",
"--enable-pythoninterp",
"--enable-cscope",
"--with-features=huge"
# system "cmake . #{std_cmake_parameters}"
system "make"
system "make install"
end
def test
# This test will fail and we won't accept that! It's enough to just
# replace "false" with the main program this formula installs, but
# it'd be nice if you were more thorough. Test the test with
# `brew test vim`. Remove this comment before submitting
# your pull request!
system "false"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment