aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/akka.rb
blob: 1cb79c02cd08fefde49ad5a6d09e1d2a19fec1c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Akka < Formula
  homepage 'http://akka.io/'
  url 'http://download.akka.io/downloads/akka-2.1.4.tgz'
  sha1 '8ab4b3a49988882ed77beec72603579f0f6b49ee'

  def install
    # Remove Windows files
    rm "bin/akka.bat"

    # 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