homebrew-core/Formula/tomcat.rb

23 lines
526 B
Ruby
Raw Normal View History

2010-06-20 16:31:21 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Tomcat < Formula
url 'http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.16/bin/apache-tomcat-7.0.16.tar.gz'
2010-06-20 16:31:21 +00:00
homepage 'http://tomcat.apache.org/'
md5 'e1ba4ab7864079c2a853562cebdd045a'
2010-06-20 16:31:21 +00:00
skip_clean :all
2010-06-20 16:31:21 +00:00
def install
# Remove Windows scripts
rm_rf Dir['bin/*.bat']
2010-06-20 16:31:21 +00:00
# Install files
prefix.install %w{ NOTICE LICENSE RELEASE-NOTES RUNNING.txt }
libexec.install Dir['*']
2010-06-20 16:31:21 +00:00
# Symlink binaries
bin.mkpath
ln_s "#{libexec}/bin/catalina.sh", bin+"catalina"
2010-06-20 16:31:21 +00:00
end
end