2012-05-03 22:16:33 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Akka < Formula
|
|
|
|
homepage 'http://akka.io/'
|
2012-12-25 09:22:15 +00:00
|
|
|
url 'http://download.akka.io/downloads/akka-2.1.0.tgz'
|
|
|
|
sha1 'fd93792e94a2d2c981d62a70f45f6d6da0f74d47'
|
2012-05-03 22:16:33 +00:00
|
|
|
|
|
|
|
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
|