homebrew-core/Formula/kawa.rb
2020-01-17 08:20:19 -05:00

24 lines
701 B
Ruby

class Kawa < Formula
desc "Programming language for Java (implementation of Scheme)"
homepage "https://www.gnu.org/software/kawa/"
url "https://ftp.gnu.org/gnu/kawa/kawa-3.1.1.zip"
mirror "https://ftpmirror.gnu.org/kawa/kawa-3.1.1.zip"
sha256 "dab1f41da968191fc68be856f133e3d02ce65d2dbd577a27e0490f18ca00fa22"
bottle :unneeded
depends_on :java => "1.7+"
def install
rm Dir["bin/*.bat"]
inreplace "bin/kawa", "thisfile=`command -v $0`",
"thisfile=#{libexec}/bin/kawa"
libexec.install "bin", "lib"
bin.install_symlink libexec/"bin/kawa"
doc.install Dir["doc/*"]
end
test do
system bin/"kawa", "-e", "(import (srfi 1))"
end
end