homebrew-core/Formula/h3.rb
2019-05-31 09:49:33 +02:00

27 lines
882 B
Ruby

class H3 < Formula
desc "Hexagonal hierarchical geospatial indexing system"
homepage "https://uber.github.io/h3/"
url "https://github.com/uber/h3/archive/v3.4.3.tar.gz"
sha256 "92fad4467e0af343dbf3d003da09bd2df6a1350f46fcc569ca33648593d78f25"
bottle do
cellar :any
sha256 "9cd1586815a262bea8824259fd798a666d663ae55ffcb296aabce7ce88edc5da" => :mojave
sha256 "3ba50df38ac5776ff06f46c39e4161bb0a41802f2b4207d4c13a34dab2a850e5" => :high_sierra
sha256 "ed8cb040305b7a87a7283e9298b8c30d6562d8342795dc7a70442c3ebf72628a" => :sierra
end
depends_on "cmake" => :build
def install
mkdir "build" do
system "cmake", "..", "-DBUILD_SHARED_LIBS=YES", *std_cmake_args
system "make", "install"
end
end
test do
result = pipe_output("#{bin}/geoToH3 10", "40.689167 -74.044444")
assert_equal "8a2a1072b59ffff", result.chomp
end
end