{% set version = "2022.07.04" %}

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

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

build:
  number: 1

requirements:
  build:
    - {{ compiler('cxx') }}
    - make
  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.'
