aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lzlib.rb
blob: 9b5a186ef7b29ef000ab5340b5a0865fc91c045e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require "formula"

class Lzlib < Formula
  homepage "http://www.nongnu.org/lzip/lzlib.html"
  url "http://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-1.6.tar.gz"
  sha1 "4a24e4d17df3fd90f53866ace922c831f26600f6"

  bottle do
    cellar :any
    sha1 "9a805d032470d6d0f1f45fea1498e48709816bc7" => :mavericks
    sha1 "c6591a5842abc95dbfeec294555193b3e1cd85c7" => :mountain_lion
    sha1 "3e1261f5acf7ec50ea10dc55d6ed5e22368bf39c" => :lion
  end

  def install
    system "./configure", "--prefix=#{prefix}",
                          "CC=#{ENV.cc}",
                          "CFLAGS=#{ENV.cflags}"
    system "make"
    system "make check"
    system "make install"
  end
end