homebrew-core/Formula/tomcat.rb
BrewTestBot 4d94972d55 tomcat: update 8.0.9 bottle.
Closes Homebrew/homebrew#30456.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-26 09:40:34 +01:00

37 lines
1.1 KiB
Ruby

require 'formula'
class Tomcat < Formula
homepage "http://tomcat.apache.org/"
url "http://www.apache.org/dyn/closer.cgi?path=tomcat/tomcat-8/v8.0.9/bin/apache-tomcat-8.0.9.tar.gz"
sha1 "7218d06eab70e576de68a4d4d72ec4da34304676"
bottle do
cellar :any
sha1 "1c80a7af14a3f387f634bdae5d5b673bbc1f2c9a" => :mavericks
sha1 "4045fdbd7963e87035884bd4ecb6c173a74a99f6" => :mountain_lion
sha1 "2c77dfcf698b21deae47df1f0b2fe32f43bd31e3" => :lion
end
option "with-fulldocs", "Install full documentation locally"
resource "fulldocs" do
url "http://www.apache.org/dyn/closer.cgi?path=/tomcat/tomcat-8/v8.0.9/bin/apache-tomcat-8.0.9-fulldocs.tar.gz"
version "8.0.9"
sha1 "24abb690d63a62f6d914739268057a6f3d29d4df"
end
# Keep log folders
skip_clean 'libexec'
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/catalina.sh" => "catalina"
(share/'fulldocs').install resource('fulldocs') if build.with? 'fulldocs'
end
end