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/"
|
2016-02-28 02:29:33 +00:00
|
|
|
url "https://savannah.nongnu.org/download/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
|
2016-09-28 14:56:21 +00:00
|
|
|
rebuild 2
|
|
|
|
sha256 "656b59fcaa79956c81af4ce21afc06dbf9f6ffaecc0ff52b1a063da2c911fe89" => :sierra
|
2016-03-01 11:44:22 +00:00
|
|
|
sha256 "dcfdcb720aa3704b9103aa01bb8efac42d24327bc8664baa420a9a69d75a98b6" => :el_capitan
|
|
|
|
sha256 "efdeeb165e146f4a76477417d2af9c60e2f776d06081bb579ff73ceb296a899d" => :yosemite
|
|
|
|
sha256 "4eed286344a3a1d4fc6efc908b34062b5cc7c7fdf2449cf85b7767168585fc7a" => :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
|