blob: 745e5b71dc30d99f7e982b5d558248e61efe28ad (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 | require "formula"
class Akka < Formula
  homepage "http://akka.io/"
  url "https://downloads.typesafe.com/akka/akka_2.10-2.3.9.zip"
  sha256 "b790207f2bd6b8b615c08c2615f26a972580cb0391339f3c4211242adcc93d2c"
  def install
    # Remove Windows files
    rm "bin/akka.bat"
    chmod 0755, "bin/akka"
    chmod 0755, "bin/akka-cluster"
    # 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
 |