{% set version = "0.2.5b9" %}
{% set revision = "b706fba" %}

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

build:
  number: 0
  skip: True # [osx]
  string: "htslib{{CONDA_HTSLIB}}_{{PKG_BUILDNUM}}"

source:
  fn: pindel-{{ revision }}.tar.gz
  url: https://github.com/genome/pindel/archive/{{ revision }}.tar.gz
  sha256: d626260986270efce5a947d03785781c8fddfc922f41279cf9d4bd504c4e3690
  patches:
    # HTSLIB 1.6 compatibility: https://github.com/genome/pindel/pull/75
    - htslib16.diff

requirements:
  build:
    - htslib {{CONDA_HTSLIB}}*
    - gcc
  run:
    - htslib {{CONDA_HTSLIB}}*
    - libgcc

test:
  commands:
    - 'pindel -h 2>&1 | grep "Pindel version"'
    - 'pindel2vcf  --help | grep Example:'

about:
  home: http://gmt.genome.wustl.edu/packages/pindel/index.html
  license: GPLv3
  summary: Pindel can detect breakpoints of large deletions, medium sized insertions, inversions, tandem duplications and other structural variants at single-based resolution from next-gen sequence data
