homebrew-core/Formula/doitlive.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

27 lines
948 B
Ruby

class Doitlive < Formula
desc "Replay stored shell commands for live presentations"
homepage "https://doitlive.readthedocs.org/en/latest/"
url "https://pypi.python.org/packages/source/d/doitlive/doitlive-2.3.1.tar.gz"
sha256 "ab1e5965910be74bd56beb71d533ea1f4ae84b807271ca1605607834163b6e24"
bottle do
cellar :any
sha1 "8bdb41603a087ccb0b3f50e56e37a60eacdd46c7" => :yosemite
sha1 "1b976835aa074897a4aa5b3e8828813aaf3bb718" => :mavericks
sha1 "89faad888461a236a24a6964a0df58bb05c5496d" => :mountain_lion
end
depends_on :python if MacOS.version <= :snow_leopard
def install
ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages"
system "python", "setup.py", "install", "--prefix=#{libexec}"
bin.install Dir[libexec/"bin/*"]
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
test do
system "#{bin}/doitlive", "themes", "--preview"
end
end