homebrew-core/Formula/tomee-jax-rs.rb
2014-10-01 23:28:49 -07:00

30 lines
766 B
Ruby

require "formula"
class TomeeJaxRs < Formula
homepage "http://tomee.apache.org/"
url "http://www.apache.org/dyn/closer.cgi?path=tomee/tomee-1.7.1/apache-tomee-1.7.1-jaxrs.tar.gz"
version "1.7.1"
sha1 "5abce8176d034fefc19eb6c81fd5d64bc888d0a9"
def install
# Remove Windows scripts
rm_rf Dir["bin/*.bat"]
# 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