2010-11-11 23:31:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-26 15:49:34 +00:00
|
|
|
class Frink < Formula
|
2010-11-11 23:31:37 +00:00
|
|
|
head 'http://futureboy.us/frinkjar/frink.jar'
|
|
|
|
homepage 'http://futureboy.us/frinkdocs/index.html'
|
2011-09-23 20:14:09 +00:00
|
|
|
md5 '8326620340fa374b1a95390220da909c'
|
2010-11-11 23:31:37 +00:00
|
|
|
|
|
|
|
depends_on 'rlwrap'
|
|
|
|
|
|
|
|
def install
|
|
|
|
prefix.install 'frink.jar'
|
|
|
|
|
|
|
|
# Add an executable shell-script
|
|
|
|
(bin + "frink").write <<-EOF.undent
|
|
|
|
#!/bin/sh
|
|
|
|
rlwrap java -cp #{prefix}/frink.jar frink.parser.Frink \"$@\"
|
|
|
|
EOF
|
|
|
|
end
|
2011-05-29 15:03:39 +00:00
|
|
|
end
|