Created
February 2, 2014 19:36
-
-
Save dakcarto/8773581 to your computer and use it in GitHub Desktop.
Temporary points2grid Homebrew formula
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Points2grid < Formula | |
homepage 'https://github.com/CRREL/points2grid' | |
url 'https://github.com/CRREL/points2grid/archive/1.1.0.tar.gz' | |
sha1 'aef7e124b47022bee85bb3585f5996af5cb132e3' | |
depends_on 'cmake' => :build | |
depends_on 'boost' | |
def install | |
prefix.install "example.las" | |
system "cmake", ".", *std_cmake_args | |
system "make install" | |
end | |
test do | |
mktemp do | |
system bin/"points2grid", | |
"-i", prefix/"example.las", | |
"-o", "example", | |
"--max", "--output_format", "grid" | |
assert_equal 5, %x(grep -c '423.820000' < example.max.grid).strip.to_i | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment