{% set name = "mummer" %}
{% set version = "3.23" %}
{% set sha256 = "1efad4f7d8cee0d8eaebb320a2d63745bb3a160bb513a15ef7af46f330af662f" %}

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

source:
  url: https://downloads.sourceforge.net/project/mummer/mummer/{{ version }}/MUMmer{{ version }}.tar.gz
  sha256: {{ sha256 }}
  patches:
    - patches/gnuplot_mouse_clipboardformat.patch
    - patches/linkloc_explicit.patch  # [osx]
    - patches/addleafcount_explicit.patch  # [osx]
    - patches/findmumcand_explicit.patch  # [osx]
    - patches/findmaxmat_explicit.patch  # [osx]
    - patches/procmaxmat_explicit.patch  # [osx]

build:
  number: 19
  run_exports:
    - {{ pin_subpackage(name, max_pin='x.x') }}

requirements:
  build:
    - make
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
  host:
    - perl
  run:
    - perl

test:
  commands:
    - "mummer -h &> /dev/null"
    #- "delta-filter -h &> /dev/null"
    #- "dnadiff -h &> /dev/null"
    #- "mapview -h &> /dev/null"
    - "mummerplot -h &> /dev/null"
    - "nucmer -h &> /dev/null"
    - "promer -h &> /dev/null"
    - "show-aligns -h &> /dev/null"
    #- "show-coords -h &> /dev/null"
    #- "show-diff -h &> /dev/null"
    #- "show-snps -h &> /dev/null"
    #- "show-tiling -h &> /dev/null"

about:
  home: 'http://mummer.sourceforge.net/'
  license: "The Artistic License"
  license_file: LICENSE
  summary: "MUMmer is a system for rapidly aligning entire genomes"

extra:
  additional-platforms:
    - linux-aarch64
    - osx-arm64
  identifiers:
    - biotools:mummer
