{% set name = "type_safe" %}
{% set version = "0.2.2" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://github.com/foonathan/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
  sha256: 34d97123fb9bca04a333565c4a2498425d602ec0c759de4be1b8cfae77d05823

build:
  number: 0

requirements:
  build:
    - cmake
    # type_safe is header-only but its cmake setup is looking for a compiler
    - {{ compiler('cxx') }}
    - make  # [not win]

test:
  commands:
    - test -f $PREFIX/include/type_safe/optional.hpp            # [unix]
    - if not exist %LIBRARY_INC%\type_safe\optional.hpp exit 1  # [win]

about:
  home: https://github.com/foonathan/type_safe
  license: MIT
  license_family: MIT
  license_file: LICENSE
  summary: 'zero overhead abstractions that use the C++ type system to prevent bugs'
  doc_url: https://type_safe.foonathan.net/
  dev_url: https://github.com/foonathan/type_safe

extra:
  recipe-maintainers:
    - saraedum

{% set name = "type_safe" %}
{% set version = "0.2.2" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://github.com/foonathan/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
  sha256: 34d97123fb9bca04a333565c4a2498425d602ec0c759de4be1b8cfae77d05823

build:
  number: 0

requirements:
  build:
    - cmake
    # type_safe is header-only but its cmake setup is looking for a compiler
    - {{ compiler('cxx') }}
    - make  # [not win]
    ignore_run_exports_from:
      # Since this does not contain any compiled code, we do not need any
      # compatibility with the compiler used at runtime.
      - {{ compiler('cxx') }}

test:
  commands:
    - test -f $PREFIX/include/type_safe/optional.hpp            # [unix]
    - if not exist %LIBRARY_INC%\type_safe\optional.hpp exit 1  # [win]

about:
  home: https://github.com/foonathan/type_safe
  license: MIT
  license_family: MIT
  license_file: LICENSE
  summary: 'zero overhead abstractions that use the C++ type system to prevent bugs'
  doc_url: https://type_safe.foonathan.net/
  dev_url: https://github.com/foonathan/type_safe

extra:
  recipe-maintainers:
    - saraedum

Remove host/run dependencies coming from the compiler
Remove host/run dependencies coming from the compiler
