blob: f6ec27bf634b30bcddd33d929ecc96681dbb48f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  | 
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
  |