Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Jetty 8.1.8

  • Loading branch information...
commit 63273c0f36d9e36a436e77f5ce89b167a3a20bf0 1 parent b117778
@adamv adamv authored
Showing with 26 additions and 0 deletions.
  1. +26 −0 jetty8.rb
View
26 jetty8.rb
@@ -0,0 +1,26 @@
+require 'formula'
+
+class Jetty8 < Formula
+ homepage 'http://www.eclipse.org/jetty/'
+ url 'http://eclipse.org/downloads/download.php?file=/jetty/8.1.8.v20121106/dist/jetty-distribution-8.1.8.v20121106.tar.gz&r=1'
+ version '8.1.8'
+ sha1 '19f6c1758d5b6d73702c08574062b63195a404b5'
+
+ 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
Please sign in to comment.
Something went wrong with that request. Please try again.