2013-04-09 20:34:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gistit < Formula
|
|
|
|
homepage 'http://gistit.herokuapp.com/'
|
2013-05-06 17:41:19 +00:00
|
|
|
url 'https://github.com/jrbasso/gistit/archive/v0.1.2.tar.gz'
|
|
|
|
sha1 '9b20f3c0f81a9cb07e904e4f98f727e07caab8f3'
|
2013-04-09 20:34:17 +00:00
|
|
|
|
2014-06-01 01:39:25 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "jansson"
|
2013-04-09 20:34:17 +00:00
|
|
|
|
|
|
|
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
|
2013-06-09 02:26:20 +00:00
|
|
|
system "#{bin}/gistit", "-v"
|
2013-04-09 20:34:17 +00:00
|
|
|
end
|
|
|
|
end
|