Last active
August 29, 2015 14:11
-
-
Save danrigsby/b7b7fde28e4724a0bf81 to your computer and use it in GitHub Desktop.
Install Play 2.1.5 via HomeBrew
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.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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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