Last active
December 15, 2015 18:39
-
-
Save fabiofumarola/5305579 to your computer and use it in GitHub Desktop.
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.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 |
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
# to install the latest stable version: | |
brew install play | |
# to install play-2.1.1: | |
brew install https://raw.github.com/gist/4112398/play.rb | |
# to switch versions (from https://github.com/mxcl/homebrew/wiki/External-Commands): | |
brew switch play 2.1.0 | |
brew switch play 2.1.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