2014-07-27 18:22:54 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Doitlive < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Replay stored shell commands for live presentations"
|
2015-07-10 20:54:51 +00:00
|
|
|
homepage "https://doitlive.readthedocs.org/en/latest/"
|
2015-02-08 20:01:14 +00:00
|
|
|
url "https://pypi.python.org/packages/source/d/doitlive/doitlive-2.3.1.tar.gz"
|
|
|
|
sha1 "4afea3f3a4442ab614d878fb359c143b6080a38b"
|
2014-07-27 18:22:54 +00:00
|
|
|
|
2014-07-27 21:50:02 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-02-09 12:36:17 +00:00
|
|
|
sha1 "8bdb41603a087ccb0b3f50e56e37a60eacdd46c7" => :yosemite
|
|
|
|
sha1 "1b976835aa074897a4aa5b3e8828813aaf3bb718" => :mavericks
|
|
|
|
sha1 "89faad888461a236a24a6964a0df58bb05c5496d" => :mountain_lion
|
2014-07-27 21:50:02 +00:00
|
|
|
end
|
|
|
|
|
2014-07-27 18:22:54 +00:00
|
|
|
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
|