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"
|
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-09-16 20:36:37 +00:00
|
|
|
sha256 "aaba59c7528f909f665ae4150f9c21d87b818244aefa176ad5ccba1469c33a4c" => :sierra
|
2016-07-14 01:19:09 +00:00
|
|
|
sha256 "6205d485d86ea24d0a0396cc56fd76b09490a83c5210e74ff505aa03cd4fcb1d" => :el_capitan
|
|
|
|
sha256 "6578e8f11c7d2918f1f7a6c00350c485a937ae1a7037e4d715ecf66e80001cd7" => :yosemite
|
|
|
|
sha256 "25455ff63f3f68f17671727ba02f09bb7b03bfa4fadab3fa0c9bd4a7d687cbf0" => :mavericks
|
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
|