blob: f5ee6e1e79331a12f3ba37b47c5f15391abacec0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
require 'formula'
class Akka < Formula
homepage 'http://akka.io/'
url 'http://download.akka.io/downloads/akka-2.0.2.zip'
sha1 'b1705aaac6f9702c0c56438ed9ad572c8af2b0e8'
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
|