2011-04-08 19:37:11 +00:00
|
|
|
class Jetty < Formula
|
2014-07-31 11:37:51 +00:00
|
|
|
homepage "http://www.eclipse.org/jetty/"
|
2015-02-24 21:59:49 +00:00
|
|
|
url "http://download.eclipse.org/jetty/9.2.9.v20150224/dist/jetty-distribution-9.2.9.v20150224.tar.gz"
|
|
|
|
version "9.2.9.v20150224"
|
|
|
|
sha1 "8f8b535841e524ea6f418dc9a8d01b701cd063ea"
|
2011-04-08 19:37:11 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir['*']
|
|
|
|
(libexec+'logs').mkpath
|
|
|
|
|
|
|
|
bin.mkpath
|
2014-05-31 15:00:24 +00:00
|
|
|
Dir.glob("#{libexec}/bin/*.sh") do |f|
|
2011-04-08 19:37:11 +00:00
|
|
|
scriptname = File.basename(f, '.sh')
|
|
|
|
(bin+scriptname).write <<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
JETTY_HOME=#{libexec}
|
2014-05-31 15:00:24 +00:00
|
|
|
#{f} "$@"
|
2011-04-08 19:37:11 +00:00
|
|
|
EOS
|
|
|
|
chmod 0755, bin+scriptname
|
|
|
|
end
|
|
|
|
end
|
2011-09-12 19:55:17 +00:00
|
|
|
end
|