Skip to content

Instantly share code, notes, and snippets.

@mugijiru
Created January 8, 2012 14:52
Show Gist options
  • Save mugijiru/1578591 to your computer and use it in GitHub Desktop.
Save mugijiru/1578591 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/', :revision => '48252b5fd170'
version '7.3.390'
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",
"--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