homebrew-core/Formula/ngt.rb

31 lines
968 B
Ruby
Raw Normal View History

class Ngt < Formula
desc "Neighborhood graph and tree for indexing high-dimensional data"
homepage "https://github.com/yahoojapan/NGT"
url "https://github.com/yahoojapan/NGT/archive/v1.8.0.tar.gz"
sha256 "a6f9c60dcf7e1bbc4bf1017864f68dca7135f701ae13fab43767ac4bba9d3a7f"
2019-10-22 22:32:40 +00:00
bottle do
cellar :any
2019-11-05 13:17:25 +00:00
sha256 "65286d15b504c23db85dd7b63772998b6ca52e6d5ae8757523d19c041afa6af6" => :catalina
sha256 "1f778e11d6f18989c0032fbcfe5532a0f8c334055d50c84ef600254636b369cd" => :mojave
sha256 "0f24a5257802ea41d1ff84e05dce685bba01f4a94a1ed9a7747b61ffa09ad310" => :high_sierra
2019-10-22 22:32:40 +00:00
end
depends_on "cmake" => :build
depends_on "libomp"
def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make"
system "make", "install"
end
pkgshare.install "data"
end
test do
cp_r (pkgshare/"data"), testpath
system "#{bin}/ngt", "-d", "128", "-o", "c", "create", "index", "data/sift-dataset-5k.tsv"
end
end