blob: f199529f5ba9adcf06c60f532ddf6cf5ef22d4a3 (
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 Play < Formula
  homepage 'http://www.playframework.org/'
  head 'https://github.com/playframework/playframework.git'
  url 'http://downloads.typesafe.com/play/2.2.1/play-2.2.1.zip'
  sha1 'e4567f3cf61536908d66e85bde48d7e953f0a01f'
  conflicts_with 'sox', :because => 'both install `play` binaries'
  def install
    system "./framework/build", "publish-local" if build.head?
    # remove Windows .bat files
    rm Dir['*.bat']
    rm Dir["#{buildpath}/**/*.bat"] if build.head?
    libexec.install Dir['*']
    bin.install_symlink libexec/'play'
  end
end
  |