From 4ab241b7e07ea003bc493bc32afc846206d84796 Mon Sep 17 00:00:00 2001 From: Steven Luu Date: Thu, 3 May 2012 18:16:33 -0400 Subject: [PATCH] akka 2.0.1 Signed-off-by: Adam Vandenberg --- Library/Formula/akka.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Library/Formula/akka.rb diff --git a/Library/Formula/akka.rb b/Library/Formula/akka.rb new file mode 100644 index 000000000000..96387b321866 --- /dev/null +++ b/Library/Formula/akka.rb @@ -0,0 +1,21 @@ +require 'formula' + +class Akka < Formula + homepage 'http://akka.io/' + url 'http://download.akka.io/downloads/akka-2.0.1.zip' + md5 '362f9c04176ed89199ae85c6d090ee71' + + 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 + + system "chmod +x bin/akka" + libexec.install Dir["*"] + bin.install_symlink libexec/"bin/akka" + end +end