homebrew-core/Formula/jboss-forge.rb
2016-06-14 22:30:48 +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.2.Final/forge-distribution-3.2.2.Final-offline.zip"
version "3.2.2.Final"
sha256 "1d61a47de1de0287c176f0ef3eaae3641a4d78ff231b44bc4b02c485abfd2cd9"
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