asciinema 1.3.0
Closes #2975. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
67b1f5c490
commit
4834810ab6
1 changed files with 9 additions and 10 deletions
|
@ -1,10 +1,8 @@
|
|||
require "language/go"
|
||||
|
||||
class Asciinema < Formula
|
||||
desc "Record and share terminal sessions"
|
||||
homepage "https://asciinema.org/"
|
||||
url "https://github.com/asciinema/asciinema/archive/v1.2.0.tar.gz"
|
||||
sha256 "64b8c2b034945a99398c5593fd8831c6448fd3b6dd788a979582805bfdcb5746"
|
||||
homepage "https://asciinema.org"
|
||||
url "https://github.com/asciinema/asciinema/archive/v1.3.0.tar.gz"
|
||||
sha256 "968016828119d53b8e4e6ccf40a2635704d236f8e805f635c15adc09a4373a55"
|
||||
|
||||
head "https://github.com/asciinema/asciinema.git"
|
||||
|
||||
|
@ -15,14 +13,15 @@ class Asciinema < Formula
|
|||
sha256 "b92022ad9a785aebbedc1cbd19160eba65416070dea34f5cb8d5d2de7e6d0315" => :mavericks
|
||||
end
|
||||
|
||||
depends_on "go" => :build
|
||||
depends_on :python3
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
mkdir_p buildpath/"src/github.com/asciinema"
|
||||
ln_s buildpath, buildpath/"src/github.com/asciinema/asciinema"
|
||||
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)
|
||||
|
||||
system "go", "build", "-o", bin/"asciinema"
|
||||
bin.install Dir[libexec/"bin/*"]
|
||||
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue