<commit_before>{% set commit = "40d63fc7db5d1f6dd67364f24e4579aedb57e7b6" %}

{% set tag = environ.get("GIT_DESCRIBE_TAG", "") %}
{% set number = environ.get("GIT_DESCRIBE_NUMBER", "0") %}
{% set hash = environ.get("GIT_DESCRIBE_HASH", "0") %}
{% set tag_ext = ("+" + number + "." + hash) if number != "0" else "" %}
{% set version = tag + tag_ext %}


package:
    name: flann
    version: {{ version }}

source:
    git_url: https://github.com/mariusmuja/flann.git
    git_rev: {{ commit }}

build:
    number: 0
    skip: True    # [win]

requirements:
    build:
        - gcc     # [osx]
        - hdf5
        - cmake
    run:
        - libgcc  # [osx]
        - hdf5

test:
    commands:
        # Verify libraries.
        {% set flann_libs = ["flann", "flann_cpp"] %}
        {% for each_flann_lib in flann_libs %}
        - test -f $PREFIX/lib/lib{{ each_flann_lib }}.a                           # [unix]
        - test -f $PREFIX/lib/lib{{ each_flann_lib }}.dylib                       # [osx]
        - test -f $PREFIX/lib/lib{{ each_flann_lib }}.so                          # [linux]
#        - if not exist %PREFIX%\\Library\\lib\\{{ each_flann_lib }}.lib exit 1    # [win]
#        - if not exist %PREFIX%\\Library\\bin\\{{ each_flann_lib }}.dll exit 1    # [win]
        {% endfor %}

about:
    home: http://www.cs.ubc.ca/research/flann/
    license: BSD 3-Clause
    license_file: COPYING
    summary: "The Fast Library for Approximate Nearest Neighbors"

extra:
  recipe-maintainers:
    - jakevdp
    - jakirkham
<commit_msg>flann: Simplify the test step. [skip appveyor]<commit_after>{% set commit = "<PASSWORD>" %}

{% set tag = environ.get("GIT_DESCRIBE_TAG", "") %}
{% set number = environ.get("GIT_DESCRIBE_NUMBER", "0") %}
{% set hash = environ.get("GIT_DESCRIBE_HASH", "0") %}
{% set tag_ext = ("+" + number + "." + hash) if number != "0" else "" %}
{% set version = tag + tag_ext %}


package:
    name: flann
    version: {{ version }}

source:
    git_url: https://github.com/mariusmuja/flann.git
    git_rev: {{ commit }}

build:
    number: 0
    skip: True    # [win]

requirements:
    build:
        - gcc     # [osx]
        - hdf5
        - cmake
    run:
        - libgcc  # [osx]
        - hdf5

test:
    commands:
        # Verify libraries.
        - test -f $PREFIX/lib/libflann_s.a                                        # [unix]
        - test -f $PREFIX/lib/libflann.dylib                                      # [osx]
        - test -f $PREFIX/lib/libflann.so                                         # [linux]
        - test -f $PREFIX/lib/libflann_cpp_s.a                                    # [unix]
        - test -f $PREFIX/lib/libflann_cpp.dylib                                  # [osx]
        - test -f $PREFIX/lib/libflann_cpp.so                                     # [linux]

about:
    home: http://www.cs.ubc.ca/research/flann/
    license: BSD 3-Clause
    license_file: COPYING
    summary: "The Fast Library for Approximate Nearest Neighbors"

extra:
  recipe-maintainers:
    - jakevdp
    - jakirkham

{'fraction_non_alphanumeric': 0.14467668190725017, 'fraction_numerical': 0.012736773350751143, 'mean_word_length': 1.7250889679715302, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1169689', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1067, 'n_words': 229}