2014-11-03 01:25:15 +00:00
|
|
|
require "formula"
|
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-06-29 17:06:03 +00:00
|
|
|
|
|
|
|
stable do
|
|
|
|
url "https://downloads.typesafe.com/akka/akka_2.11-2.3.11.zip"
|
|
|
|
sha256 "58157e4f85024d66e20d7e14d2681e041e385af82985eceb5210a454c251abec"
|
|
|
|
end
|
|
|
|
|
|
|
|
devel do
|
|
|
|
url "https://downloads.typesafe.com/akka/akka_2.11-2.4-M2.zip"
|
|
|
|
sha256 "dc62020928a182cfd1125bd9ec5ff4ce4fcd3629004af450653cc45ad583cfd2"
|
|
|
|
version "2.4-M2"
|
|
|
|
end
|
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
|