homebrew-core/Formula/jetty.rb
David Ma 49a29bfb25 jetty 9.1.3
Closes Homebrew/homebrew#27296.

Signed-off-by: Brett Koonce <koonce@gmail.com>
2014-03-07 16:39:47 -06:00

26 lines
660 B
Ruby

require 'formula'
class Jetty < Formula
homepage 'http://www.eclipse.org/jetty/'
url 'http://eclipse.org/downloads/download.php?file=/jetty/9.1.3.v20140225/dist/jetty-distribution-9.1.3.v20140225.tar.gz&r=1'
version '9.1.3'
sha1 '09cc96d187ad07bc86414b123475d0fe2d25e255'
def install
rm_rf Dir['bin/*.{cmd,bat]}']
libexec.install Dir['*']
(libexec+'logs').mkpath
bin.mkpath
Dir["#{libexec}/bin/*.sh"].each do |f|
scriptname = File.basename(f, '.sh')
(bin+scriptname).write <<-EOS.undent
#!/bin/bash
JETTY_HOME=#{libexec}
#{f} $@
EOS
chmod 0755, bin+scriptname
end
end
end