homebrew-core/Formula/tomee-jax-rs.rb
2016-05-03 17:29:23 +01:00

33 lines
896 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"
version "1.7.4"
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.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