homebrew-core/Formula/tomee-plus.rb
2015-12-11 15:08:01 +00:00

33 lines
911 B
Ruby

class TomeePlus < Formula
desc "Everything in TomEE Web Profile and JAX-RS, plus more"
homepage "https://tomee.apache.org/"
url "https://www.apache.org/dyn/closer.cgi?path=tomee/tomee-1.7.3/apache-tomee-1.7.3-plus.tar.gz"
version "1.7.3"
sha256 "194bf10ca40a14bbea3b32ec37c1144cce3bb642c3338038bed4d35fcd019a1c"
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-plus-startup"
end
def caveats; <<-EOS.undent
The home of Apache TomEE Plus is:
#{opt_libexec}
To run Apache TomEE:
#{opt_libexec}/bin/tomee-plus-startup
EOS
end
test do
system "#{opt_libexec}/bin/configtest.sh"
end
end