{% set version = "2.2.31" %}
{% set md5 = "f32bd2d2c66205c53c6981f94e1a0d54" %}

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

source:
  url: https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/{{ version }}/ncbi-blast-{{ version }}+-src.tar.gz
  md5: {{ md5 }}
  patches:
    - "configure.patch"
build:
  skip: True  # [osx]
  number: 6

requirements:
  build:
    - make
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
  host:
    - zlib
    - bzip2
    - pcre
    - entrez-direct
    - curl
  run:
    - zlib
    - bzip2
    - pcre
    - perl
    - perl-list-moreutils
    - perl-archive-tar
    - perl-json
    - entrez-direct
    - curl

test:
  files:
    - test.fa
    - testdatabase.fa
  commands:
    # (see run_test.sh for remainder of tests)
    - blastn -help
    - blastp -help
    - makeblastdb -help
    - blastdb_aliastool -version > /dev/null
    - blastdbcheck -version > /dev/null
    - blastdbcmd -version > /dev/null
    - blastn -version > /dev/null
    - blastp -version > /dev/null
    - blastx -version > /dev/null
    - convert2blastmask -version > /dev/null
    - dustmasker -version > /dev/null
    - makeblastdb -version > /dev/null
    - makembindex -version > /dev/null
    - psiblast -version > /dev/null
    - rpsblast -version > /dev/null
    - rpstblastn -version > /dev/null
    - segmasker -version > /dev/null
    - tblastn -version > /dev/null
    - tblastx -version > /dev/null
    - windowmasker -version > /dev/null
    - update_blastdb.pl --version > /dev/null

about:
  home: http://blast.ncbi.nlm.nih.gov/Blast.cgi?PAGE_TYPE=BlastDocs
  license: Public Domain
  summary: BLAST+ is a new suite of BLAST tools that utilizes the NCBI C++ Toolkit.
extra:
  identifiers:
    - biotools:blast
    - doi:10.1016/S0022-2836(05)80360-2
