Skip to content

Commit

Permalink
gdal: Add c-blosc to gdal
Browse files Browse the repository at this point in the history
* Add blosc compression library to gdal build as it is required to open many .zarr files
* Add test for blosc compression
  • Loading branch information
ateucher committed Dec 14, 2024
1 parent 15a6335 commit 40f49c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Formula/g/gdal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Gdal < Formula
depends_on "python-setuptools" => :build
depends_on "swig" => :build
depends_on "apache-arrow"
depends_on "c-blosc"
depends_on "cfitsio"
depends_on "epsilon"
depends_on "expat"
Expand Down Expand Up @@ -128,5 +129,7 @@ def install
system bin/"ogrinfo", "--formats"
# Changed Python package name from "gdal" to "osgeo.gdal" in 3.2.0.
system python3, "-c", "import osgeo.gdal"
# test for zarr blosc compressor
assert_match "BLOSC_COMPRESSORS", shell_output("#{bin}/gdalinfo --format Zarr")
end
end

0 comments on commit 40f49c4

Please sign in to comment.