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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/mrgsolve_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/mrgsolve/mrgsolve_{{ version }}.tar.gz
  sha256: 2e7e18ac718cc076e830b16f26ad8958b9efdaa1ab9fd5de5b413da35a8458a2

build:
  merge_build_host: true  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]
  host:
    - r-base
    - r-bh >=1.75.0_0
    - r-rcpp >=1.0.7
    - r-rcpparmadillo >=0.10.7.3.0
    - r-dplyr >=1.0.8
    - r-glue
    - r-lifecycle
    - r-magrittr >=2.0.1
    - r-rlang >=1.0.1
    - r-tibble >=3.1.6
    - r-tidyselect >=1.1.1
    - libblas  # [unix]
    - liblapack  # [unix]
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    #- r-bh >=1.75.0_0
    - r-rcpp >=1.0.7
    - r-rcpparmadillo >=0.10.7.3.0
    - r-dplyr >=1.0.8
    - r-glue
    - r-lifecycle
    - r-magrittr >=2.0.1
    - r-rlang >=1.0.1
    - r-tibble >=3.1.6
    - r-tidyselect >=1.1.1

test:
  commands:
    - $R -e "library('mrgsolve')"           # [not win]
    - "\"%R%\" -e \"library('mrgsolve')\""  # [win]

about:
  home: https://github.com/metrumresearchgroup/mrgsolve
  license: GPL-2.0-or-later
  summary: Fast simulation from ordinary differential equation (ODE) based models typically employed in quantitative pharmacology and systems biology.
  license_family: GPL2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

extra:
  recipe-maintainers:
    - conda-forge/r
    - apeltzer

# Type: Package
# Package: mrgsolve
# Title: Simulate from ODE-Based Models
# Version: 0.11.1
# Authors@R: c(person(given = "Kyle T", family = "Baron", role = c("aut", "cre"), email = "kyleb@metrumrg.com", comment = c(ORCID = "0000-0001-7252-5656")), person(given = "Bill", family = "Gillespie", role = "ctb"), person(given = "Charles", family = "Margossian", role = "ctb"), person(given = "Devin", family = "Pastoor", role = "ctb"), person(given = "Bill", family = "Denney", role = "ctb", comment = c(ORCID = "0000-0002-5759-428X")), person(given = "Dilawar", family = "Singh", role = "ctb"), person(given = "Felicien", family = "Le Louedec", comment = c(ORCID = "0000-0003-3699-2729"), role = "ctb"), person(given = "Timothy", family = "Waterhouse", comment = c(ORCID = "0000-0002-0954-9660"), role = "ctb"), person(given = "Metrum Research Group", role = "cph"))
# Maintainer: Kyle T Baron <kyleb@metrumrg.com>
# Description: Fast simulation from ordinary differential equation (ODE) based models typically employed in quantitative pharmacology and systems biology.
# License: GPL (>= 2)
# URL: https://github.com/metrumresearchgroup/mrgsolve
# BugReports: https://github.com/metrumresearchgroup/mrgsolve/issues
# Depends: R (>= 3.1.2), methods
# Imports: Rcpp (>= 0.12.12), dplyr (>= 0.8.1), magrittr (>= 1.5), tibble (>= 2.1.1), rlang (>= 0.3.4), tidyselect (>= 0.2.5), lifecycle, glue
# Suggests: lattice, testthat, xml2 (>= 1.2.0), rmarkdown, yaml, knitr, data.table, pmxTools
# LinkingTo: Rcpp (>= 0.12.12), RcppArmadillo (>= 0.7.900.2.0), BH (>= 1.62.0-1)
# RdMacros: lifecycle
# Encoding: UTF-8
# Language: en-US
# LazyLoad: yes
# NeedsCompilation: yes
# RoxygenNote: 7.1.1
# SystemRequirements: C++11
# Collate: 'RcppExports.R' 'utils.R' 'package.R' 'generics.R' 'class_tgrid.R' 'class_numericlist.R' 'class_matlist.R' 'class_ev.R' 'class_derived.R' 'class_mrgmod.R' 'class_mrgsims.R' 'Aaaa.R' 'annot.R' 'chain.R' 'class_build.R' 'events.R' 'class_rx.R' 'compile.R' 'data_set.R' 'datasets.R' 'env.R' 'funset.R' 'handle_spec_block.R' 'idata_set.R' 'init.R' 'inven.R' 'knobs.R' 'matlist.R' 'matrix.R' 'mcode.R' 'model_include.R' 'modlib.R' 'modspec.R' 'mread.R' 'mrgindata.R' 'mrgsim_q.R' 'mrgsims.R' 'mrgsolve.R' 'nmxml.R' 'param.R' 'print.R' 'r_to_cpp.R' 'realize_addl.R' 'relabel.R' 'render.R' 'update.R' 'workflows.R'
# Packaged: 2021-05-10 19:23:09 UTC; kyleb
# Author: Kyle T Baron [aut, cre] (<https://orcid.org/0000-0001-7252-5656>), Bill Gillespie [ctb], Charles Margossian [ctb], Devin Pastoor [ctb], Bill Denney [ctb] (<https://orcid.org/0000-0002-5759-428X>), Dilawar Singh [ctb], Felicien Le Louedec [ctb] (<https://orcid.org/0000-0003-3699-2729>), Timothy Waterhouse [ctb] (<https://orcid.org/0000-0002-0954-9660>), Metrum Research Group [cph]
# Repository: CRAN
# Date/Publication: 2021-05-10 19:50:02 UTC
