Skip to content

Instantly share code, notes, and snippets.

@bigtoast
Last active December 11, 2015 23:18
Show Gist options
  • Save bigtoast/4675514 to your computer and use it in GitHub Desktop.
Save bigtoast/4675514 to your computer and use it in GitHub Desktop.
# Recipe for play-2.1-RC3
require 'formula'
class Play < Formula
homepage 'http://www.playframework.org/'
url 'http://download.playframework.org/releases/play-2.1-RC4.zip'
md5 '4ec1939d58f7e8de1a7b864e50cd7b35'
version '2.1-RC4'
def install
rm Dir['*.bat'] # remove windows' bat files
libexec.install Dir['*']
inreplace libexec+"play" do |s|
s.gsub! "$dir/", "$dir/../libexec/"
s.gsub! "dir=`dirname $PRG`", "dir=`dirname $0` && dir=$dir/`dirname $PRG`"
end
bin.install_symlink libexec+'play'
end
end
# to install the latest stable version:
brew install play
# to install play-2.1-RC3:
# if you already have a version of play installed you will need to unlink it.
brew unlink play
brew install https://raw.github.com/gist/4675514/play.rb
# to switch versions (from https://github.com/mxcl/homebrew/wiki/External-Commands):
brew switch play 2.0.4
brew switch play 2.1-RC4
# to see which scala you're currently using:
brew which play
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment