2010-02-06 19:12:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Bcrypt < Formula
|
2010-02-06 19:12:04 +00:00
|
|
|
url 'http://bcrypt.sourceforge.net/bcrypt-1.1.tar.gz'
|
|
|
|
homepage 'http://bcrypt.sourceforge.net'
|
|
|
|
md5 '8ce2873836ccd433329c8df0e37e298c'
|
|
|
|
|
|
|
|
def install
|
2010-02-07 00:05:34 +00:00
|
|
|
inreplace "Makefile" do |s|
|
|
|
|
s.change_make_var! "CC", ENV.cc
|
2010-08-10 15:05:31 +00:00
|
|
|
s.change_make_var! "CFLAGS", ENV.cflags
|
2010-02-07 00:05:34 +00:00
|
|
|
s.change_make_var! "LDFLAGS", "-lz"
|
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-02-06 19:12:04 +00:00
|
|
|
system "make"
|
2010-02-07 00:05:34 +00:00
|
|
|
bin.install "bcrypt"
|
|
|
|
man1.install gzip("bcrypt.1")
|
2010-02-06 19:12:04 +00:00
|
|
|
end
|
|
|
|
end
|