2011-04-08 19:37:11 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Jetty < Formula
|
2014-07-31 11:37:51 +00:00
|
|
|
homepage "http://www.eclipse.org/jetty/"
|
2014-09-11 04:22:00 +00:00
|
|
|
url "http://eclipse.org/downloads/download.php?file=/jetty/9.2.3.v20140905/dist/jetty-distribution-9.2.3.v20140905.tar.gz&r=1"
|
|
|
|
version "9.2.3"
|
|
|
|
sha1 "7ad9d6678e794aa483fe5b4517f9aa79caf8e8db"
|
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
|