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

32 lines
854 B
Ruby

class TomeePlume < Formula
desc "Apache TomEE Plume"
homepage "https://tomee.apache.org/"
url "https://www.apache.org/dyn/closer.cgi?path=tomee/tomee-1.7.4/apache-tomee-1.7.4-plume.tar.gz"
sha256 "0f37dbe25c3a68a365f440cfaac01e63158e6ccce943f367203418038b5be402"
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-plume-startup"
end
def caveats; <<~EOS
The home of Apache TomEE Plume is:
#{opt_libexec}
To run Apache TomEE:
#{opt_libexec}/bin/tomee-plume-startup
EOS
end
test do
system "#{opt_libexec}/bin/configtest.sh"
end
end