34 lines
1.0 KiB
Ruby
34 lines
1.0 KiB
Ruby
class Jo < Formula
|
|
desc "JSON output from a shell"
|
|
homepage "https://github.com/jpmens/jo"
|
|
url "https://github.com/jpmens/jo/releases/download/1.4/jo-1.4.tar.gz"
|
|
sha256 "24c64d2eb863900947f58f32b502c95fec8f086105fd31151b91f54b7b5256a2"
|
|
license "GPL-2.0"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "15bee62d31331c60c1768949ca11916d242fbe96aafcdc7a66a8359c0f4a9c3c" => :catalina
|
|
sha256 "6741c18bb9a9519e325ac4b30989cdd0c735107ee34772097d3d8fde103880eb" => :mojave
|
|
sha256 "bd19a24ded348995844cf428f74729dc91b3c23a9f144ca1b117108c3d3b5401" => :high_sierra
|
|
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
|
|
assert_equal %Q({"success":true,"result":"pass"}\n), pipe_output("#{bin}/jo success=true result=pass")
|
|
end
|
|
end
|