homebrew-core/Formula/base64.rb
2014-08-01 07:58:10 -07:00

20 lines
526 B
Ruby

require 'formula'
class Base64 < Formula
homepage 'http://www.fourmilab.ch/webtools/base64/'
url 'http://www.fourmilab.ch/webtools/base64/base64-1.5.tar.gz'
sha1 '25b5ae71c2818c7a489065ca1637806cd5109524'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking"
system "make"
bin.install "base64"
man1.install "base64.1"
end
test do
path = testpath/"a.txt"
path.write "hello"
assert_equal "aGVsbG8=", shell_output("#{bin}/base64 #{path}").strip
end
end