2012-07-26 16:20:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Sdhash < Formula
|
|
|
|
homepage 'http://roussev.net/sdhash/sdhash.html'
|
2013-03-22 00:05:29 +00:00
|
|
|
url 'http://roussev.net/sdhash/releases/packages/sdhash-3.1.tar.gz'
|
|
|
|
sha1 '0539d05a9c68aee509ca2d2dee30e5067dc211d0'
|
2012-07-26 16:20:16 +00:00
|
|
|
|
|
|
|
def install
|
2012-11-04 18:58:36 +00:00
|
|
|
inreplace "Makefile" do |s|
|
|
|
|
# Remove space between -L and the path (reported upstream)
|
|
|
|
s.change_make_var! "LDFLAGS", "-L. -L./external/stage/lib -lboost_regex -lboost_system -lboost_filesystem -lboost_program_options -lc -lm -lcrypto -lboost_thread -lpthread"
|
|
|
|
end
|
2012-10-19 05:24:11 +00:00
|
|
|
system 'make', 'boost'
|
|
|
|
system 'make', 'stream'
|
2012-07-26 16:20:16 +00:00
|
|
|
bin.install 'sdhash'
|
|
|
|
man1.install Dir['man/*.1']
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-07-26 16:20:16 +00:00
|
|
|
system "#{bin}/sdhash"
|
|
|
|
end
|
|
|
|
end
|