{% set name = "ncbi-vdb" %}
{% set version = "3.1.0" %}

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

build:
  number: 1
  run_exports:
    - {{ pin_subpackage('ncbi-vdb', max_pin='x') }}

source:
  url: https://github.com/ncbi/ncbi-vdb/archive/{{ version }}.tar.gz
  sha256: eec5a64b8353a201bd4cf2c58cfcbb3622327397c3b11696ae59d827fcfcea9d
  folder: ncbi-vdb
  patches:
    - env.cmake.patch  # [osx]

requirements:
  build:
    - {{ compiler('cxx') }}
    - bison
    - cmake
    - flex
    - make

about:
  home: https://github.com/ncbi/ncbi-vdb
  license: Public Domain
  summary: SRA tools database engine
  description: |
    VDB is the database engine that all SRA tools use. It is a columnar database
    system with a number of unique features. All SRA objects are stored in VDB.
  dev_url: https://github.com/ncbi/ncbi-vdb
  doc_url: https://github.com/ncbi/ncbi-vdb/wiki

test:
  commands:
    - test -e ${PREFIX}/lib64/libncbi-vdb.so  # [not osx]
    - test -e ${PREFIX}/lib64/libncbi-vdb.dylib  # [osx]
