2011-12-28 04:47:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Vimpc < Formula
|
|
|
|
homepage 'http://sourceforge.net/projects/vimpc/'
|
2013-08-17 16:48:21 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/vimpc/Release%200.08.1/vimpc-0.08.1.tar.gz'
|
|
|
|
sha1 '2620e7148b4cac7472952690e5b5df199188d3c8'
|
2011-12-28 04:47:41 +00:00
|
|
|
|
2013-09-22 01:47:49 +00:00
|
|
|
head do
|
|
|
|
url 'https://github.com/boysetsfrog/vimpc.git'
|
2011-12-28 04:47:41 +00:00
|
|
|
|
2013-11-13 17:01:29 +00:00
|
|
|
depends_on :autoconf
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
|
|
|
|
2011-12-28 04:47:41 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libmpdclient'
|
2013-08-18 05:05:41 +00:00
|
|
|
depends_on 'pcre'
|
2011-12-28 04:47:41 +00:00
|
|
|
|
|
|
|
def install
|
2012-08-25 16:43:05 +00:00
|
|
|
if build.head?
|
2011-12-28 04:47:41 +00:00
|
|
|
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
|