homebrew-core/Formula/lzop.rb

35 lines
956 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Lzop < Formula
desc "File compressor"
homepage "http://www.lzop.org/"
url "http://www.lzop.org/download/lzop-1.03.tar.gz"
sha256 "c1425b8c77d49f5a679d5a126c90ea6ad99585a55e335a613cae59e909dbb2c9"
2015-04-12 12:36:37 +00:00
bottle do
cellar :any
sha256 "8948b68bd5f6ca91371dfbd3522c60015f1010e389ff138e12460bec3ade52b6" => :yosemite
sha256 "dd86655bbf09a2d39c2b357fd8d19daec04516ed6d9d471e5d7031aed1a64d0d" => :mavericks
sha256 "0fe2af0dba0474808f9f4979e4db3cd2c1be4df1f2237c75a9a323283c894280" => :mountain_lion
end
depends_on "lzo"
def install
2013-01-29 05:30:24 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
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
end
end