{% set name = "abyss" %}
{% set version = "2.3.3" %}

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

build:
  number: 0

source:
  url: https://github.com/bcgsc/abyss/releases/download/{{ version }}/abyss-{{ version }}.tar.gz
  sha256: 4b14642989e84f331d8d1a854cca67bdede95e90bd6813836c173a951d71405c

requirements:
  build:
    - {{ compiler('cxx') }}
    - make
  host:
    - boost-cpp
    - sparsehash
    - openmpi
  run:
    - openmpi
    - make
    - util-linux  # [linux]

test:
  commands:
    - ABYSS-P --version | grep -q "{{ version }}"
    - ABYSS --version | grep -q "{{ version }}"
    - abyss-pe help | grep -q "Assemble reads into contigs and scaffolds"

about:
  home: http://www.bcgsc.ca/platform/bioinfo/software/abyss
  license: GPL3
  license_file: LICENSE
  summary: Assembly By Short Sequences - a de novo, parallel, paired-end sequence assembler
  dev_url: https://github.com/bcgsc/abyss
  doc_url: https://github.com/bcgsc/abyss#readme

extra:
  container:
    # openmpi needs ssh/rsh
    extended-base: true
  identifiers:
    - biotools:abyss
    - doi:10.1101/gr.214346.116
    - doi:10.1101/gr.089532.108
