2014-12-18 13:10:25 +00:00
|
|
|
require "language/go"
|
|
|
|
|
|
|
|
class Asciinema < Formula
|
2015-06-02 15:53:34 +00:00
|
|
|
desc "Record and share terminal sessions"
|
2014-12-18 13:10:25 +00:00
|
|
|
homepage "https://asciinema.org/"
|
2015-06-21 16:19:04 +00:00
|
|
|
url "https://github.com/asciinema/asciinema/archive/v1.1.1.tar.gz"
|
|
|
|
sha256 "841b3393a65a4f49a01354aed4e2da6c30822dc83bcd988ff100fabda7038055"
|
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-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"
|
2015-03-08 11:10:36 +00:00
|
|
|
ln_s buildpath, buildpath/"src/github.com/asciinema/asciinema"
|
2014-12-18 13:10:25 +00:00
|
|
|
|
2015-05-25 18:38:53 +00:00
|
|
|
system "go", "build", "-o", bin/"asciinema"
|
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
|