2012-01-16 16:27:12 +00:00
|
|
|
class Jshon < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Parse, read, and create JSON from the shell"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://kmkeen.com/jshon/"
|
|
|
|
url "http://kmkeen.com/jshon/jshon.tar.gz"
|
|
|
|
version "8"
|
|
|
|
sha256 "bb8ffdbda89a24f15d23af06d23fc4a9a4319503eb631cc64a5eb4c25afd45fb"
|
2012-01-16 16:27:12 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "jansson"
|
2012-01-16 16:27:12 +00:00
|
|
|
|
|
|
|
def install
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make"
|
|
|
|
bin.install "jshon"
|
|
|
|
man1.install "jshon.1"
|
2012-01-16 16:27:12 +00:00
|
|
|
end
|
|
|
|
|
2013-03-26 15:45:52 +00:00
|
|
|
test do
|
2014-05-04 19:12:41 +00:00
|
|
|
assert_equal "3", pipe_output("#{bin}/jshon -l", "[true,false,null]").strip
|
2012-01-16 16:27:12 +00:00
|
|
|
end
|
|
|
|
end
|