homebrew-core/Formula/jython.rb
Daniel Slapman 2600669188 jython devel 2.7-b2
Closes Homebrew/homebrew#29221.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-05-13 09:04:02 -07:00

19 lines
662 B
Ruby

require 'formula'
class Jython < Formula
homepage 'http://www.jython.org'
url 'http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.5.3/jython-installer-2.5.3.jar'
sha1 '6b6ac4354733b6d68d51acf2f3d5c823a10a4ce4'
devel do
url 'http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.7-b2/jython-installer-2.7-b2.jar'
version '2.7-b2'
sha1 '900c505b55a43abee2361a2a4ef81dab7acd252f'
end
def install
system "java", "-jar", cached_download, "-s", "-d", libexec
inreplace libexec/'bin/jython', 'PRG=$0', "PRG=#{libexec}/bin/jython"
bin.install_symlink libexec/'bin/jython'
end
end