homebrew-core/Formula/laszip.rb
2019-10-10 23:15:21 +02:00

28 lines
1 KiB
Ruby

class Laszip < Formula
desc "Lossless LiDAR compression"
homepage "https://laszip.org/"
url "https://github.com/LASzip/LASzip/releases/download/3.4.1/laszip-src-3.4.1.tar.gz"
sha256 "5d9b0ffaf8b7319c2fa216da3f3f878bb8f4e5b4b14d2c154d441a351da2be37"
head "https://github.com/LASzip/LASzip.git"
bottle do
sha256 "7779ef145383b44244ad5cac6e46e5ef003fe99b4406dcdec9f14aa757511c99" => :catalina
sha256 "bb1b85c70f7efee68cac94ed831941fe1420530f36166587a8715ec5507330eb" => :mojave
sha256 "a9396e0e7d10b57df846c73fcfe807d354a1aab80f5b0c85fb6a68b420db00aa" => :high_sierra
sha256 "7148c262d7dd9e0d9889aebc5fb38f3b12954e74b716fa7b65cb5550350ee196" => :sierra
end
depends_on "cmake" => :build
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
pkgshare.install "example"
end
test do
system ENV.cxx, pkgshare/"example/laszipdllexample.cpp", "-L#{lib}",
"-llaszip", "-llaszip_api", "-Wno-format", "-o", "test"
assert_match "LASzip DLL", shell_output("./test -h 2>&1", 1)
end
end