mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-07 10:32:36 -05:00
sync with https://github.com/Homebrew/homebrew-core/blob/6d7f8960ebb53bc2bb6196a1b51e41b15525f38f/Formula/s/ssdeep.rb
25 lines
760 B
Ruby
25 lines
760 B
Ruby
class Ssdeep < Formula
|
|
desc "Recursive piecewise hashing tool"
|
|
homepage "https://ssdeep-project.github.io/ssdeep/"
|
|
url "https://github.com/ssdeep-project/ssdeep/releases/download/release-2.14.1/ssdeep-2.14.1.tar.gz"
|
|
sha256 "ff2eabc78106f009b4fb2def2d76fb0ca9e12acf624cbbfad9b3eb390d931313"
|
|
license "GPL-2.0-or-later"
|
|
|
|
bottle do
|
|
cellar :any
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
expected = <<-EOS.undent
|
|
ssdeep,1.1--blocksize:hash:hash,filename
|
|
192:1xJsxlk/aMhud9Eqfpm0sfQ+CfQoDfpw3RtU:1xJsPMIdOqBCYLYYB7,"#{include}/fuzzy.h"
|
|
EOS
|
|
assert_equal expected, shell_output("#{bin}/ssdeep #{include}/fuzzy.h")
|
|
end
|
|
end
|