homebrew-core/Formula/asciinema.rb

34 lines
1 KiB
Ruby
Raw Normal View History

2014-12-18 13:10:25 +00:00
require "language/go"
class Asciinema < Formula
desc "Record and share terminal sessions"
2014-12-18 13:10:25 +00:00
homepage "https://asciinema.org/"
url "https://github.com/asciinema/asciinema/archive/v1.2.0.tar.gz"
sha256 "64b8c2b034945a99398c5593fd8831c6448fd3b6dd788a979582805bfdcb5746"
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-02-26 11:54:28 +00:00
sha256 "a912cac0c3f63fdf3e102cbde0b1a42895c80d176f9bb9116a00f3835b5d9260" => :el_capitan
sha256 "845f9ac6d0a94b7938583baf12485edc678334d7ce3758a629f76eeabac99e1f" => :yosemite
sha256 "b92022ad9a785aebbedc1cbd19160eba65416070dea34f5cb8d5d2de7e6d0315" => :mavericks
2014-12-18 15:58:39 +00:00
end
2014-12-18 13:10:25 +00:00
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
mkdir_p buildpath/"src/github.com/asciinema"
ln_s buildpath, buildpath/"src/github.com/asciinema/asciinema"
2014-12-18 13:10:25 +00:00
system "go", "build", "-o", bin/"asciinema"
2014-12-18 13:10:25 +00:00
end
test do
ENV["LC_ALL"] = "en_US.UTF-8"
system "#{bin}/asciinema", "--version"
system "#{bin}/asciinema", "--help"
2014-12-18 13:10:25 +00:00
end
end