aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gistit.rb
blob: 93c72442690cce8c5d800e6412804447be7e3fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class Gistit < Formula
  homepage 'http://gistit.herokuapp.com/'
  url 'https://github.com/jrbasso/gistit/archive/v0.1.1.tar.gz'
  sha1 '882269ea6f88f46d9ca0a136fa96124c5cc8cd82'

  depends_on :autoconf
  depends_on :automake
  depends_on 'jansson'

  def install
    mv "configure.in", "configure.ac" # silence warning
    system "./autogen.sh", "--disable-dependency-tracking",
                           "--prefix=#{prefix}"
    system "make"
    system "make install"
  end

  test do
    system "#{bin}/gistit -v"
  end
end