diff --git a/Formula/ttylog.rb b/Formula/ttylog.rb new file mode 100644 index 0000000000..c8e33f874e --- /dev/null +++ b/Formula/ttylog.rb @@ -0,0 +1,23 @@ +require "formula" + +class Ttylog < Formula + homepage "http://ttylog.sourceforge.net/" + url "https://downloads.sourceforge.net/project/ttylog/ttylog/0.25/ttylog-0.25.tar.gz" + sha1 "02bb49066d861690439b351f06b0c3bdb203f06b" + + depends_on "cmake" => :build + + def install + mkdir "build" do + system "cmake", "..", *std_cmake_args + system "make" + system "make install" + + bin.install sbin/"ttylog" + end + end + + test do + system "#{bin}/ttylog", "-h" + end +end