2010-04-17 11:49:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Play < Formula
|
2010-04-17 11:49:53 +00:00
|
|
|
homepage 'http://www.playframework.org/'
|
2013-08-24 20:25:51 +00:00
|
|
|
head 'https://github.com/playframework/playframework.git'
|
2013-09-20 08:19:13 +00:00
|
|
|
url 'http://downloads.typesafe.com/play/2.2.0/play-2.2.0.zip'
|
|
|
|
sha1 '455b0c24cf94c8c59c03df0a1fd3bf7f33c2c953'
|
2013-08-10 16:14:43 +00:00
|
|
|
|
2010-04-17 11:49:53 +00:00
|
|
|
def install
|
2013-08-24 20:25:51 +00:00
|
|
|
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'
|
2010-04-17 11:49:53 +00:00
|
|
|
end
|
2012-03-16 03:08:17 +00:00
|
|
|
end
|