package:
  name: merlin
  version: 1.1.2

source:
  url: http://csg.sph.umich.edu/abecasis/merlin/download/merlin-1.1.2.tar.gz
  sha256: aa3c087b1c717209389705bf2ace4c24884575014a561dff250c0be93fe1e411
  patches:
    - 0001-Append-CFLAGS.patch
    - 0002-Use-same-owner-for-tar-extract.patch

build:
  number: 8

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

test:
  commands:
    # WARNING - merlin do not return exit code 0 when it displays help
    - merlin | grep MERLIN

about:
  home: http://csg.sph.umich.edu/abecasis/merlin
  license: OpenSource
  license_file: LICENSE.twister
  summary: MERLIN uses sparse trees to represent gene flow in pedigrees and is a fast pedigree analysis package

extra:
  identifiers:
    - biotools:Merlin
    - doi:10.1038/ng786
