aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/play.rb
blob: 4c21b728f8bff7f1ae0badda7665e481c75e0bb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.0/play-2.2.0.zip'
  sha1 '455b0c24cf94c8c59c03df0a1fd3bf7f33c2c953'

  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