homebrew-core/Formula/play.rb
Martin-Zack Mekkaoui 4b63a8971a Play Framework 2.2.1
Closes Homebrew/homebrew#23828.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-10-31 07:42:41 -07:00

19 lines
518 B
Ruby

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'
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