{% set version = "1.7" %}

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

source:
  git_url: git@github.com:SebWouters/CheMPS2.git      # [linux]
  git_url: https://github.com/SebWouters/CheMPS2.git  # [osx]
  git_tag: v{{ version }}

build:
  number: 13
  binary_relocation: true
  skip: true                                           # [win]

requirements:
  build:
    - cmake >=2.8.11
    - gcc              # [osx]    # build w/conda gcc, libstdc++
    - hdf5
  run:
    - libgcc           # [osx]    # link w/conda libstdc++, libgcc_s, libgomp
    - hdf5

test:
  commands:
    # Verify libraries and executable.
    - test -f $PREFIX/lib/libchemps2.a
    - test -f $PREFIX/lib/libchemps2.so     # [linux]
    - test -f $PREFIX/lib/libchemps2.dylib  # [osx]
    - test -f $PREFIX/bin/chemps2

about:
  home: http://sebwouters.github.io/CheMPS2
  license: GNU General Public License v2 or later (GPLv2+)
  summary: "a spin-adapted implementation of DMRG for ab initio quantum chemistry"
  readme: README.md

