homebrew-core/Formula/sdhash.rb
Mark A. Matienzo f8ec677543 sdhash: Fix typo in Makefile's LDFLAGS
Closes Homebrew/homebrew#15846.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-11-04 15:39:27 -08:00

22 lines
679 B
Ruby

require 'formula'
class Sdhash < Formula
homepage 'http://roussev.net/sdhash/sdhash.html'
url 'http://roussev.net/sdhash/releases/packages/sdhash-2.3.tar.gz'
sha1 '711a7d3fdc2bf0d27e034078a4369b8489215654'
def install
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
system 'make', 'boost'
system 'make', 'stream'
bin.install 'sdhash'
man1.install Dir['man/*.1']
end
def test
system "#{bin}/sdhash"
end
end