homebrew-core/Formula/tomee-plume.rb
2020-01-11 18:13:52 -05:00

32 lines
843 B
Ruby

class TomeePlume < Formula
desc "Apache TomEE Plume"
homepage "https://tomee.apache.org/"
url "https://archive.apache.org/dist/tomee/tomee-8.0.0/apache-tomee-8.0.0-plume.tar.gz"
sha256 "477ef236f0668c3bf8ee22d65588261ac046f0b982d4147accd5bd250250373e"
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-plume-startup"
end
def caveats; <<~EOS
The home of Apache TomEE Plume is:
#{opt_libexec}
To run Apache TomEE:
#{opt_libexec}/bin/tomee-plume-startup
EOS
end
test do
system "#{opt_libexec}/bin/configtest.sh"
end
end