homebrew-core/Formula/akka.rb

21 lines
495 B
Ruby
Raw Normal View History

require "formula"
class Akka < Formula
homepage "http://akka.io/"
2015-04-10 14:11:33 +00:00
url "http://downloads.typesafe.com/akka/akka_2.10-2.3.9.zip"
sha256 "b790207f2bd6b8b615c08c2615f26a972580cb0391339f3c4211242adcc93d2c"
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