2014-03-06 13:01:47 +00:00
|
|
|
class Lhasa < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "LHA implementation to decompress .lzh and .lzs archives"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://fragglet.github.io/lhasa/"
|
2015-09-14 06:25:09 +00:00
|
|
|
url "https://github.com/fragglet/lhasa/archive/v0.3.0.tar.gz"
|
|
|
|
sha256 "b9baae6508e6028a0cb871be7e4669be508542644382794d88d44744b9efdbe0"
|
2014-03-06 13:01:47 +00:00
|
|
|
head "https://github.com/fragglet/lhasa.git"
|
|
|
|
|
2014-03-06 20:34:40 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-09-14 16:56:37 +00:00
|
|
|
sha256 "e165d272782133234ee3064fcb3dcac1923c3fe5d79891cb181619b6d8e79dde" => :yosemite
|
|
|
|
sha256 "c7c28b850933f06b27a7af32a73a840437663aa334010eb097ecb7f3ff6dd4c1" => :mavericks
|
|
|
|
sha256 "af8aac8f99b3cf42dde5e69d0f18e1e72370cde24b3b00fb1577fd5a99e54489" => :mountain_lion
|
2014-03-06 20:34:40 +00:00
|
|
|
end
|
|
|
|
|
2014-03-06 13:01:47 +00:00
|
|
|
conflicts_with "lha", :because => "both install a `lha` binary"
|
|
|
|
|
|
|
|
depends_on "pkg-config" => :build
|
2014-06-01 01:39:26 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2014-03-06 13:01:47 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./autogen.sh", "--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-10-09 10:15:15 +00:00
|
|
|
data = [
|
|
|
|
%w[
|
|
|
|
31002d6c68302d0400000004000000f59413532002836255050000865a060001666f6f0
|
|
|
|
50050a4810700511400f5010000666f6f0a00
|
|
|
|
].join
|
|
|
|
].pack("H*")
|
|
|
|
|
|
|
|
pipe_output("#{bin}/lha x -", data)
|
|
|
|
assert_equal "foo\n", (testpath/"foo").read
|
2014-03-06 13:01:47 +00:00
|
|
|
end
|
|
|
|
end
|