Created
August 23, 2013 10:41
-
-
Save abstraktor/6317924 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
# Brew Formula for installing play 12 from abstraktor source | |
# available on gh gist 6317924 | |
require 'formula' | |
class Play12Custom < Formula | |
homepage 'http://www.playframework.org/' | |
url 'https://github.com/abstraktor/play1', :using => :git, :tag => '1.2.x' | |
def install | |
Dir.chdir("framework") do | |
system "ant" | |
end | |
rm_rf 'python' # we don't need the bundled Python for windows | |
rm Dir['*.bat'] | |
libexec.install Dir['*'] | |
bin.mkpath | |
ln_s libexec+'play', bin | |
end | |
test do | |
system "play", "version" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment