homebrew-core/Formula/glassfish.rb
2012-09-03 11:36:42 -07:00

20 lines
473 B
Ruby

require 'formula'
class Glassfish < Formula
homepage 'http://glassfish.org/'
url 'http://download.java.net/glassfish/3.1.2/release/glassfish-3.1.2.zip'
sha1 '9e111bbd7791b63ae37220641867b47851a636d5'
skip_clean :all
def install
rm_rf Dir['bin/*.bat']
libexec.install Dir['*']
bin.install_symlink Dir["#{libexec}/bin/*"]
inreplace "#{libexec}/bin/asadmin" do |s|
s.change_make_var! 'AS_INSTALL', "#{libexec}/glassfish"
end
end
end