diff options
| author | Mark A. Matienzo | 2012-07-26 12:20:16 -0400 |
|---|---|---|
| committer | Misty De Meo | 2012-08-13 15:57:44 -0500 |
| commit | c4c270596483e53ae49026e93c98a5fea1b743b0 (patch) | |
| tree | 05c06544c3a3e0ffee6556603814c036ea0fdd13 /Library/Formula | |
| parent | 8f626e696fc807c65c5a14e04f266c32a5cbc53a (diff) | |
| download | homebrew-c4c270596483e53ae49026e93c98a5fea1b743b0.tar.bz2 | |
New formula: sdhash
sdhash is a tool for generating and comparing similarity digest hashes.
When comparing these hashes, it gives a confidence level as to how
similar two objects are to each other.
Closes #13753.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sdhash.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/sdhash.rb b/Library/Formula/sdhash.rb new file mode 100644 index 000000000..a68c8e8e1 --- /dev/null +++ b/Library/Formula/sdhash.rb @@ -0,0 +1,23 @@ +require 'formula' + +class Sdhash < Formula + homepage 'http://roussev.net/sdhash/sdhash.html' + url 'http://roussev.net/sdhash/releases/packages/sdhash-2.2.tar.gz' + sha1 '2039bbc0c25c7ff6bd6e27a0844f10ec8a88dfec' + + depends_on "boost" + + def install + inreplace 'Makefile' do |s| + s.change_make_var! "LDFLAGS", "#{ENV.ldflags} -lboost_regex-mt -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lc -lm -lcrypto -lboost_thread-mt -lpthread" + end + system "make", "stream" + system "make", "man" + bin.install 'sdhash' + man1.install Dir['man/*.1'] + end + + def test + system "#{bin}/sdhash" + end +end |
