homebrew-core/Formula/akka.rb

28 lines
787 B
Ruby
Raw Normal View History

class Akka < Formula
desc "Toolkit for building concurrent, distributed, and fault tolerant apps"
homepage "http://akka.io/"
url "https://downloads.typesafe.com/akka/akka_2.11-2.4.0.zip"
sha256 "22155144e5828a1dc40fa0a74031d5bf10292e8fb574d1c7fc5fc0ddebd03667"
2015-10-22 12:45:37 +00:00
bottle :unneeded
def install
# Remove Windows files
rm "bin/akka.bat"
chmod 0755, "bin/akka"
chmod 0755, "bin/akka-cluster"
inreplace ["bin/akka", "bin/akka-cluster"] do |s|
2015-06-29 17:06:03 +00:00
# Translate akka script
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?/, ""
end
libexec.install Dir["*"]
bin.install_symlink libexec/"bin/akka"
bin.install_symlink libexec/"bin/akka-cluster"
end
end