Skip to content

Instantly share code, notes, and snippets.

@jmparsons
Last active December 11, 2015 05:38
Show Gist options
  • Save jmparsons/4553175 to your computer and use it in GitHub Desktop.
Save jmparsons/4553175 to your computer and use it in GitHub Desktop.
Install Play 2.1-RC2 on OSX
# Recipe for play-2.1-RC2
require 'formula'
class Play < Formula
homepage 'http://www.playframework.org/'
url 'http://download.playframework.org/releases/play-2.1-RC2.zip'
md5 '84709daeb21cbecd49f8f3b30f99edc4'
version '2.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
brew install https://raw.github.com/gist/4553175/play.rb
brew switch play 2.1-RC2
brew which play
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment