Skip to content

Instantly share code, notes, and snippets.

@rokgerzelj
Last active December 10, 2015 20:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rokgerzelj/4485598 to your computer and use it in GitHub Desktop.
Save rokgerzelj/4485598 to your computer and use it in GitHub Desktop.
# Recipe for play-2.1-RC1
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
# to install the latest stable version:
brew install play
# to install play-2.1-RC2:
brew install https://raw.github.com/gist/4485598/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-RC2
# 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