2011-04-22 08:56:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Glassfish < Formula
|
2012-09-05 19:24:33 +00:00
|
|
|
homepage 'http://glassfish.java.net/'
|
|
|
|
url 'http://download.java.net/glassfish/3.1.2.2/release/glassfish-3.1.2.2.zip'
|
|
|
|
sha1 '627e67d7e7f06583beb284c56f76456913461722'
|
2011-04-22 08:56:53 +00:00
|
|
|
|
2012-09-05 19:24:33 +00:00
|
|
|
# To keep empty folders around
|
|
|
|
skip_clean 'libexec'
|
2011-04-22 08:56:53 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
rm_rf Dir['bin/*.bat']
|
2012-02-12 19:15:30 +00:00
|
|
|
|
2012-09-05 19:24:33 +00:00
|
|
|
libexec.install Dir["*"]
|
|
|
|
libexec.install Dir[".org.opensolaris,pkg"]
|
|
|
|
bin.write_exec_script Dir["#{libexec}/bin/*"]
|
2012-02-12 19:15:30 +00:00
|
|
|
|
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
|