homebrew-core/Formula/jboss-forge.rb

27 lines
880 B
Ruby

class JbossForge < Formula
desc "Tools to help set up and configure a project"
homepage "http://forge.jboss.org/"
url "https://downloads.jboss.org/forge/releases/2.20.1.Final/forge-distribution-2.20.1.Final-offline.zip"
version "2.20.1.Final"
sha256 "dbe51b8c9cd0cf1b0a9adadcd8161c442a4ab586ca63f3a3f6d3369a2831afae"
bottle :unneeded
devel do
url "https://downloads.jboss.org/forge/releases/3.0.0.Beta4/forge-distribution-3.0.0.Beta4-offline.zip"
version "3.0.0.Beta4"
sha256 "9127182a1b98c934e1c1b9db44f033370b3bd6d0e26b4e334409603b3c108720"
end
def install
rm_f Dir["bin/*.bat"]
libexec.install %w[addons bin lib logging.properties]
bin.install_symlink libexec/"bin/forge"
end
test do
ENV["FORGE_OPTS"] = "-Duser.home=#{testpath}"
assert_match "org.jboss.forge.addon:core", shell_output("#{bin}/forge --list")
end
end