2011-04-22 08:56:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Glassfish < Formula
|
|
|
|
homepage 'http://glassfish.org/'
|
2012-04-02 18:58:11 +00:00
|
|
|
url 'http://download.java.net/glassfish/3.1.2/release/glassfish-3.1.2.zip'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '9e111bbd7791b63ae37220641867b47851a636d5'
|
2011-04-22 08:56:53 +00:00
|
|
|
|
|
|
|
skip_clean :all
|
|
|
|
|
|
|
|
def install
|
|
|
|
rm_rf Dir['bin/*.bat']
|
2012-02-12 19:15:30 +00:00
|
|
|
|
2011-04-22 08:56:53 +00:00
|
|
|
libexec.install Dir['*']
|
2012-02-12 19:15:30 +00:00
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
|
|
|
2011-04-22 08:56:53 +00:00
|
|
|
inreplace "#{libexec}/bin/asadmin" do |s|
|
|
|
|
s.change_make_var! 'AS_INSTALL', "#{libexec}/glassfish"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|