Skip to content

Instantly share code, notes, and snippets.

@arook
Last active December 14, 2015 21:09
Show Gist options
  • Save arook/5148999 to your computer and use it in GitHub Desktop.
Save arook/5148999 to your computer and use it in GitHub Desktop.
# Recipe for play-2.1
require 'formula'
class Play < Formula
homepage 'http://www.playframework.org/'
url 'http://downloads.typesafe.com/play/2.1.0/play-2.1.0.zip'
md5 '0eef88602d26409bb584536cedb585de'
version '2.1'
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-RC1:
brew install https://raw.github.com/gist/4112398/play.rb
# to install play-2.1-release:
brew install https://raw.github.com/gist/5148999/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-RC1
brew switch play 2.1
# 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