2013-03-08 13:27:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libsodium < Formula
|
|
|
|
homepage 'https://github.com/jedisct1/libsodium/'
|
2014-05-14 19:17:16 +00:00
|
|
|
url 'https://github.com/jedisct1/libsodium/releases/download/0.5.0/libsodium-0.5.0.tar.gz'
|
|
|
|
sha256 '3ca0a0619199a2adb3449eb7f1bf6e1f4fb2ef8514da9133f7f043b8b5cdf9f0'
|
2013-04-28 20:06:16 +00:00
|
|
|
|
2013-09-22 01:47:16 +00:00
|
|
|
head do
|
|
|
|
url 'https://github.com/jedisct1/libsodium.git'
|
2013-09-06 14:15:22 +00:00
|
|
|
|
|
|
|
depends_on 'libtool' => :build
|
|
|
|
depends_on 'autoconf' => :build
|
|
|
|
depends_on 'automake' => :build
|
|
|
|
end
|
|
|
|
|
2013-09-22 01:47: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-09-06 14:15:22 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
|
|
|
|
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
|