{% set version="201711.03" %}

package:
  name: sentieon
  version: {{ version }}
source:
  fn: sentieon-genomics-{{ version }}-linux.tar.gz  # [linux]
  url: https://s3.amazonaws.com/sentieon-release/software/sentieon-genomics-{{ version }}.tar.gz  # [linux]
  md5: d8f4fd7020d72917f5bdd15eb4e8f2a7  # [linux]
  #fn: sentieon-genomics-{{ version }}-mac.tar.gz # [osx]
  #url: https://sentieon.sharepoint.com/Release/_layouts/15/guestaccess.aspx?guestaccesstoken=xV%2bluck4cIhDqLGmeVzLT5p1%2b67SiarhwZqRUx%2fOK5w%3d&docid=0b3cf62ebe0fc4cc78615b5a1989b0108 # [osx]
  #md5: notavailable # [osx]

  patches:
    # Fix driver scripts so they resolves location including symlinks
    - sentieon_symlinks.patch
    - bwa_symlinks.patch

build:
  number: 0
  # Currently failing on OSX when copying and fixing shared libraries
  # included with sentieon package. I don't understand problem:
  # https://travis-ci.org/bioconda/bioconda-recipes/jobs/141822657
  skip: True # [not linux]
  binary_relocation: false

requirements:
  build:
  run:
    - libgfortran
    - libgcc
    - zlib {{ CONDA_ZLIB }}*
test:
  commands:
    # Tests have issues with libz on quay/mulled. Not sure why since included in requirements
    # - 'sentieon driver'
    # - 'sentieon driver --help --algo TNscope'
    # - 'sentieon-licsrvr 2>&1 | grep SENTIEON_LICENSE'
about:
  home: http://sentieon.com
  license: Commercial (requires license for use)
  summary: Accelerated performance bioinformatics tools for mapping and variant calling
