2014-12-18 13:10:25 +00:00
|
|
|
class Asciinema < Formula
|
2015-06-02 15:53:34 +00:00
|
|
|
desc "Record and share terminal sessions"
|
2016-07-13 22:22:06 +00:00
|
|
|
homepage "https://asciinema.org"
|
|
|
|
url "https://github.com/asciinema/asciinema/archive/v1.3.0.tar.gz"
|
|
|
|
sha256 "968016828119d53b8e4e6ccf40a2635704d236f8e805f635c15adc09a4373a55"
|
2016-12-23 15:11:24 +00:00
|
|
|
revision 1
|
2015-03-08 11:10:36 +00:00
|
|
|
head "https://github.com/asciinema/asciinema.git"
|
2014-12-18 13:10:25 +00:00
|
|
|
|
2014-12-18 15:58:39 +00:00
|
|
|
bottle do
|
2015-09-23 12:10:36 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-12-24 09:25:22 +00:00
|
|
|
sha256 "20800a64e58bb2c662007fb6dcd8ed9eeb503a7b0ffc1aab8c7b8f917696679b" => :sierra
|
|
|
|
sha256 "20401e81d70e056156dc8ef6c0ccc650971185b2ba21c253f047939db6942c99" => :el_capitan
|
|
|
|
sha256 "20401e81d70e056156dc8ef6c0ccc650971185b2ba21c253f047939db6942c99" => :yosemite
|
2014-12-18 15:58:39 +00:00
|
|
|
end
|
|
|
|
|
2016-07-13 22:22:06 +00:00
|
|
|
depends_on :python3
|
2014-12-18 13:10:25 +00:00
|
|
|
|
|
|
|
def install
|
2016-07-13 22:22:06 +00:00
|
|
|
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)
|
2014-12-18 13:10:25 +00:00
|
|
|
|
2016-07-13 22:22:06 +00:00
|
|
|
bin.install Dir[libexec/"bin/*"]
|
2016-09-24 15:45:48 +00:00
|
|
|
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
2014-12-18 13:10:25 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-03-03 16:26:24 +00:00
|
|
|
ENV["LC_ALL"] = "en_US.UTF-8"
|
2015-03-08 11:10:36 +00:00
|
|
|
system "#{bin}/asciinema", "--version"
|
|
|
|
system "#{bin}/asciinema", "--help"
|
2014-12-18 13:10:25 +00:00
|
|
|
end
|
|
|
|
end
|