aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libyaml.rb
blob: f14faf31747446ea619d84faeb85b76f4bc68969 (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
require "formula"

class Libyaml < Formula
  homepage "http://pyyaml.org/wiki/LibYAML"
  url "http://pyyaml.org/download/libyaml/yaml-0.1.6.tar.gz"
  mirror "https://mirrors.kernel.org/debian/pool/main/liby/libyaml/libyaml_0.1.6.orig.tar.gz"
  sha1 "f3d404e11bec3c4efcddfd14c42d46f1aabe0b5d"

  bottle do
    cellar :any
    revision 1
    sha1 "1d30f0a8143ef4b66d4bbc07a739039ab216f2a2" => :yosemite
    sha1 "59463ec0044fa00929d7bb272e8ed4aa202c57cf" => :mavericks
    sha1 "6cf822fb1c5377243dfe458fb663800612a4b131" => :mountain_lion
  end

  option :universal

  def install
    ENV.universal_binary if build.universal?

    system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
    system "make", "install"
  end
end