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'
|
2013-09-29 00:19:12 +00:00
|
|
|
url 'http://download.savannah.gnu.org/releases/lzip/plzip-1.1.tar.gz'
|
|
|
|
sha1 '22d3bba78b9219e7976372e24773d3abc0ff4563'
|
2010-12-15 10:24:27 +00:00
|
|
|
|
|
|
|
depends_on 'lzlib'
|
|
|
|
|
2014-04-11 05:34:22 +00:00
|
|
|
# Stable doesn't build with clang, but 1.2-pre does
|
|
|
|
devel do
|
|
|
|
url 'http://download.savannah.gnu.org/releases/lzip/plzip-1.2-pre1.tar.lz'
|
|
|
|
sha1 '2fbca2f13ff185f1e9824b8fa34ffba79fb7197f'
|
|
|
|
end
|
|
|
|
|
2010-12-15 10:24:27 +00:00
|
|
|
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
|