homebrew-core/Formula/vimpc.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

34 lines
811 B
Ruby

require 'formula'
class Vimpc < Formula
homepage 'http://sourceforge.net/projects/vimpc/'
url 'http://downloads.sourceforge.net/project/vimpc/Release%200.08.1/vimpc-0.08.1.tar.gz'
sha1 '2620e7148b4cac7472952690e5b5df199188d3c8'
head do
url 'https://github.com/boysetsfrog/vimpc.git'
depends_on :autoconf
depends_on :automake
depends_on :libtool
end
depends_on 'pkg-config' => :build
depends_on 'libmpdclient'
depends_on 'pcre'
def install
if 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
test do
system "#{bin}/vimpc", "-v"
end
end