homebrew-core/Formula/tomee-jax-rs.rb
Mike McQuaid 512758e6eb Rubocop 0.57.1 style fixes (#28754)
Realign trailing EOS.
2018-06-09 01:27:43 -07:00

32 lines
869 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.4/apache-tomee-1.7.4-jaxrs.tar.gz"
sha256 "35f56e5f79dfa3ebfe220c2c45b280b204dcd265c4e905b994669391f4672e71"
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-jax-rs-startup"
end
def caveats; <<~EOS
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