brew install -v https://gist.githubusercontent.com/mhayes/7cdd597343108f79c1c8/raw/230cef02df0f3642bb537d4ad200dacacb583423/tomcat7.rb
Last active
August 29, 2015 14:15
-
-
Save mhayes/7cdd597343108f79c1c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Tomcat7 < Formula | |
homepage "http://tomcat.apache.org/" | |
url "http://www.apache.org/dyn/closer.cgi?path=tomcat/tomcat-7/v7.0.59/bin/apache-tomcat-7.0.59.tar.gz" | |
sha1 "c9f8d87a212091c33027f122aba90b78eb1c0a01" | |
option "with-fulldocs", "Install full documentation locally" | |
resource "fulldocs" do | |
url "http://www.apache.org/dyn/closer.cgi?path=/tomcat/tomcat-7/v7.0.59/bin/apache-tomcat-7.0.59-fulldocs.tar.gz" | |
version "7.0.59" | |
sha1 "96852de4949a1765b1a5478c8c586220bfc16377" | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment