2011-03-10 05:11:03 +00:00
|
|
|
class Lha < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Utility for creating and opening lzh archives"
|
2015-09-14 05:25:01 +00:00
|
|
|
homepage "https://lha.osdn.jp"
|
2015-05-29 14:11:11 +00:00
|
|
|
url "http://dl.osdn.jp/lha/22231/lha-1.14i-ac20050924p1.tar.gz"
|
|
|
|
version "1.14i-ac20050924p1"
|
|
|
|
sha256 "b5261e9f98538816aa9e64791f23cb83f1632ecda61f02e54b6749e9ca5e9ee4"
|
2010-08-19 09:07:29 +00:00
|
|
|
|
2015-09-15 05:12:26 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "9cb516a73d1d117c39f63d16b3211df626783c9bb1a7038f524dd9c36045b1ac" => :yosemite
|
|
|
|
sha256 "bd26a5a48396d06019f7998f4c9bf511a74ef237814fee5f5c8ba9df31b30a37" => :mavericks
|
|
|
|
sha256 "3def5e7035ef758428c7e158b93ad5459d6d221ba4698608cc1d14526cbfd5f8" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-09-14 05:25:01 +00:00
|
|
|
head do
|
|
|
|
url "http://scm.osdn.jp/gitroot/lha/lha.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
end
|
|
|
|
|
2010-08-19 09:07:29 +00:00
|
|
|
def install
|
2015-09-14 05:25:01 +00:00
|
|
|
system "autoreconf", "-is" if build.head?
|
2010-08-19 09:07:29 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2013-01-29 05:35:33 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2015-05-29 14:11:11 +00:00
|
|
|
system "make", "install"
|
2010-08-19 09:07:29 +00:00
|
|
|
end
|
2015-09-14 05:25:01 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"foo").write "test"
|
|
|
|
system "#{bin}/lha", "c", "foo.lzh", "foo"
|
|
|
|
assert_equal "::::::::\nfoo\n::::::::\ntest", shell_output("#{bin}/lha p foo.lzh")
|
|
|
|
end
|
2010-08-19 09:07:29 +00:00
|
|
|
end
|