{% set name = "iqtree" %}
{% set version = "2.1.2" %}

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

build:
  number: 0

source:
  - url: https://github.com/iqtree/iqtree2/archive/v{{ version }}.tar.gz
    sha256: 3aaf5ac7f60d852ac8b733fb82832c049ca48b7203a6a865e99c5af359fcca5a
    patches:
      - 0001-PATCH-macos-10.9.patch
  - url: https://github.com/tothuhien/lsd2/archive/v1.9.7.tar.gz
    sha256: aee27370c77375adb1786da7d189652fd61b34129ea92641175d753846d4b270
    folder: lsd2

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - cmake
    - llvm-openmp  # [osx]
  host:
    - boost-cpp
    - eigen
    - zlib

test:
  commands:
    - iqtree
    - iqtree2

about:
  home: "http://www.iqtree.org/"
  dev_url: https://github.com/iqtree/iqtree2
  license: GPL-2.0-or-later
  summary: "Efficient phylogenomic software by maximum likelihood."

extra:
  identifiers:
    - biotools:iq-tree
    - doi:10.1093/molbev/msu300
    - usegalaxy-eu:{{ name|lower }}
