package:
  name: hmmer2
  version: "2.3.2"

source:
  fn: hmmer-2.3.2.tar.gz
  url: http://eddylab.org/software/hmmer/2.3.2/hmmer-2.3.2.tar.gz
  sha256: d20e1779fcdff34ab4e986ea74a6c4ac5c5f01da2993b14e92c94d2f076828b4
  patches:
    - Makefile.in.patch

build:
  number: 2

requirements:
  build:
    - gcc  # [not osx]
    - llvm # [osx]
  run:
    - libgcc  # [not osx]

test:
  commands:
    - hmmsearch2 -h 2>&1 | grep "HMMER 2\." > /dev/null
    - hmmalign2 -h 2>&1 | grep "HMMER 2\." > /dev/null
    - hmmbuild2 -h 2>&1 | grep "HMMER 2\." > /dev/null
    - hmmcalibrate2 -h 2>&1 | grep "HMMER 2\." > /dev/null
    - hmmconvert2 -h 2>&1 | grep "HMMER 2\." > /dev/null
    - hmmemit2 -h 2>&1 | grep "HMMER 2\." > /dev/null
    - hmmfetch2 -h 2>&1 | grep "HMMER 2\." > /dev/null
    - hmmindex2 -h 2>&1 | grep "HMMER 2\." > /dev/null
    - hmmpfam2 -h 2>&1 | grep "HMMER 2\." > /dev/null
    - hmmsearch2 -h 2>&1 | grep "HMMER 2\." > /dev/null


about:
  summary: 'Biosequence analysis using profile hidden Markov models'
  home: http://hmmer.org/
  license: GPLv2
  license_file: LICENSE
  notes: |
    This package appends "2" to the all HMMER tool binary names,
    allowing use in parallel with HMMER version 3 onwards.
