2010-12-15 10:24:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Plzip < Formula
|
2010-12-15 10:24:27 +00:00
|
|
|
homepage 'http://www.nongnu.org/lzip/plzip.html'
|
2012-04-18 03:52:19 +00:00
|
|
|
url 'http://download.savannah.gnu.org/releases/lzip/plzip-0.9.tar.gz'
|
|
|
|
sha1 '051d9094a4d7b98c76b92ad2e48e963ca5bf100f'
|
2010-12-15 10:24:27 +00:00
|
|
|
|
|
|
|
depends_on 'lzlib'
|
|
|
|
|
|
|
|
def install
|
2012-04-18 03:52:19 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "CXX=#{ENV.cxx}",
|
|
|
|
"CXXFLAGS=#{ENV.cflags}"
|
|
|
|
system "make"
|
|
|
|
system "make check"
|
2010-12-15 10:24:27 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|