Skip to content

Instantly share code, notes, and snippets.

@danrigsby
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danrigsby/b7b7fde28e4724a0bf81 to your computer and use it in GitHub Desktop.
Save danrigsby/b7b7fde28e4724a0bf81 to your computer and use it in GitHub Desktop.
Install Play 2.1.5 via HomeBrew
# Recipe for play-2.1.5
require 'formula'
class Play < Formula
homepage 'http://www.playframework.org/'
url 'http://downloads.typesafe.com/play/2.1.5/play-2.1.5.zip'
# For integrity and security, we verify the hash (`openssl dgst -sha1 <FILE>`)
sha1 '0c92e9c0c0e7ddfba0ef8a2f730c5cbcd6ebc377'
version '2.1.5'
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
@danrigsby
Copy link
Author

To run this, just type the following in a terminal after you have install HomeBrew:

brew install https://gist.githubusercontent.com/danrigsby/b7b7fde28e4724a0bf81/raw/730b3e0010e09ea8570530ebcda6f014ad8da751/play.rb

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