homebrew-core/Formula/funcoeszz.rb
2018-12-05 14:13:48 +01:00

27 lines
685 B
Ruby

class Funcoeszz < Formula
desc "Dozens of command-line mini-applications (Portuguese)"
homepage "https://funcoeszz.net/"
url "https://funcoeszz.net/download/funcoeszz-15.5.sh"
sha256 "13e6347018b43c54f5032d4700d45255f7e26e1e8f1eacb25e324d4fbe07e15d"
bottle :unneeded
depends_on "bash"
def install
bin.install "funcoeszz-#{version}.sh" => "funcoeszz"
end
def caveats; <<~EOS
To use this software add to your profile:
export ZZPATH="#{opt_bin}/funcoeszz"
source "$ZZPATH"
Usage of a newer Bash than the macOS default is required.
EOS
end
test do
assert_equal "15", shell_output("#{bin}/funcoeszz zzcalcula 10+5").chomp
end
end