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-05-20 21:02:47 +00:00
|
|
|
url "https://downloads.typesafe.com/akka/akka_2.11-2.3.11.zip"
|
|
|
|
sha256 "58157e4f85024d66e20d7e14d2681e041e385af82985eceb5210a454c251abec"
|
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"
|
|
|
|
|
2015-05-20 21:02:47 +00:00
|
|
|
# dos to unix
|
|
|
|
inreplace ["bin/akka", "bin/akka-cluster"], "\r", ""
|
|
|
|
|
2012-05-03 22:16:33 +00:00
|
|
|
# Translate akka script
|
2015-05-20 21:02:47 +00:00
|
|
|
inreplace ["bin/akka", "bin/akka-cluster"] do |s|
|
2012-05-03 22:16:33 +00:00
|
|
|
s.gsub! /^declare AKKA_HOME=.*$/, "declare AKKA_HOME=#{libexec}"
|
|
|
|
end
|
|
|
|
|
|
|
|
libexec.install Dir["*"]
|
|
|
|
bin.install_symlink libexec/"bin/akka"
|
2015-05-20 21:02:47 +00:00
|
|
|
bin.install_symlink libexec/"bin/akka-cluster"
|
2012-05-03 22:16:33 +00:00
|
|
|
end
|
|
|
|
end
|