36 lines
1.0 KiB
Ruby
36 lines
1.0 KiB
Ruby
class Grt < Formula
|
|
desc "Gesture Recognition Toolkit for real-time machine learning"
|
|
homepage "https://nickgillian.com/grt/"
|
|
url "https://github.com/nickgillian/grt/archive/v0.2.4.tar.gz"
|
|
sha256 "55bcabe7a58916461dc4341758eff2a45bd5b236c263dfe6e58c176c1a7e1ac4"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, catalina: "35705ad1d151228e4e8c647cf16fc5b7578b4b777c54e94ebbcc8e19d26bd1f5"
|
|
sha256 cellar: :any, mojave: "830332fffbe52f7eb282eca343977fa27e4ae4978bc9f409df264cba5f37e38c"
|
|
sha256 cellar: :any, high_sierra: "d5a55b3a6b4ca75d3ef37ba47f43ed033215e0d9b5f5a26f738e484f3e428667"
|
|
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
|
|
#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
|