Skip to content

Instantly share code, notes, and snippets.

@svenmueller
Forked from dgouyette/play.rb
Last active August 29, 2015 13:57
Show Gist options
  • Save svenmueller/9408570 to your computer and use it in GitHub Desktop.
Save svenmueller/9408570 to your computer and use it in GitHub Desktop.
# Recipe for play-2.1.1
require 'formula'
class Play < Formula
homepage 'http://www.playframework.org/'
url 'http://downloads.typesafe.com/play/2.1.1/play-2.1.1.zip'
md5 '1ec0b736f9836f760b3c135154fd9a4b'
version '2.1.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
@svenmueller
Copy link
Author

# install lastest version
brew install play
#install version 2.1.1
brew install https://gist.githubusercontent.com/svenmueller/9408570/raw/290de537cfdc1cbfb1d48b46c02befd398d0da4a/play.rb
# switch version
brew switch play <version>
# show currently used version
brew which play

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment