697a3e4b3c
Closes Homebrew/homebrew#42425. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
31 lines
876 B
Ruby
31 lines
876 B
Ruby
class TomeeJaxRs < Formula
|
|
desc "TomeEE Web Profile plus JAX-RS"
|
|
homepage "https://tomee.apache.org/"
|
|
url "https://www.apache.org/dyn/closer.cgi?path=tomee/tomee-1.7.2/apache-tomee-1.7.2-jaxrs.tar.gz"
|
|
version "1.7.2"
|
|
sha256 "561ef98f69b312a03b305f37fd492ed59f9802137e2995ea57db98d438b0b9c8"
|
|
|
|
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-jax-rs-startup"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
The home of Apache TomEE JAX-RS is:
|
|
#{opt_libexec}
|
|
To run Apache TomEE:
|
|
#{opt_libexec}/bin/tomee-jax-rs-startup
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "#{opt_libexec}/bin/configtest.sh"
|
|
end
|
|
end
|