Skip to content

Instantly share code, notes, and snippets.

@dakcarto
Created February 2, 2014 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dakcarto/8773581 to your computer and use it in GitHub Desktop.
Save dakcarto/8773581 to your computer and use it in GitHub Desktop.
Temporary points2grid Homebrew formula
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