{% set name = "GMAP" %}
{% set version = "2021.08.25" %}

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

source:
  url: http://research-pub.gene.com/gmap/src/gmap-gsnap-{{ version | replace(".", "-") }}.tar.gz
  sha256: ef58843eb9cfbe174fad8444bf1b52b3f8841731412a3f90544a0e2bb85799b5
  patches:
    - single_quote_paths.patch

build:
  number: 2

requirements:
  build:
    - make
    - {{ compiler('c') }}
  host:
    - perl
    # zlib is needed for gunzip
    - zlib
    - bzip2
  run:
    - perl
    # zlib is needed for gunzip
    - zlib
    - bzip2

test:
  commands:
    - gmap --help
    - gsnap --help
    - ": | fa_coords | grep 'Error: No contigs were read in.'"

about:
  home: http://research-pub.gene.com/gmap/
  license: Apache-2.0
  license_family: APACHE
  license_file: LICENSE
  summary: "Genomic mapping and alignment program for mRNA and EST sequences."

extra:
  identifiers:
    - biotools:gmap
    - doi:10.1093/bioinformatics/bti310
    - doi:10.1093/bioinformatics/btq057
