homebrew-core/Formula/jo.rb

34 lines
1.1 KiB
Ruby
Raw Normal View History

class Jo < Formula
desc "JSON output from a shell"
homepage "https://github.com/jpmens/jo"
url "https://github.com/jpmens/jo/releases/download/v1.0/jo-1.0.tar.gz"
sha256 "d66ec97258d1afad15643fb2d5b5e807153a732ba45c2417adc66669acbde52e"
2016-03-13 17:34:16 +00:00
bottle do
cellar :any_skip_relocation
2016-09-29 18:42:28 +00:00
sha256 "776d6f4bcaed2fd57b0fa313331a905c7e47a31ec13629559c9e48853f22777e" => :sierra
2016-03-13 17:34:16 +00:00
sha256 "c94c62f3918266cbd688da0b54274226f0fc5d31b311b6be47f523d184f3e503" => :el_capitan
sha256 "c46c74107062d4b419255e5a3bc44caea10cbc2ee290e7fdfbaa1dd254b18e4b" => :yosemite
sha256 "25e096147b71cdfe6f6230b6340c577335517fabbbf05027f41db4878629f726" => :mavericks
end
head do
url "https://github.com/jpmens/jo.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
end
def install
system "autoreconf", "-i" if build.head?
system "./configure", "--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
2016-10-22 12:33:54 +00:00
assert_equal %Q({"success":true,"result":"pass"}\n), pipe_output("#{bin}/jo success=true result=pass")
end
end