35 lines
1.3 KiB
Ruby
35 lines
1.3 KiB
Ruby
class Doitlive < Formula
|
|
desc "Replay stored shell commands for live presentations"
|
|
homepage "https://doitlive.readthedocs.io/en/latest/"
|
|
url "https://files.pythonhosted.org/packages/e5/d9/4ce969d98f521c253ec3b15a0c759104a01061ac90fb9d8636b015bcb4ea/doitlive-4.3.0.tar.gz"
|
|
sha256 "4cb1030e082d8649f10a61d599d3ff3bcad7f775e08f0e68ee06882e06d0190f"
|
|
revision 2
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "c63fd496c0a58b46dd4f3afd19a9a58154eb4cf6f4bda85d4e385f63653d18ed" => :mojave
|
|
sha256 "789b5fe1df13df74bc892fef84e117524365afe7a80c36aed0da11b362954652" => :high_sierra
|
|
sha256 "61bedbbff92ec299f502b4cb3f9805d58ed589127baa1cc3358d861f2ae124a4" => :sierra
|
|
end
|
|
|
|
depends_on "python"
|
|
|
|
def install
|
|
xy = Language::Python.major_minor_version "python3"
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{xy}/site-packages"
|
|
system "python3", "setup.py", "install", "--prefix=#{libexec}"
|
|
|
|
bin.install Dir[libexec/"bin/*"]
|
|
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
|
|
output = Utils.popen_read("SHELL=bash #{libexec}/bin/doitlive completion")
|
|
(bash_completion/"doitlive").write output
|
|
|
|
output = Utils.popen_read("SHELL=zsh #{libexec}/bin/doitlive completion")
|
|
(zsh_completion/"_doitlive").write output
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/doitlive", "themes", "--preview"
|
|
end
|
|
end
|