8bd8d1a629
Closes Homebrew/homebrew#26410. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
23 lines
567 B
Ruby
23 lines
567 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"
|
|
|
|
output = `#{bin}/base64 #{path}`.strip
|
|
assert_equal "aGVsbG8=", output
|
|
assert_equal 0, $?.exitstatus
|
|
end
|
|
end
|