Update jython

* Add HEAD version for 2.5.2 beta
* Install to libexec and symlink jython script
* Cache the installer jar
This commit is contained in:
Adam Vandenberg 2010-08-10 13:39:56 -07:00
parent ac4e28a5ba
commit a649dc172b

View file

@ -1,12 +1,16 @@
require 'formula' require 'formula'
class Jython <Formula class Jython <Formula
JAR = 'jython_installer-2.5.1.jar' url "http://downloads.sourceforge.net/project/jython/jython/2.5.1/jython_installer-2.5.1.jar",
url "http://downloads.sourceforge.net/project/jython/jython/2.5.1/#{JAR}" :using => :nounzip
homepage 'http://www.jython.org'
md5 '2ee978eff4306b23753b3fe9d7af5b37' 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 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
end end