homebrew-core/Formula/spaceman-diff.rb
Chris Streeter 24742f60d8 spaceman-diff 1.0.2
Closes Homebrew/homebrew#47981.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-12 17:47:25 +08:00

25 lines
699 B
Ruby

class SpacemanDiff < Formula
desc "Diff images from the command-line"
homepage "https://github.com/holman/spaceman-diff"
url "https://github.com/holman/spaceman-diff/archive/1.0.2.tar.gz"
sha256 "aae3d16d5c486c34127ac836cfb6d30ab45c9dea4c66212a412f7aab83eb6da2"
head "https://github.com/holman/spaceman-diff.git"
bottle :unneeded
depends_on "jp2a"
depends_on "imagemagick"
def install
bin.install "spaceman-diff"
end
test do
output = shell_output("#{bin}/spaceman-diff")
assert_match /USAGE/, output
png = test_fixtures("test.png")
system "script", "-q", "/dev/null", "#{bin}/spaceman-diff", png, "a190ba", "100644", png, "000000", "100644"
end
end