aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/vcprompt.rb
blob: 4f914a0a3fb5221eeb56a1c7a356b53b4a110cab (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
29
require 'formula'

class Vcprompt < Formula
  homepage 'https://bitbucket.org/gward/vcprompt'
  url 'https://bitbucket.org/gward/vcprompt/downloads/vcprompt-1.2.tar.gz'
  sha1 '5e46cc8525f823ecd66c624903f15f5c50276290'

  head do
    url 'hg://https://bitbucket.org/gward/vcprompt'
    depends_on :autoconf
  end

  depends_on 'sqlite'

  def install
    system "autoconf" if build.head?

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"

    system "make", "PREFIX=#{prefix}",
                   "MANDIR=#{man1}",
                   "install"
  end

  test do
    system "#{bin}/vcprompt"
  end
end