homebrew-core/Formula/jbake.rb

22 lines
565 B
Ruby

class Jbake < Formula
desc "Java based static site/blog generator"
homepage "https://jbake.org/"
url "https://dl.bintray.com/jbake/binary/jbake-2.6.5-bin.zip"
sha256 "a2a7b885749f622cf68c10484291cbd2592d10fd80281caa6766f3d872932632"
bottle :unneeded
depends_on "openjdk"
def install
rm_f Dir["bin/*.bat"]
libexec.install Dir["*"]
bin.install libexec/"bin/jbake"
bin.env_script_all_files libexec/"bin", JAVA_HOME: Formula["openjdk"].opt_prefix
end
test do
assert_match "Usage: jbake", shell_output("#{bin}/jbake")
end
end