{% set name = "MuSE" %}
{% set version = "2.1.2" %}
{% set sha256 = "48df7ec3f64244400243163b48eb658105854b7b0d6287af98242dd89f396f59" %}

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

source:
- url: https://github.com/wwylab/MuSE/archive/refs/tags/v{{ version }}.tar.gz
  sha256: {{ sha256 }}
  patches:
    - 0001-Makefile.patch
    - fix-install_muse.sh.patch
    - version.patch
- url: https://github.com/boostorg/boost/releases/download/boost-1.87.0.beta1/boost-1.87.0.beta1-b2-nodocs.tar.gz
  sha256: f12e906fde4c9d04d88c3aa821f00501817a37503441cbca8ce7852a2194aeb0
  folder: boost-1.87.0.beta1

build:
  number: 2
  skip: True  # [osx]
  run_exports:
    - {{ pin_subpackage('muse', max_pin="x") }}

requirements:
  build:
    - {{ compiler('cxx') }}
    - make
    - autoconf
    - automake
    - libtool
  host:
    - llvm-openmp  # [osx]
    - libgomp  # [linux]
    - libcurl
    - icu
    - bzip2
    - xz
    - zlib
  run:
    - llvm-openmp  # [osx]
    - libgomp  # [linux]

test:
  commands:
    - 'MuSE 2>&1 | grep "Version"'

about:
  home: "https://bioinformatics.mdanderson.org/public-software/muse"
  license: "GPL-2.0-or-later"
  license_family: GPL
  license_file: "LICENSE"
  summary: "An accurate and ultra-fast somatic point mutation calling tool for whole-genome sequencing (WGS) and whole-exome sequencing (WES) data from heterogeneous tumor samples."
  doc_url: "https://github.com/wwylab/MuSE/blob/v{{ version }}/README.md"
  dev_url: "https://github.com/wwylab/MuSE"

extra:
  identifiers:
    - doi:10.1101/gr.278456.123
    - doi:10.1186/s13059-016-1029-6
  additional-platforms:
    - linux-aarch64
