parent
ec8784f01f
commit
e52decf21a
1 changed files with 7 additions and 9 deletions
|
@ -1,18 +1,16 @@
|
|||
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'
|
||||
homepage "http://www.jython.org"
|
||||
url "https://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.5.3/jython-installer-2.5.3.jar"
|
||||
sha256 "05405966cdfa57abc8e705dd6aab92b8240097ce709fb916c8a0dbcaa491f99e"
|
||||
|
||||
devel do
|
||||
url 'http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.7-rc1/jython-installer-2.7-rc1.jar'
|
||||
sha1 '772b88e129612cc30636b36d3d9ea47bd18666ec'
|
||||
url "http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.7-rc3/jython-installer-2.7-rc3.jar"
|
||||
sha256 "882b0139b302a2bfd1158e3b6640530dc224be7ce10d850df0b6d28e63f869f1"
|
||||
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'
|
||||
inreplace libexec/"bin/jython", "PRG=$0", "PRG=#{libexec}/bin/jython" if build.stable?
|
||||
bin.install_symlink libexec/"bin/jython"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue