Skip to content

Commit

Permalink
grt 0.0.1 (new formula)
Browse files Browse the repository at this point in the history
The Gesture Recognition Toolkit (GRT) for Real-time machine learning,
developed by Nick Gillian.

Closes #967.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
  • Loading branch information
nebgnahz authored and UniqMartin committed May 9, 2016
1 parent c088e1a commit d43a097
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Formula/grt.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class Grt < Formula
desc "The Gesture Recognition Toolkit for real-time machine learning"
homepage "http://www.nickgillian.com/wiki/pmwiki.php/GRT/GestureRecognitionToolkit"
url "https://github.com/nickgillian/grt/archive/v0.0.1.tar.gz"
sha256 "56f90a9ffa8b2bf4e5831d39f9e1912879cf032efa667a5237b57f68800a2dda"

depends_on "cmake" => :build

def install
cd "build"
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "install"
end
end

test do
(testpath/"test.cpp").write <<-EOS.undent
#include <GRT/GRT.h>
int main() {
GRT::GestureRecognitionPipeline pipeline;
return 0;
}
EOS
system ENV.cxx, "test.cpp", "-L#{lib}", "-lgrt", "-o", "test"
system "./test"
end
end

0 comments on commit d43a097

Please sign in to comment.