2014-07-03 10:01:34 +00:00
|
|
|
require "formula"
|
2013-03-08 13:27:32 +00:00
|
|
|
|
|
|
|
class Libsodium < Formula
|
2014-07-03 10:01:34 +00:00
|
|
|
homepage "https://github.com/jedisct1/libsodium/"
|
2014-07-21 01:54:35 +00:00
|
|
|
url "https://github.com/jedisct1/libsodium/releases/download/0.6.1/libsodium-0.6.1.tar.gz"
|
|
|
|
sha256 "04ccfeebd23659f3a1f73a828d1b88b984f9c984176f388daf77fe3968cc3694"
|
2013-04-28 20:06:16 +00:00
|
|
|
|
2014-07-03 12:04:01 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-07-21 02:00:53 +00:00
|
|
|
sha1 "f59cd52a8ce5489eb989f1cbfc2dd56227edd93c" => :mavericks
|
|
|
|
sha1 "56dbbe1b78ee2dc9f15ed69b04f59bfa572debc0" => :mountain_lion
|
|
|
|
sha1 "e4ac5b9a58b5cb236d907541729bfcfa567f44e1" => :lion
|
2014-07-03 12:04:01 +00:00
|
|
|
end
|
|
|
|
|
2013-09-22 01:47:16 +00:00
|
|
|
head do
|
2014-07-03 10:01:34 +00:00
|
|
|
url "https://github.com/jedisct1/libsodium.git"
|
2013-09-06 14:15:22 +00:00
|
|
|
|
2014-07-03 10:01:34 +00:00
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
2013-09-06 14:15:22 +00:00
|
|
|
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
|