blob: 183424f6818979365703700a39e87418425d126e (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 | 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
 |