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'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'fd4c7c83fdc560f143bb0e0a8c9fb7aa57e69698'
|
2010-02-06 19:12:04 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-10 02:31:40 +00:00
|
|
|
system "make", "CC=#{ENV.cc}",
|
|
|
|
"CFLAGS=#{ENV.cflags}",
|
|
|
|
"LDFLAGS=-lz"
|
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
|