homebrew-core/Formula/vimpc.rb

34 lines
789 B
Ruby
Raw Normal View History

require 'formula'
class Vimpc < Formula
homepage 'http://sourceforge.net/projects/vimpc/'
url 'http://downloads.sourceforge.net/project/vimpc/Release%200.07.2/vimpc-0.07.2.tar.gz'
sha1 '6ad68075aa540682674e870f9e5dc35a74831196'
head 'https://github.com/richo/vimpc.git'
2012-08-25 16:43:05 +00:00
if build.head?
2012-07-07 18:08:22 +00:00
depends_on :automake
depends_on :libtool
end
depends_on 'pkg-config' => :build
depends_on 'pcre++'
depends_on 'libmpdclient'
def install
2012-08-25 16:43:05 +00:00
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
def test
system "#{bin}/vimpc", "-v"
end
end