base91 0.6.0 (new formula)
Closes #42475. Signed-off-by: Jonathan Chang <jchang641@gmail.com>
This commit is contained in:
parent
71cc429d68
commit
b4bc5e22e7
1 changed files with 21 additions and 0 deletions
21
Formula/base91.rb
Normal file
21
Formula/base91.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
class Base91 < Formula
|
||||
desc "Utility to encode and decode base91 files"
|
||||
homepage "https://base91.sourceforge.io"
|
||||
url "https://downloads.sourceforge.net/base91/base91-0.6.0.tar.gz"
|
||||
sha256 "02cfae7322c1f865ca6ce8f2e0bb8d38c8513e76aed67bf1c94eab1343c6c651"
|
||||
|
||||
def install
|
||||
system "make"
|
||||
bin.install "base91"
|
||||
bin.install_symlink "base91" => "b91dec"
|
||||
bin.install_symlink "base91" => "b91enc"
|
||||
man1.install "base91.1"
|
||||
man1.install_symlink "base91.1" => "b91dec.1"
|
||||
man1.install_symlink "base91.1" => "b91enc.1"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_equal ">OwJh>Io2Tv!lE", pipe_output("#{bin}/b91enc", "Hello world")
|
||||
assert_equal "Hello world", pipe_output("#{bin}/b91dec", ">OwJh>Io2Tv!lE")
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue