homebrew-core/Formula/frink.rb
Marcelino Llano 34884bd8e0 Frink, language to make physical calculations.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-21 21:40:53 -07:00

19 lines
No EOL
431 B
Ruby

require 'formula'
class Frink <Formula
head 'http://futureboy.us/frinkjar/frink.jar'
homepage 'http://futureboy.us/frinkdocs/index.html'
md5 'dd6b317544234beee0c0039480304759'
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
end