homebrew-core/Formula/glassfish.rb

21 lines
464 B
Ruby
Raw Normal View History

require 'formula'
class Glassfish < Formula
homepage 'http://glassfish.org/'
2012-02-12 19:15:30 +00:00
url 'http://download.java.net/glassfish/3.1.1/release/glassfish-3.1.1.zip'
md5 'bf92c2c99b3d53b83bbc8c7e2124a897'
skip_clean :all
def install
rm_rf Dir['bin/*.bat']
2012-02-12 19:15:30 +00:00
libexec.install Dir['*']
2012-02-12 19:15:30 +00:00
bin.install_symlink Dir["#{libexec}/bin/*"]
inreplace "#{libexec}/bin/asadmin" do |s|
s.change_make_var! 'AS_INSTALL', "#{libexec}/glassfish"
end
end
end