aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gistit.rb
blob: 58149625699cfb69b03678b0f6dc86a1e2d4ba80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Gistit < Formula
  homepage "http://gistit.herokuapp.com/"
  url "https://github.com/jrbasso/gistit/archive/v0.1.3.tar.gz"
  sha1 "62b9797a656b15da9196b6c9ee355c0c81bdc3ac"

  depends_on "autoconf" => :build
  depends_on "automake" => :build
  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