<commit_before>{% set name = "lftp" %}
{% set version = "4.7.7" %}
{% set sha256 = "7bce216050094a1146ed05bed8fe5b3518224764ffe98884a848d44dc76fff8f" %}
{% set am_version = "1.15" %}
{% set native = 'm2w64-' if win else '' %}

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

source:
  fn: {{ name }}-{{ version }}.tar.gz
  url: http://lftp.yar.ru/ftp/{{ name }}-{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 0

requirements:
  build:
    - posix                        # [win]
    - python                       # [win]
    - m2-bison                     # [win]
    - m2-autoconf                  # [win]
    - m2-automake{{ am_version }}  # [win]
    - m2-libtool                   # [win]
    - {{native}}pkg-config
    - {{native}}toolchain
    - {{native}}libiconv
    - {{native}}gettext
    - {{native}}xz 5.2.*
    - readline 6.2*                # [not win]
    - ncurses 5.9*                 # [not win]
    - openssl
    - expat
    - zlib 1.2.*
#    - m2-libreadline               # [win]
#    - m2-gettext                   # [win]
    - m2-gettext-devel             # [win]
#    - m2-ncurses                   # [win]

  run:
    - openssl
    - expat
    - zlib 1.2.*
    - {{native}}libiconv
    - {{native}}gettext
    - readline 6.2*                # [not win]
    - ncurses 5.9*                 # [not win]
#    - m2-libreadline  # [win]
#    - m2-gettext  # [win]
#    - m2-ncurses  # [win]

test:<commit_msg>Try native openssl on windows<commit_after>{% set name = "lftp" %}
{% set version = "4.7.7" %}
{% set sha256 = "7bce216050094a1146ed05bed8fe5b3518224764ffe98884a848d44dc76fff8f" %}
{% set am_version = "1.15" %}
{% set native = 'm2w64-' if win else '' %}

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

source:
  fn: {{ name }}-{{ version }}.tar.gz
  url: http://lftp.yar.ru/ftp/{{ name }}-{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 0

requirements:
  build:
    - posix                        # [win]
    - python                       # [win]
    - m2-bison                     # [win]
    - m2-autoconf                  # [win]
    - m2-automake{{ am_version }}  # [win]
    - m2-libtool                   # [win]
    - {{native}}pkg-config
    - {{native}}toolchain
    - {{native}}libiconv
    - {{native}}gettext
    - {{native}}xz 5.2.*
    - readline 6.2*                # [not win]
    - ncurses 5.9*                 # [not win]
    - {{native}}openssl
    - expat
    - zlib 1.2.*
#    - m2-libreadline               # [win]
#    - m2-gettext                   # [win]
    - m2-gettext-devel             # [win]
#    - m2-ncurses                   # [win]

  run:
    - {{native}}openssl
    - expat
    - zlib 1.2.*
    - {{native}}libiconv
    - {{native}}gettext
    - readline 6.2*                # [not win]
    - ncurses 5.9*                 # [not win]
#    - m2-libreadline  # [win]
#    - m2-gettext  # [win]
#    - m2-ncurses  # [win]

test:
{'fraction_non_alphanumeric': 0.1709809264305177, 'fraction_numerical': 0.05790190735694823, 'mean_word_length': 1.3897477624084622, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5274603', 'n_tokens_mistral': 1220, 'n_tokens_neox': 1097, 'n_words': 207}