Last active
December 11, 2015 05:38
-
-
Save jmparsons/4553175 to your computer and use it in GitHub Desktop.
Install Play 2.1-RC2 on OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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