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.1.1.tar.gz"
sha256 "841b3393a65a4f49a01354aed4e2da6c30822dc83bcd988ff100fabda7038055"
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-02-20 15:36:34 +00:00
cellar :any
2015-06-22 12:12:12 +00:00
sha256 "40c3f1466904bacee94c34775a53084ea559cf26dc25cfc66966809e56a45d3e" => :yosemite
sha256 "6b9e943dd78548982c372fac5306462309d140bd8252cdb710e36a807fda3cde" => :mavericks
sha256 "a9d488607f8c9abcfdc2c00fdde8c9833b2a6733e4a923565dd218723d7989a8" => :mountain_lion
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