From 66e6b72997dbf07b2d8e58ade2d8c531f7d758e2 Mon Sep 17 00:00:00 2001 From: Philipp Haussleiter Date: Thu, 29 Nov 2018 01:50:39 +0100 Subject: [PATCH] termtosvg 0.7.0 (new formula) Closes #34577. Signed-off-by: Igor Kapkov --- Formula/termtosvg.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Formula/termtosvg.rb diff --git a/Formula/termtosvg.rb b/Formula/termtosvg.rb new file mode 100644 index 0000000000..6a46443568 --- /dev/null +++ b/Formula/termtosvg.rb @@ -0,0 +1,21 @@ +class Termtosvg < Formula + include Language::Python::Virtualenv + + desc "Record terminal sessions as SVG animations" + homepage "https://nbedos.github.io/termtosvg" + url "https://github.com/nbedos/termtosvg/archive/0.7.0.tar.gz" + sha256 "a90cbd2ea29e1bdf4059aa8feb8f19e9f32da5620b447289ac78cde38682c7c2" + + depends_on "python" + + def install + venv = virtualenv_create(libexec, "python3") + system libexec/"bin/pip", "install", "-U", "-e", "." + venv.pip_install_and_link buildpath + bin.install_symlink libexec/"bin/termtosvg" + end + + test do + system libexec/"bin/python", "-m", "unittest", "termtosvg.tests.suite" + end +end