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-10-31 10:59:26 +00:00
|
|
|
url 'http://downloads.typesafe.com/play/2.2.1/play-2.2.1.zip'
|
|
|
|
sha1 'e4567f3cf61536908d66e85bde48d7e953f0a01f'
|
2013-08-10 16:14:43 +00:00
|
|
|
|
2013-11-12 07:35:21 +00:00
|
|
|
conflicts_with 'sox', :because => 'both install `play` binaries'
|
|
|
|
|
2014-01-14 20:34:10 +00:00
|
|
|
devel do
|
2014-01-23 09:25:03 +00:00
|
|
|
url 'http://downloads.typesafe.com/play/2.2.2-RC2/play-2.2.2-RC2.zip'
|
|
|
|
sha1 '30a31d9f01893f4ab57e554aa339994eea20bd51'
|
2014-01-14 20:34:10 +00:00
|
|
|
end
|
|
|
|
|
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
|