homebrew-core/Formula/tomee-webprofile.rb
2015-10-23 15:31:11 +08:00

33 lines
919 B
Ruby

class TomeeWebprofile < Formula
desc "All-Apache Java EE 6 Web Profile stack"
homepage "https://tomee.apache.org/"
url "https://www.apache.org/dyn/closer.cgi?path=tomee/tomee-1.7.2/apache-tomee-1.7.2-webprofile.tar.gz"
version "1.7.2"
sha256 "9802fef834a3d2944fc325440e1aadbd3b00956e5ef43f5ef9eea8b91a12d230"
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-webprofile-startup"
end
def caveats; <<-EOS.undent
The home of Apache TomEE Web is:
#{opt_libexec}
To run Apache TomEE:
#{opt_libexec}/bin/tomee-webprofile-startup
EOS
end
test do
system "#{opt_libexec}/bin/configtest.sh"
end
end