homebrew-core/Formula/tomee-plus.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

29 lines
828 B
Ruby

class TomeePlus < Formula
desc "Everything in TomEE Web Profile and JAX-RS, plus more"
homepage "https://tomee.apache.org/"
url "https://www.apache.org/dyn/closer.cgi?path=tomee/tomee-1.7.1/apache-tomee-1.7.1-plus.tar.gz"
version "1.7.1"
sha256 "638f70c55d3927ff8e15281e4a24aa17f632a9eabaa3c52f448b7009d1d289eb"
def install
# Remove Windows scripts
rm_rf Dir["bin/*.bat"]
# Install files
prefix.install %w[NOTICE LICENSE RELEASE-NOTES RUNNING.txt]
libexec.install Dir["*"]
bin.install_symlink "#{libexec}/bin/startup.sh" => "tomee-plus-startup"
end
def caveats; <<-EOS.undent
The home of Apache TomEE Plus is:
#{opt_libexec}
To run Apache TomEE:
#{opt_libexec}/bin/tomee-plus-startup
EOS
end
test do
system "#{opt_libexec}/bin/configtest.sh"
end
end