aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/vimpc.rb
blob: 8309afa3cc028ced8fe52dbb9b6efdedb938583d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'formula'

class Vimpc < Formula
  url 'http://downloads.sourceforge.net/project/vimpc/Release%200.04/vimpc-0.04.tar.gz'
  homepage 'http://sourceforge.net/projects/vimpc/'
  md5 '5ccc7b8fa3cde6f750b12b39c39778a7'

  head 'https://github.com/richoH/vimpc.git'

  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
    system "vimpc -v"
  end
end