2011-03-10 05:11:03 +00:00
|
|
|
class Base64 < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Encode and decode base64 files"
|
2015-05-05 23:15:09 +00:00
|
|
|
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
|
|
|
|
|
|
|
def install
|
2013-06-20 19:56:28 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking"
|
2009-10-25 12:14:22 +00:00
|
|
|
system "make"
|
|
|
|
bin.install "base64"
|
2013-06-20 19:56:28 +00:00
|
|
|
man1.install "base64.1"
|
2009-10-25 12:14:22 +00:00
|
|
|
end
|
2014-02-04 21:13:35 +00:00
|
|
|
|
|
|
|
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
|
2014-02-04 21:13:35 +00:00
|
|
|
end
|
2009-10-25 12:14:22 +00:00
|
|
|
end
|