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-11-16 07:42:31 +00:00
|
|
|
url "http://download.eclipse.org/jetty/9.2.5.v20141112/dist/jetty-distribution-9.2.5.v20141112.tar.gz"
|
|
|
|
version "9.2.5.v20141112"
|
|
|
|
sha1 "30a7a34a7ac423fb15885a63f03bffc3669e4d9a"
|
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
|