diff options
| author | Julien Ponge | 2011-04-22 10:56:53 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-22 07:52:19 -0700 |
| commit | 247fb931aa8631ff83fffc23b749e353cbe563f8 (patch) | |
| tree | eb1091bf50ef83253e6a22bcd8e44a945bf87e1e /Library | |
| parent | b94f92abe980c4b7b2e2e16885e0e7dad2bcd273 (diff) | |
| download | homebrew-247fb931aa8631ff83fffc23b749e353cbe563f8.tar.bz2 | |
Glassfish 3.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/glassfish.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/glassfish.rb b/Library/Formula/glassfish.rb new file mode 100644 index 000000000..8e476cf93 --- /dev/null +++ b/Library/Formula/glassfish.rb @@ -0,0 +1,22 @@ +require 'formula' + +class Glassfish < Formula + url 'http://download.java.net/glassfish/3.1/release/glassfish-3.1.zip' + homepage 'http://glassfish.org/' + md5 'a4951c1a7268f92fd0bd6fada89f29d6' + + skip_clean :all + + def install + rm_rf Dir['bin/*.bat'] + libexec.install Dir['*'] + bin.mkpath + Dir["#{libexec}/bin/*"].each do |f| + ln_s f, bin + chmod 0755, (bin + File.basename(f)) + end + inreplace "#{libexec}/bin/asadmin" do |s| + s.change_make_var! 'AS_INSTALL', "#{libexec}/glassfish" + end + end +end |
