homebrew-core/Formula/points2grid.rb
Mike McQuaid 19a487a114 points2grid: seems to depend on Mavericks.
At least the test fails consistently on 10.8.
2015-07-07 15:22:55 +01:00

35 lines
1 KiB
Ruby

class Points2grid < Formula
desc "Generate digital elevation models using local griding"
homepage "https://github.com/CRREL/points2grid"
url "https://github.com/CRREL/points2grid/archive/1.3.0.tar.gz"
sha256 "87acdfd336fac20d2c2a22926b045c7f3f0fc925769a87393aff28b8c351c62b"
revision 1
bottle do
cellar :any
revision 2
sha256 "3d39ec269752918a1ed175b816ea3533f5e4bd63e8a5198c8178dbdfb32ad21d" => :yosemite
sha256 "d2fe173b6a446c0b776da7c23482fae6f3021b4ffc0efebf8e18d8abac1fee4a" => :mavericks
end
depends_on :macos => :mavericks
depends_on "cmake" => :build
depends_on "boost"
depends_on "gdal"
def install
args = std_cmake_args + ["-DWITH_GDAL=ON"]
libexec.install "example.las"
system "cmake", ".", *args
system "make", "install"
end
test do
system bin/"points2grid",
"-i", libexec/"example.las",
"-o", "example",
"--max", "--output_format", "grid"
assert_equal 13, File.read("example.max.grid").scan("423.820000").size
end
end