forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdssim.rb
23 lines (19 loc) · 806 Bytes
/
dssim.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Dssim < Formula
desc "RGBA Structural Similarity Rust implementation"
homepage "https://github.com/kornelski/dssim"
url "https://github.com/kornelski/dssim/archive/2.10.0.tar.gz"
sha256 "1bc9abec552fc64d3951340d95f68212d30e6473a93694db25cf16a0baa9d854"
bottle do
cellar :any_skip_relocation
sha256 "c03454b7582f988de44af524a342e016b3bf63937496450365c758809e79a224" => :mojave
sha256 "f1284c6d8db31ce548232d0e7c0d4204249555ee5a9c92958b2c8bea4deee832" => :high_sierra
sha256 "61c6019667ce76ccc145381eea2131ee3119366b1d54d2878da908eca8f85339" => :sierra
end
depends_on "rust" => :build
def install
system "cargo", "install", "--root", prefix, "--path", "."
end
test do
system "#{bin}/dssim", test_fixtures("test.png"), test_fixtures("test.png")
end
end