homebrew-core/Formula/jboss-forge.rb
2016-07-18 21:59:24 +01:00

20 lines
648 B
Ruby

class JbossForge < Formula
desc "Tools to help set up and configure a project"
homepage "https://forge.jboss.org/"
url "https://downloads.jboss.org/forge/releases/3.2.3.Final/forge-distribution-3.2.3.Final-offline.zip"
version "3.2.3.Final"
sha256 "18239d868ca2368eb7e6192b9a884dd1422a14994ed0186472876c7915dd1be8"
bottle :unneeded
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