28 lines
1 KiB
Ruby
28 lines
1 KiB
Ruby
class Asciinema2gif < Formula
|
|
desc "Generate animated GIFs from asciinema terminal recordings"
|
|
homepage "https://github.com/tav/asciinema2gif"
|
|
url "https://github.com/tav/asciinema2gif/archive/v0.5.tar.gz"
|
|
sha256 "2ff5b7145e31db55ebe06c320d3b5d53c42101ec669621344aac0a4fb9f1a4be"
|
|
head "https://github.com/tav/asciinema2gif.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "9802e9fdba9003a1521ee050e87000fb221e7044e96e63da6531a270b6788a22" => :high_sierra
|
|
sha256 "49f626f86c63d429f618ae4d010bd3d98080aa1840354b1f6c9dc398eeb5fec2" => :sierra
|
|
sha256 "49f626f86c63d429f618ae4d010bd3d98080aa1840354b1f6c9dc398eeb5fec2" => :el_capitan
|
|
sha256 "49f626f86c63d429f618ae4d010bd3d98080aa1840354b1f6c9dc398eeb5fec2" => :yosemite
|
|
end
|
|
|
|
depends_on "gifsicle"
|
|
depends_on "imagemagick"
|
|
depends_on "phantomjs"
|
|
|
|
def install
|
|
(libexec/"bin").install %w[asciinema2gif render.js]
|
|
bin.write_exec_script libexec/"bin/asciinema2gif"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/asciinema2gif", "--help"
|
|
end
|
|
end
|