blob: 945d8addc33829c5a09bb3e0206fba0d4d9a06fb (
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
  | 
require 'formula'
class Expat < Formula
  homepage 'http://expat.sourceforge.net/'
  url 'https://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz'
  sha1 'b08197d146930a5543a7b99e871cba3da614f6f0'
  bottle do
    cellar :any
    sha1 "2d12120ed9ff4835d8c5c31ef1699629dc0f480a" => :mavericks
    sha1 "f2158bd85b4f592df187d2819635dd868b58e023" => :mountain_lion
    sha1 "9be7ecfc6f4e2e58361af84e303214b842c652b7" => :lion
  end
  option :universal
  def install
    ENV.universal_binary if build.universal?
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make install"
  end
  def caveats
    "Note that OS X has Expat 1.5 installed in /usr already."
  end
end
  |