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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/actuar_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/actuar/actuar_{{ version }}.tar.gz
  sha256: ff525a881fa65b39c86fbd2e2ff30a5843990a0e706370e43cfe37fa990e7736

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

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-expint
    - libblas
    - liblapack
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-expint

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

about:
  home: https://gitlab.com/vigou3/actuar
  license: GPL-2.0-or-later
  summary: 'Functions and data sets for actuarial science: modeling of loss distributions; risk
    theory and ruin theory; simulation of compound models, discrete mixtures and compound
    hierarchical models; credibility theory. Support for many additional probability
    distributions to model insurance loss size and frequency: 23 continuous heavy tailed
    distributions; the Poisson-inverse Gaussian discrete distribution; zero-truncated
    and zero-modified extensions of the standard discrete distributions. Support for
    phase-type distributions commonly used to compute ruin probabilities.'
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: actuar
# Type: Package
# Title: Actuarial Functions and Heavy Tailed Distributions
# Version: 3.0-0
# Date: 2020-06-04
# Authors@R: c(person("Vincent", "Goulet", role = c("cre", "aut"), email = "vincent.goulet@act.ulaval.ca"), person("Sebastien", "Auclair", role = "ctb"), person("Christophe", "Dutang", role = "aut", email = "dutang@ceremade.dauphine.fr"), person("Nicholas", "Langevin", role = "ctb"), person("Xavier", "Milhaud", role = "ctb"), person("Tommy", "Ouellet", role = "ctb"), person("Alexandre", "Parent", role = "ctb"), person("Mathieu", "Pigeon", role = "aut", email = "pigeon.mathieu.2@uqam.ca"), person("Louis-Philippe", "Pouliot", role = "ctb"), person("Jeffrey A.", "Ryan", role = "aut", email = "jeff.a.ryan@gmail.com", comment = "Package API"), person("Robert", "Gentleman", role = "aut", comment = "Parts of the R to C interface"), person("Ross", "Ihaka", role = "aut", comment = "Parts of the R to C interface"), person(family = "R Core Team", role = "aut", comment = "Parts of the R to C interface"), person(family = "R Foundation", role = "aut", comment = "Parts of the R to C interface"))
# Description: Functions and data sets for actuarial science: modeling of loss distributions; risk theory and ruin theory; simulation of compound models, discrete mixtures and compound hierarchical models; credibility theory. Support for many additional probability distributions to model insurance loss size and frequency: 23 continuous heavy tailed distributions; the Poisson-inverse Gaussian discrete distribution; zero-truncated and zero-modified extensions of the standard discrete distributions. Support for phase-type distributions commonly used to compute ruin probabilities.
# Depends: R (>= 3.3.0)
# Imports: stats, graphics, expint
# LinkingTo: expint
# Suggests: MASS
# License: GPL (>= 2)
# URL: https://gitlab.com/vigou3/actuar
# BugReports: https://gitlab.com/vigou3/actuar/issues
# Encoding: UTF-8
# LazyData: yes
# Classification/MSC-2010: 62P05, 91B30, 62G32
# NeedsCompilation: yes
# Packaged: 2020-06-05 03:29:47 UTC; vincent
# Author: Vincent Goulet [cre, aut], Sebastien Auclair [ctb], Christophe Dutang [aut], Nicholas Langevin [ctb], Xavier Milhaud [ctb], Tommy Ouellet [ctb], Alexandre Parent [ctb], Mathieu Pigeon [aut], Louis-Philippe Pouliot [ctb], Jeffrey A. Ryan [aut] (Package API), Robert Gentleman [aut] (Parts of the R to C interface), Ross Ihaka [aut] (Parts of the R to C interface), R Core Team [aut] (Parts of the R to C interface), R Foundation [aut] (Parts of the R to C interface)
# Maintainer: Vincent Goulet <vincent.goulet@act.ulaval.ca>
# Repository: CRAN
# Date/Publication: 2020-06-05 05:20:06 UTC
