homebrew-core/Formula/dssim.rb

26 lines
852 B
Ruby

class Dssim < Formula
desc "RGBA Structural Similarity Rust implementation"
homepage "https://github.com/kornelski/dssim"
url "https://github.com/kornelski/dssim/archive/2.11.3.tar.gz"
sha256 "fa254c8f625e3ffdf563e4e665ac1e345195073cb57415bc2034c6ad602a76cb"
license "AGPL-3.0-or-later"
bottle do
cellar :any_skip_relocation
sha256 "a45bab9dbd7de721418a18394c0b70dc66fcd44050c14a04b87e97687aa316a1" => :catalina
sha256 "2c7b025773e8f419bd0edab3815e243708b47f60ad62fa4595fa5726c1ab77d0" => :mojave
sha256 "288735020c3dca238550306be4e1ca80636539c2b779211889f9f485e7b8b610" => :high_sierra
end
depends_on "nasm" => :build
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
end
test do
system "#{bin}/dssim", test_fixtures("test.png"), test_fixtures("test.png")
end
end