aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lzlib.rb
blob: fd77d03b7ccc14557c26d85f8a823a3f271c5559 (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-1.5.tar.gz'
  sha1 'b89060b72c8357e0d0ca5198d48e97b5650a6d2c'

  bottle do
    cellar :any
    sha1 "31e2cdf3e199f746189eefcd0a5c0fa4bc69caba" => :mavericks
    sha1 "ca854e06e248bf072272ffd723484c4254e0bc89" => :mountain_lion
    sha1 "4b2b4abb16165cb0931b3ed197851410a2c46684" => :lion
  end

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