homebrew-core/Formula/play@1.4.rb
2017-03-19 11:53:21 +01:00

27 lines
758 B
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class PlayAT14 < Formula
desc "Plays goal is to ease Java web applications development."
homepage "https://www.playframework.com"
url "https://downloads.typesafe.com/play/1.4.2/play-1.4.2.zip"
sha256 "b2067f59df5b4c4f9fa542af1f234abd38ac30b5fc8e4e61fb10cfc043c0434c"
bottle :unneeded
def install
rm_rf "python" # we don't need the bundled Python for windows
rm Dir["*.bat"]
libexec.install Dir["*"]
chmod 0755, libexec/"play"
bin.install_symlink libexec/"play"
end
test do
require "open3"
Open3.popen3("#{bin}/play new #{testpath}/app") do |stdin, _, _|
stdin.write "\n"
stdin.close
end
%w[app conf lib public test].each do |d|
File.directory? testpath/"app/#{d}"
end
end
end