{% set name = "pftools" %}
{% set version = "3.2.12" %}
{% set sha256 = "1de33d6444015942afa690d54a103ad5a3d68f416fad63f247c12fa3f71a550c" %}

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

source:
  url: https://github.com/sib-swiss/pftools3/archive/refs/tags/v{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 5
  skip: True  # [osx]

requirements:
  build:
    - make
    - {{ compiler('fortran') }}
    - {{ compiler('cxx') }}
    - cmake
  host:
    - r-base
    - perl
    - zlib
    - pcre2
    - perl-file-slurp
  run:
    - r-base
    - perl
    - zlib
    - pcre2
    - perl-file-slurp

test:
  commands:
    - gtop -h 2>&1 | grep -i usage
    - pfmake -h 2>&1 | grep -i usage
    - pfscan -h 2>&1 | grep -i usage
    - pfscanV3 -h
    - pfsearchV3 -h
    - pfw -h 2>&1 | grep -i usage
    - ptoh -h 2>&1 | grep -i usage
    - htop -h 2>&1 | grep -i usage
    - pfscale -h 2>&1 | grep -i usage
    - pfsearch -h 2>&1 | grep -i usage
    - ps_scan.pl -h 2>&1 | grep -i version
    - sort_fasta.pl -h
    - scramble_fasta.pl -h 2>&1 | grep -i usage
    - make_iupac_cmp.pl -h
    - fasta_to_fastq.pl -h
    - psa2msa -h 2>&1 | grep -i usage
    - 2ft -h 2>&1 | grep -i usage
    - 6ft -h 2>&1 | grep -i usage
    - ptof -h 2>&1 | grep -i usage
    # compare_2_profiles.pl and split_profile_file.pl cannot be tested

about:
  home: https://web.expasy.org/pftools/
  license: GPLv2
  license_family: GPL
  license_file: LICENSE
  summary: 'A generalized profile syntax for biomolecular sequence motifs and its function in automatic sequence interpretation.'
  dev_url: https://github.com/sib-swiss/pftools3

extra:
  container:
    extended-base: True
