From b4bc5e22e772eb3d2ad514e1a50c13ad47763543 Mon Sep 17 00:00:00 2001 From: Caleb Xu Date: Fri, 26 Jul 2019 09:20:56 -0400 Subject: [PATCH] base91 0.6.0 (new formula) Closes #42475. Signed-off-by: Jonathan Chang --- Formula/base91.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Formula/base91.rb diff --git a/Formula/base91.rb b/Formula/base91.rb new file mode 100644 index 0000000000..d2dfbc9d56 --- /dev/null +++ b/Formula/base91.rb @@ -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