{% set name = "ndarray" %}
{% set version = "1.6.1" %}

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

source:
  url: https://github.com/ndarray/ndarray/archive/{{ version }}.tar.gz
  sha256: c5c7264e53588d90e299e205dd8ae846e28d9f93835f76b0be9e4042ddb24bd3
  patches:
    - 0001-shared-unit-test-link.patch

build:
  number: 1
  skip: true  # [win]

requirements:
  build:
    - cmake
    - m4
    - {{ compiler('cxx') }}
    - pkg-config
  host:
    - boost-cpp
    - fftw
    - eigen
    # following are test dependencies
    - numpy *            # [build_platform == target_platform]
    - pybind11 >2.2      # [build_platform == target_platform]

test:
  commands:
    - test -f ${PREFIX}/include/ndarray.h  # [unix]
    - test -f ${PREFIX}/include/ndarray/ArrayBaseN.h  # [unix]
    - test -f ${PREFIX}/include/ndarray/detail/Core.h  # [unix]

about:
  home: https://github.com/ndarray/ndarray/
  doc_url: https://ndarray.github.io/ndarray/
  dev_url: https://github.com/ndarray/ndarray/
  license: BSD-3-Clause
  license_file: LICENSE
  summary: NumPy-friendly multidimensional arrays in C++
  description: |
    ndarray is a template library that provides multidimensional array objects in C++, with an 
    interface and features designed to mimic the Python 'numpy' package as much as possible.

extra:
  recipe-maintainers:
    - brianv0
    - TallJimbo
