2010-12-15 10:17:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Lzlib < Formula
|
2010-12-15 10:17:49 +00:00
|
|
|
homepage 'http://www.nongnu.org/lzip/lzlib.html'
|
2013-09-28 22:42:16 +00:00
|
|
|
url 'http://download.savannah.gnu.org/releases/lzip/lzlib-1.5.tar.gz'
|
|
|
|
sha1 'b89060b72c8357e0d0ca5198d48e97b5650a6d2c'
|
2010-12-15 10:17:49 +00:00
|
|
|
|
|
|
|
def install
|
2011-11-07 23:27:44 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2012-04-10 19:58:06 +00:00
|
|
|
"CC=#{ENV.cc}",
|
|
|
|
"CFLAGS=#{ENV.cflags}"
|
|
|
|
system "make"
|
|
|
|
system "make check"
|
2010-12-15 10:17:49 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|