{% set version = "2020.07.07" %}

package:
  name: bellmans-gapc
  version: {{ version }}

source:
  url: https://github.com/jlab/gapc/archive/{{ version }}.tar.gz
  sha256: 5513545be5fe4b711991af0fe3de0401299c2d24911f538c153ae3038e434a0b

build:
  number: 0

requirements:
  build:
    - {{ compiler('cxx') }}
  host:
    - flex
    - bison
    - boost-cpp
    - gsl
    - blas
    - sed
  run:
    - boost-cpp
    - gsl
    - blas
    # gapc generates C++ code, which needs to be compiled by the user of this
    # package, thus make is required at run-time
    - make
    - sed

test:
  commands:
    # basic test if binary is executable
    - gapc -h

about:
  home: https://bibiserv.cebitec.uni-bielefeld.de/gapc
  license: 'GPLv3+'
  license_file: LICENSE
  summary: 'A language and compiler for algebraic dynamic programming.'
