package:
    name: eman2
    version: 2.3

source:
    path: {{ RECIPE_DIR }}/../..

requirements:
    {% set reqs_host = [
            "msinttypes",  # [win]
            "python 2.7.14",
            "boost 1.63.*",
            "fftw-mpi",
            "numpy 1.13.*",
            "ftgl",
            "freetype 2.8.*",  # [osx]
            "freetype 2.7.*",  # [not osx]
            "gsl 2.4.*",
            "hdf5 1.8.18",
            "jpeg 9b",
            "libtiff 4.0.9",             # [not win]
            "libtiff 4.0.9 hafacce9_0",  # [win]
            "libpng 1.6.34",
            "zlib",
    ] %}
    
    build:
        - cmake 3.9.*
        - {{ compiler('cxx') }}

    host:
        {% for req in reqs_host %}
        - {{ req }}
        {% endfor %}
    
test:
  requires:
    - openmpi              # [not win]
    - eman-deps=14.0
  
  source_files:
    - examples/mpi_test.py
    - programs/
    - tests/
    - rt/pyem/

  commands:
    - bash tests/run_tests.sh                                # [not win]
    - call tests\run_tests.bat                               # [win]
