2012-05-03 22:16:33 +00:00
|
|
|
class Akka < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Toolkit for building concurrent, distributed, and fault tolerant apps"
|
2014-11-03 01:25:15 +00:00
|
|
|
homepage "http://akka.io/"
|
2015-10-26 00:08:18 +00:00
|
|
|
url "https://downloads.typesafe.com/akka/akka_2.11-2.4.0.zip"
|
2015-10-23 22:59:47 +00:00
|
|
|
sha256 "22155144e5828a1dc40fa0a74031d5bf10292e8fb574d1c7fc5fc0ddebd03667"
|
2012-05-03 22:16:33 +00:00
|
|
|
|
2015-10-22 12:45:37 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
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
|
|
|
inreplace ["bin/akka", "bin/akka-cluster"] do |s|
|
2015-06-29 17:06:03 +00:00
|
|
|
# Translate akka script
|
2012-05-03 22:16:33 +00:00
|
|
|
s.gsub! /^declare AKKA_HOME=.*$/, "declare AKKA_HOME=#{libexec}"
|
2015-06-29 17:06:03 +00:00
|
|
|
# dos to unix (bug fix for version 2.3.11)
|
|
|
|
s.gsub! /\r?/, ""
|
2012-05-03 22:16:33 +00:00
|
|
|
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
|