New formula: ttylog

Closes Homebrew/homebrew#31985.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
ladislas 2014-08-30 17:12:55 +02:00 committed by Jack Nagel
parent 2281f04f9e
commit 4cf251c8af

23
Formula/ttylog.rb Normal file
View file

@ -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