homebrew-core/Formula/kawa.rb

21 lines
561 B
Ruby
Raw Normal View History

class Kawa < Formula
desc "Programming language for Java (implementation of Scheme)"
2015-07-19 00:48:15 +00:00
homepage "https://www.gnu.org/software/kawa/"
url "http://ftpmirror.gnu.org/kawa/kawa-2.0.jar"
mirror "https://ftp.gnu.org/gnu/kawa/kawa-2.0.jar"
sha256 "dc5605950c9ab197a95337dbd241c369e8341a4f101072995f791d5fd2bf0400"
2015-10-23 12:00:45 +00:00
bottle :unneeded
2015-07-19 00:48:15 +00:00
depends_on :java
def install
2015-07-19 00:48:15 +00:00
libexec.install "kawa-#{version}.jar"
(bin/"kawa").write <<-EOS.undent
#!/bin/sh
2015-07-19 00:48:15 +00:00
KAWA_HOME="#{libexec}"
java -jar "$KAWA_HOME/kawa-#{version}.jar"
EOS
end
end