2011-03-10 05:11:03 +00:00
|
|
|
class Lzop < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "File compressor"
|
2015-04-12 10:37:17 +00:00
|
|
|
homepage "http://www.lzop.org/"
|
|
|
|
url "http://www.lzop.org/download/lzop-1.03.tar.gz"
|
|
|
|
sha256 "c1425b8c77d49f5a679d5a126c90ea6ad99585a55e335a613cae59e909dbb2c9"
|
2010-04-26 14:42:56 +00:00
|
|
|
|
2015-04-12 12:36:37 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "8948b68bd5f6ca91371dfbd3522c60015f1010e389ff138e12460bec3ade52b6" => :yosemite
|
|
|
|
sha256 "dd86655bbf09a2d39c2b357fd8d19daec04516ed6d9d471e5d7031aed1a64d0d" => :mavericks
|
|
|
|
sha256 "0fe2af0dba0474808f9f4979e4db3cd2c1be4df1f2237c75a9a323283c894280" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-04-12 10:37:17 +00:00
|
|
|
depends_on "lzo"
|
2010-04-26 14:42:56 +00:00
|
|
|
|
|
|
|
def install
|
2013-01-29 05:30:24 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2015-04-12 10:37:17 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
path = testpath/"test"
|
|
|
|
text = "This is Homebrew"
|
|
|
|
path.write text
|
|
|
|
|
|
|
|
system "#{bin}/lzop", "test"
|
|
|
|
assert File.exist?("test.lzo")
|
|
|
|
rm path
|
|
|
|
|
|
|
|
system "#{bin}/lzop", "-d", "test.lzo"
|
|
|
|
assert_equal text, path.read
|
2010-04-26 14:42:56 +00:00
|
|
|
end
|
|
|
|
end
|