2014-11-03 01:25:15 +00:00
|
|
|
require "formula"
|
2012-05-03 22:16:33 +00:00
|
|
|
|
|
|
|
class Akka < Formula
|
2014-11-03 01:25:15 +00:00
|
|
|
homepage "http://akka.io/"
|
2015-04-13 17:07:39 +00:00
|
|
|
url "https://downloads.typesafe.com/akka/akka_2.10-2.3.9.zip"
|
2015-04-10 14:11:33 +00:00
|
|
|
sha256 "b790207f2bd6b8b615c08c2615f26a972580cb0391339f3c4211242adcc93d2c"
|
2012-05-03 22:16:33 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# Remove Windows files
|
|
|
|
rm "bin/akka.bat"
|
|
|
|
|
2015-04-10 15:10:50 +00:00
|
|
|
chmod 0755, "bin/akka"
|
|
|
|
chmod 0755, "bin/akka-cluster"
|
|
|
|
|
2012-05-03 22:16:33 +00:00
|
|
|
# Translate akka script
|
|
|
|
inreplace "bin/akka" do |s|
|
|
|
|
s.gsub! /^declare AKKA_HOME=.*$/, "declare AKKA_HOME=#{libexec}"
|
|
|
|
end
|
|
|
|
|
|
|
|
libexec.install Dir["*"]
|
|
|
|
bin.install_symlink libexec/"bin/akka"
|
|
|
|
end
|
|
|
|
end
|