2013-03-08 13:27:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libsodium < Formula
|
|
|
|
homepage 'https://github.com/jedisct1/libsodium/'
|
2013-07-11 21:17:22 +00:00
|
|
|
url 'http://download.dnscrypt.org/libsodium/releases/libsodium-0.4.2.tar.gz'
|
|
|
|
sha256 '1a7901cdd127471724e854a8eb478247dc0ca67be549345c75fc6f2d4e05ed39'
|
2013-04-28 20:06:16 +00:00
|
|
|
|
|
|
|
option :universal
|
2013-03-08 13:27:32 +00:00
|
|
|
|
|
|
|
def install
|
2013-04-28 20:06:16 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2013-03-08 13:27:32 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make check"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|