homebrew-core/Formula/base64.rb

28 lines
991 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Base64 < Formula
desc "Encode and decode base64 files"
homepage "https://www.fourmilab.ch/webtools/base64/"
url "https://www.fourmilab.ch/webtools/base64/base64-1.5.tar.gz"
2015-05-05 23:10:05 +00:00
sha256 "2416578ba7a7197bddd1ee578a6d8872707c831d2419bdc2c1b4317a7e3c8a2a"
2009-10-25 12:14:22 +00:00
2016-04-09 10:41:49 +00:00
bottle do
cellar :any_skip_relocation
2016-09-28 16:09:26 +00:00
sha256 "3cd13d14c225413a5bc3b24f8f5dab48c2a942b64bf9162ad3a8ea8320a74bd1" => :sierra
2016-04-09 10:41:49 +00:00
sha256 "0ab522634adf5c9eefb08c11d51d2b6e0477d8ea607afdb8eefe204de764f180" => :el_capitan
sha256 "5681332029a2ed1fe1272b2ef9877a6348501897822c6a8955b26bb904426b1a" => :yosemite
sha256 "42e0864be73790c541237c3a2d41183cf1baacad346cb16c97bd3576f5f50cfc" => :mavericks
end
2009-10-25 12:14:22 +00:00
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking"
2009-10-25 12:14:22 +00:00
system "make"
bin.install "base64"
man1.install "base64.1"
2009-10-25 12:14:22 +00:00
end
test do
path = testpath/"a.txt"
path.write "hello"
2014-05-04 19:12:41 +00:00
assert_equal "aGVsbG8=", shell_output("#{bin}/base64 #{path}").strip
end
2009-10-25 12:14:22 +00:00
end