Skip to content

Instantly share code, notes, and snippets.

@dgouyette
Last active December 15, 2015 14:39
Show Gist options
  • Save dgouyette/5276274 to your computer and use it in GitHub Desktop.
Save dgouyette/5276274 to your computer and use it in GitHub Desktop.
Install Play play-2.1.1-RC2 with homebrew
# Recipe for play-2.1.1-RC2
require 'formula'
class Play < Formula
homepage 'http://www.playframework.org/'
url 'http://downloads.typesafe.com/play/2.1.1-RC2/play-2.1.1-RC2.zip'
md5 'ef4b378dae9c6a8711f9f5395e626ca3'
version '2.1.1-RC2'
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
@dgouyette
Copy link
Author

to install the latest stable version:

brew install play

to install play-2.1.1-RC2:

brew install https://gist.github.com/dgouyette/5276274/raw/f0c5a500dc658b8eb4976086b0fe06f7ec9e8398/play.rb

to switch versions :

brew switch play 2.1.0
brew switch play 2.1.1-RC2

to see which play 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