<commit_before>{% set version = '0.11.1' %}
{% 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: a7b1dd4c8c8f985372ece37679dd644c30f7fa6aa16dba265120982a925cf9c1

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.62.0_1
    - r-rcpp >=0.12.12
    - r-rcpparmadillo >=0.7.900.2.0
    - r-dplyr >=0.8.1
    - r-glue
    - r-lifecycle
    - r-magrittr >=1.5
    - r-rlang >=0.3.4
    - r-tibble >=2.1.1
    - r-tidyselect >=0.2.5
    - libblas  # [unix]
    - libopenblas
    
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-bh >=1.62.0_1
    - r-rcpp >=0.12.12
    - r-rcpparmadillo >=0.7.900.2.0
    - r-dplyr >=0.8.1
    - r-glue
    - r-lifecycle
    - r-magrittr >=1.5
    - r-rlang >=0.3.4
    - r-tibble >=2.1.1
    - r-tidyselect >=0.2.5
    - libopenblas

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<commit_msg>remove libopenblas<commit_after>{% set version = '0.11.1' %}
{% 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: a7b1dd4c8c8f985372ece37679dd644c30f7fa6aa16dba265120982a925cf9c1

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.62.0_1
    - r-rcpp >=0.12.12
    - r-rcpparmadillo >=0.7.900.2.0
    - r-dplyr >=0.8.1
    - r-glue
    - r-lifecycle
    - r-magrittr >=1.5
    - r-rlang >=0.3.4
    - r-tibble >=2.1.1
    - r-tidyselect >=0.2.5
    - libblas  # [unix]
    
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-bh >=1.62.0_1
    - r-rcpp >=0.12.12
    - r-rcpparmadillo >=0.7.900.2.0
    - r-dplyr >=0.8.1
    - r-glue
    - r-lifecycle
    - r-magrittr >=1.5
    - r-rlang >=0.3.4
    - r-tibble >=2.1.1
    - r-tidyselect >=0.2.5

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
{'fraction_non_alphanumeric': 0.18132975151108127, 'fraction_numerical': 0.055070517125587644, 'mean_word_length': 1.9986577181208054, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3600009', 'n_tokens_mistral': 1937, 'n_tokens_neox': 1826, 'n_words': 340}