2011-03-10 05:11:03 +00:00
|
|
|
class Atool < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Archival front-end"
|
2015-01-07 21:22:36 +00:00
|
|
|
homepage "https://savannah.nongnu.org/projects/atool/"
|
2015-10-06 17:14:51 +00:00
|
|
|
url "http://download.savannah.nongnu.org/releases/atool/atool-0.39.0.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "aaf60095884abb872e25f8e919a8a63d0dabaeca46faeba87d12812d6efc703b"
|
2010-02-22 11:47:56 +00:00
|
|
|
|
2015-01-08 05:16:55 +00:00
|
|
|
bottle do
|
2015-10-07 03:26:20 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
revision 1
|
|
|
|
sha256 "e7f2a05c1ace127074412298599ca5a195f523e116adcf1235bb1002b9f1c43f" => :el_capitan
|
|
|
|
sha256 "edc0be06f8072965a398708ffa59319d7663f5f4cb3bfd7585ffd5b8239231a5" => :yosemite
|
|
|
|
sha256 "f027ccef0bdaa3f6754810aa8ada837ef136be2bf118eae9815c056f5f5bcc4d" => :mavericks
|
2015-01-08 05:16:55 +00:00
|
|
|
end
|
|
|
|
|
2010-02-22 11:47:56 +00:00
|
|
|
def install
|
2012-02-09 06:03:59 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-01-07 21:22:36 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
mkdir "apple_juice"
|
|
|
|
cd testpath/"apple_juice" do
|
|
|
|
touch "example.txt"
|
|
|
|
touch "example2.txt"
|
|
|
|
system bin/"apack", "test.tar.gz", "example.txt", "example2.txt"
|
|
|
|
end
|
|
|
|
output = shell_output("#{bin}/als #{testpath}/apple_juice/test.tar.gz")
|
2015-10-05 03:34:29 +00:00
|
|
|
assert_match "example.txt", output
|
|
|
|
assert_match "example2.txt", output
|
2010-02-22 11:47:56 +00:00
|
|
|
end
|
|
|
|
end
|