0bbd7a41b2
Note that this is a head-only formula, so the hash will be incorrect at random times. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
19 lines
433 B
Ruby
19 lines
433 B
Ruby
require 'formula'
|
|
|
|
class Frink < Formula
|
|
head 'http://futureboy.us/frinkjar/frink.jar'
|
|
homepage 'http://futureboy.us/frinkdocs/index.html'
|
|
md5 'a7db7977a520ea2b54d1166ff0738efc'
|
|
|
|
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
|