{% set version = '1.1.6' %}

{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-detestset
  version: {{ version|replace("-", "_") }}

source:
  url:
    - {{ cran_mirror }}/src/contrib/deTestSet_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/deTestSet/deTestSet_{{ version }}.tar.gz
  sha256: 6c406b082634e902f8daee757972698b631851c9c3de542a8e7a2ae60ab80458

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('fortran') }}        # [not win]
    - {{ compiler('m2w64_fortran') }}  # [win]
    - {{posix}}filesystem        # [win]
    - {{posix}}make
    - {{posix}}sed               # [win]
    - {{posix}}coreutils         # [win]
    - {{posix}}zip               # [win]

  host:
    - r-base
    - r-desolve

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-desolve

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('deTestSet')"           # [not win]
    - "\"%R%\" -e \"library('deTestSet')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://CRAN.R-project.org/package=deTestSet
  license: GPL-3
  summary: 'Solvers and test set for stiff and non-stiff differential equations, and  differential
    algebraic equations.  ''Mazzia, F., Cash, J.R. and K. Soetaert, 2012. DOI: 10.1016/j.cam.2012.03.014''.'

  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: deTestSet
# Version: 1.1.6
# Title: Test Set for Differential Equations
# Authors@R: c(person("Karline","Soetaert", role = c("aut","cre"),  email = "karline.soetaert@nioz.nl"), person("Jeff","Cash", role = "aut",  email = "j.cash@imperial.ac.uk"), person("Francesca","Mazzia", role = "aut",  email = "mazzia@dm.uniba.it"), person("LAPACK authors", role = "cph"))
# Author: Karline Soetaert [aut, cre], Jeff Cash [aut], Francesca Mazzia [aut], LAPACK authors [cph]
# Maintainer: Karline Soetaert <karline.soetaert@nioz.nl>
# Depends: R (>= 2.01), deSolve
# Imports: graphics, grDevices, stats
# Description: Solvers and test set for stiff and non-stiff differential equations, and  differential algebraic equations.  'Mazzia, F., Cash, J.R. and K. Soetaert, 2012. DOI: 10.1016/j.cam.2012.03.014'.
# License: GPL
# Copyright: inst/COPYRIGHTS
# LazyData: yes
# Repository: CRAN
# Repository/R-Forge/Project: bvpsolve
# Repository/R-Forge/Revision: 289
# Repository/R-Forge/DateTimeStamp: 2019-07-24 13:51:12
# Date/Publication: 2019-08-21 10:51:21 UTC
# NeedsCompilation: yes
# Packaged: 2019-07-24 14:10:54 UTC; rforge

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
