homebrew-core/Formula/grt.rb

37 lines
1.1 KiB
Ruby
Raw Normal View History

class Grt < Formula
desc "The Gesture Recognition Toolkit for real-time machine learning"
2017-01-16 17:54:07 +00:00
homepage "http://nickgillian.com/grt/"
url "https://github.com/nickgillian/grt/archive/v0.0.1.tar.gz"
sha256 "56f90a9ffa8b2bf4e5831d39f9e1912879cf032efa667a5237b57f68800a2dda"
2016-05-09 01:54:42 +00:00
bottle do
cellar :any
2016-09-27 07:27:31 +00:00
sha256 "8c31e85370522a4db436657f0f5501f0fd20befc31b969a0c0db6c33ed12aed7" => :sierra
2016-05-09 01:54:42 +00:00
sha256 "f48b42fd6f856239fb1f004a700aec5a85c129dc0a4a2b5955ce6a9a9721b231" => :el_capitan
sha256 "aa26978c7029c36ab7d20a0e092968132e96255087f4155a1739db6dfcb9c170" => :yosemite
sha256 "a3170758b555fe767a6c9b75940cdd3b22fe17740c7902bc4058ab7bd01d575f" => :mavericks
end
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