Skip to content

Instantly share code, notes, and snippets.

@abstraktor
Created August 23, 2013 10:41
Show Gist options
  • Save abstraktor/6317924 to your computer and use it in GitHub Desktop.
Save abstraktor/6317924 to your computer and use it in GitHub Desktop.
# 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