{% set version = "1.10.1" %} {% set maj_min_ver = ".".join(version.split(".")[:2]) %} package: name: hdf5 version: {{ version }} source: fn: hdf5-{{ version }}.tar.gz url: https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-{{ maj_min_ver }}/hdf5-{{ version }}/src/hdf5-{{ version }}.tar.gz sha256: 048a9d149fb99aaa1680a712963f5a78e9c43b588d0e79d55e06760ec377c172 patches: # Patches the test suite to skip the cache, cache_image, and fheap tests # This test has been found to rather resource intensive. # In particular, it caused Travis CI's Mac builds to hang. # Given that we simply skip the test on all platforms. - test_Makefile.in.patch # Disable shared Fortran API building on OSX - osx_configure.patch # [osx] build: number: 2 skip: True # [win and py36] features: - vc9 # [win and py27] - vc14 # [win and (py35 or py36)] detect_binary_files_with_prefix: True requirements: build: - toolchain - python # [win] - libtool # [unix] - cmake >=3.1 - zlib 1.2.11 - gcc # [osx] - libgfortran # [linux] - vc 9 # [win and py27] - vc 14 # [win and py>=35] run: - zlib 1.2.11 - libgfortran # [not win] - vc 9 # [win and py27] - vc 14 # [win and (py35 or py36)] test: requires: - gcc # [osx] files: - h5_cmprss.c - h5tutr_cmprss.cpp - h5_cmprss.f90 - compound_fortran2003.f90 commands: # Verify UNIX CLI tools. {% set hdf5_unix_cmds = [ "h5c++", "h5cc", "h5perf_serial", "h5redeploy", "h5fc" ] %} {% for each_hdf5_unix_cmd in hdf5_unix_cmds %} - command -v {{ each_hdf5_unix_cmd }} # [unix] {% endfor %} # Verify CLI tools. {% set hdf5_cmds = [ "gif2h5", "h52gif", "h5copy", "h5debug", "h5diff", "h5dump", "h5import", "h5jam", "h5ls", "h5mkgrp", "h5repack", "h5repart", "h5stat", "h5unjam" ] %} {% for each_hdf5_cmd in hdf5_cmds %} - command -v {{ each_hdf5_cmd }} # [unix] - where {{ each_hdf5_cmd }} # [win] {% endfor %} # Verify libraries. {% set hdf5_libs = [ "hdf5", "hdf5_cpp", "hdf5_hl", "hdf5_hl_cpp" ] %} {% for each_hdf5_lib in hdf5_libs %} - test -f $PREFIX/lib/lib{{ each_hdf5_lib }}.a # [unix] - test -f $PREFIX/lib/lib{{ each_hdf5_lib }}.dylib # [osx] - test -f $PREFIX/lib/lib{{ each_hdf5_lib }}.so # [linux] - if not exist %PREFIX%\\Library\\lib\\{{ each_hdf5_lib }}.lib exit 1 # [win] - if not exist %PREFIX%\\Library\\bin\\{{ each_hdf5_lib }}.dll exit 1 # [win] {% endfor %} # Inspect linkages of HDF5. {% for each_hdf5_lib in hdf5_libs %} - otool -L $PREFIX/lib/lib{{ each_hdf5_lib }}.dylib # [osx] {% endfor %} - conda inspect linkages -p $PREFIX $PKG_NAME # [not win] - conda inspect objects -p $PREFIX $PKG_NAME # [osx] about: home: http://www.hdfgroup.org/HDF5/ license: HDF5 license_family: BSD license_file: COPYING summary: HDF5 is a data model, library, and file format for storing and managing data extra: recipe-maintainers: - jakirkham - gillins - groutr - ocefpaf - astrofrog-conda-forge - marqh