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/"
|
|
|
|
url "http://savannah.nongnu.org/download/atool/atool-0.39.0.tar.gz"
|
|
|
|
sha1 "40865bdc533f95fcaffdf8002889eb2ac67224a9"
|
2010-02-22 11:47:56 +00:00
|
|
|
|
2015-01-08 05:16:55 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "5bae1ea5b44d870cf9181ed061fe9ff2bb96351e" => :yosemite
|
|
|
|
sha1 "886601266294c7e337f0f75f3b04c09a60590807" => :mavericks
|
|
|
|
sha1 "22b2f19cfa180dd72929e5fb43d1444a206e660a" => :mountain_lion
|
|
|
|
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")
|
|
|
|
assert output.include? "example.txt"
|
|
|
|
assert output.include? "example2.txt"
|
2010-02-22 11:47:56 +00:00
|
|
|
end
|
|
|
|
end
|