31 lines
1.1 KiB
Ruby
31 lines
1.1 KiB
Ruby
class Asciinema < Formula
|
|
desc "Record and share terminal sessions"
|
|
homepage "https://asciinema.org"
|
|
url "https://github.com/asciinema/asciinema/archive/v2.0.1.tar.gz"
|
|
sha256 "7087b247dae36d04821197bc14ebd4248049592b299c9878d8953c025ac802e4"
|
|
head "https://github.com/asciinema/asciinema.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "e312010e2476d8e9544a6f7e11290f6188a51b71b4da5afafb043cb4655c9fcd" => :high_sierra
|
|
sha256 "e312010e2476d8e9544a6f7e11290f6188a51b71b4da5afafb043cb4655c9fcd" => :sierra
|
|
sha256 "e312010e2476d8e9544a6f7e11290f6188a51b71b4da5afafb043cb4655c9fcd" => :el_capitan
|
|
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", *Language::Python.setup_install_args(libexec)
|
|
|
|
bin.install Dir[libexec/"bin/*"]
|
|
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
end
|
|
|
|
test do
|
|
ENV["LC_ALL"] = "en_US.UTF-8"
|
|
system "#{bin}/asciinema", "--version"
|
|
system "#{bin}/asciinema", "--help"
|
|
end
|
|
end
|