Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fukamachi
Last active August 29, 2015 14:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fukamachi/0a720525eda20a6ba53a to your computer and use it in GitHub Desktop.
Save fukamachi/0a720525eda20a6ba53a to your computer and use it in GitHub Desktop.
libbcrypt.rb
require "formula"
class Libbcrypt < Formula
homepage "https://github.com/Rudolph-Miller/openwall-bcrypt"
url "https://github.com/Rudolph-Miller/openwall-bcrypt/archive/53444382b1f03f41f8757493f26f6eae66320d02.tar.gz"
version '1.1'
sha1 "6ad0f93367e7036e4c4c876d44c39cc00bbb584f"
def install
system "make", "library"
ext = OS.mac? ? 'dylib' : 'so'
lib.install "libbcrypt.#{version}.#{ext}"
lib.install_symlink "libbcrypt.#{version}.#{ext}" => "libbcrypt.#{ext}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment