homebrew-core/Formula/jython.rb

15 lines
398 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Jython < Formula
2011-03-03 21:08:39 +00:00
url "http://downloads.sourceforge.net/project/jython/jython/2.5.2/jython_installer-2.5.2.jar",
:using => :nounzip
homepage 'http://www.jython.org'
2011-03-03 21:08:39 +00:00
sha1 'd4534a691edf40aa1d51723dfe3e22db1e39b432'
2011-01-14 16:52:44 +00:00
def install
system "java", "-jar", Pathname.new(@url).basename, "-s", "-d", libexec
bin.mkpath
ln_s libexec+'bin/jython', bin
end
end