homebrew-core/Formula/libsodium.rb
2014-10-20 08:05:58 +01:00

35 lines
1,002 B
Ruby

require "formula"
class Libsodium < Formula
homepage "https://github.com/jedisct1/libsodium/"
url "https://github.com/jedisct1/libsodium/releases/download/1.0.0/libsodium-1.0.0.tar.gz"
sha256 "ced1fe3d2066953fea94f307a92f8ae41bf0643739a44309cbe43aa881dbc9a5"
bottle do
cellar :any
revision 1
sha1 "1432ec12353213ebfbb8e31e839eea9cedba7d2d" => :yosemite
sha1 "8b66ef0a978e3aac54036f447053585b809a6e40" => :mavericks
sha1 "9b6cc830b3b36e20ac8dcfc076e450ba1505c46f" => :mountain_lion
end
head do
url "https://github.com/jedisct1/libsodium.git"
depends_on "libtool" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
end
option :universal
def install
ENV.universal_binary if build.universal?
system "./autogen.sh" if build.head?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make check"
system "make install"
end
end