2011-12-28 04:47:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Vimpc < Formula
|
|
|
|
homepage 'http://sourceforge.net/projects/vimpc/'
|
2012-02-10 04:36:23 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/vimpc/Release%200.05/vimpc-0.05.tar.gz'
|
|
|
|
md5 'f96cdc10827ddfbb53318e9ab4bab93b'
|
2011-12-28 04:47:41 +00:00
|
|
|
|
2012-05-11 15:35:50 +00:00
|
|
|
head 'https://github.com/richo/vimpc.git'
|
2011-12-28 04:47:41 +00:00
|
|
|
|
2012-07-07 18:08:22 +00:00
|
|
|
if ARGV.build_head?
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
|
|
|
|
2011-12-28 04:47:41 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'pcre++'
|
|
|
|
depends_on 'libmpdclient'
|
|
|
|
|
|
|
|
def install
|
|
|
|
if ARGV.build_head?
|
|
|
|
ENV['ACLOCAL_FLAGS'] = "-I #{HOMEBREW_PREFIX}/share/aclocal"
|
|
|
|
system "./autogen.sh"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/vimpc", "-v"
|
2011-12-28 04:47:41 +00:00
|
|
|
end
|
|
|
|
end
|