homebrew-core/Formula/tomee-plus.rb
Martin Funk 1ac213281c
tomee-plus 7.1.1
Closes #42962.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-08-09 23:07:42 +08:00

32 lines
884 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-7.1.1/apache-tomee-7.1.1-plus.tar.gz"
sha256 "c62def2a1453d7cc7f549e651232341d750518e512ba271c3e2666377e442409"
bottle :unneeded
def install
# Remove Windows scripts
rm_rf Dir["bin/*.bat"]
rm_rf Dir["bin/*.bat.original"]
rm_rf Dir["bin/*.exe"]
# 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
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