aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/jython.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-10 13:39:56 -0700
committerAdam Vandenberg2010-08-10 13:39:56 -0700
commit908bc035c27701fe4944b80ed549ff55336ea0cb (patch)
treed01651f6d7184a29cc32a3df8a0c1cba032e7473 /Library/Formula/jython.rb
parent82ad4d92310fc5f5821497c18019e943e79d7213 (diff)
downloadhomebrew-908bc035c27701fe4944b80ed549ff55336ea0cb.tar.bz2
Update jython
* Add HEAD version for 2.5.2 beta * Install to libexec and symlink jython script * Cache the installer jar
Diffstat (limited to 'Library/Formula/jython.rb')
-rw-r--r--Library/Formula/jython.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/Library/Formula/jython.rb b/Library/Formula/jython.rb
index b554954aa..c5865e155 100644
--- a/Library/Formula/jython.rb
+++ b/Library/Formula/jython.rb
@@ -1,12 +1,16 @@
require 'formula'
class Jython <Formula
- JAR = 'jython_installer-2.5.1.jar'
- url "http://downloads.sourceforge.net/project/jython/jython/2.5.1/#{JAR}"
- homepage 'http://www.jython.org'
+ url "http://downloads.sourceforge.net/project/jython/jython/2.5.1/jython_installer-2.5.1.jar",
+ :using => :nounzip
md5 '2ee978eff4306b23753b3fe9d7af5b37'
+ homepage 'http://www.jython.org'
+ head "http://downloads.sourceforge.net/project/jython/jython-dev/2.5.2b1/jython_installer-2.5.2b1.jar",
+ :using => :nounzip
def install
- system "java", "-jar", JAR, "-s", "-d", prefix
+ system "java", "-jar", Pathname.new(@url).basename, "-s", "-d", libexec
+ bin.mkpath
+ ln_s libexec+'bin/jython', bin
end
end