homebrew-core/Formula/doitlive.rb

29 lines
879 B
Ruby
Raw Normal View History

2014-07-27 18:22:54 +00:00
require "formula"
class Doitlive < Formula
homepage "http://doitlive.readthedocs.org/en/latest/"
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
bottle do
cellar :any
2015-02-09 12:36:17 +00:00
sha1 "8bdb41603a087ccb0b3f50e56e37a60eacdd46c7" => :yosemite
sha1 "1b976835aa074897a4aa5b3e8828813aaf3bb718" => :mavericks
sha1 "89faad888461a236a24a6964a0df58bb05c5496d" => :mountain_lion
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