2012-01-28 17:11:18 +00:00
|
|
|
class Kawa < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
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
|
2014-11-08 16:10:43 +00:00
|
|
|
|
2012-01-28 17:11:18 +00:00
|
|
|
def install
|
2015-07-19 00:48:15 +00:00
|
|
|
libexec.install "kawa-#{version}.jar"
|
|
|
|
(bin/"kawa").write <<-EOS.undent
|
2012-01-28 17:11:18 +00:00
|
|
|
#!/bin/sh
|
2015-07-19 00:48:15 +00:00
|
|
|
KAWA_HOME="#{libexec}"
|
2012-01-28 17:11:18 +00:00
|
|
|
java -jar "$KAWA_HOME/kawa-#{version}.jar"
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|