{% set version = "1.1.9" %} package: name: snappy version: {{ version }} source: url: https://github.com/google/snappy/archive/{{ version }}.tar.gz sha256: 75c1fbb3d618dd3a0483bff0e26d0a92b495bbe5059c8b4f1c962b478b6e06e7 patches: # Name the static library snappy_static.lib on windows, to distinguish from # the dynamic library, since they have the same suffix there. # https://github.com/google/snappy/pull/57 - windows-static-lib-name.patch - 0001-Unbundle-gtest.patch - 0002-Disable-BMI2.patch - 0001-cmake-add-option-to-enable-disable-RTTI.patch build: number: 2 ignore_run_exports_from: - lz4-c run_exports: # SO name seems to be changing with patch versions # https://abi-laboratory.pro/?view=timeline&l=snappy # No: 1.1.5 was a bug and reverted in 1.1.6 - {{ pin_subpackage('snappy', max_pin='x') }} requirements: build: - cmake - make - {{ compiler('c') }} - {{ compiler('cxx') }} host: - msinttypes # [win] - gtest - gmock - lz4-c test: commands: - test -e $PREFIX/include/snappy.h # [unix] - test -e $PREFIX/include/snappy-stubs-public.h # [unix] - test -e $PREFIX/lib/libsnappy$SHLIB_EXT # [unix] - if not exist %LIBRARY_INC%\snappy.h exit 1 # [win] - if not exist %LIBRARY_INC%\snappy-stubs-public.h exit 1 # [win] - if not exist %LIBRARY_LIB%\snappy.lib exit 1 # [win] - if not exist %LIBRARY_BIN%\snappy.dll exit 1 # [win] about: home: https://github.com/google/snappy summary: A fast compressor/decompressor license: BSD-3-Clause license_file: COPYING license_family: BSD extra: recipe-maintainers: - groutr - jakirkham - wesm - xhochy - djsutherland