4ed7294d4b
Closes Homebrew/homebrew#46853. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
33 lines
881 B
Ruby
33 lines
881 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.3/apache-tomee-1.7.3-plume.tar.gz"
|
|
version "1.7.3"
|
|
sha256 "ba7978252fa63e2a6cdc0b699330bf3a523178e6dc1a015997542fa98698c521"
|
|
|
|
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.undent
|
|
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
|