7b1b922a6b
The certificate appears to be somewhat problematic, though latest Firefox and curl accepts it on OS X. Closes Homebrew/homebrew#39418. Signed-off-by: Xu Cheng <xucheng@me.com>
18 lines
535 B
Ruby
18 lines
535 B
Ruby
class Base64 < Formula
|
|
homepage "https://www.fourmilab.ch/webtools/base64/"
|
|
url "https://www.fourmilab.ch/webtools/base64/base64-1.5.tar.gz"
|
|
sha256 "2416578ba7a7197bddd1ee578a6d8872707c831d2419bdc2c1b4317a7e3c8a2a"
|
|
|
|
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
|