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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/expint_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/expint/expint_{{ version }}.tar.gz
  sha256: 7cfbd77e5c8ee2f4be5d12d3dd364819a146cbb6d533a00801a763c2ee51a005

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
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]

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

about:
  home: https://gitlab.com/vigou3/expint
  license: GPL-2.0-or-later
  summary: The exponential integrals E_1(x), E_2(x), E_n(x) and Ei(x), and the incomplete gamma function G(a, x) defined for negative values of its first argument. The package also gives easy access to the underlying C routines through an API; see the package vignette for details. A test package included in sub-directory
    example_API provides an implementation. C routines derived from the GNU Scientific Library <https://www.gnu.org/software/gsl/>.
  license_family: GPL-2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Package: expint
# Type: Package
# Title: Exponential Integral and Incomplete Gamma Function
# Version: 0.1-6
# Date: 2019-12-03
# Authors@R: c(person("Vincent", "Goulet", role = c("cre", "aut"), email = "vincent.goulet@act.ulaval.ca"), person("Gerard", "Jungman", role = "aut", email = "jungman@lanl.gov", comment = "Original GSL code"), person("Brian", "Gough", role = "aut", email = "jungman@lanl.gov", comment = "Original GSL code"), 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: The exponential integrals E_1(x), E_2(x), E_n(x) and Ei(x), and the incomplete gamma function G(a, x) defined for negative values of its first argument. The package also gives easy access to the underlying C routines through an API; see the package vignette for details. A test package included in sub-directory example_API provides an implementation. C routines derived from the GNU Scientific Library <https://www.gnu.org/software/gsl/>.
# Depends: R (>= 3.3.0)
# License: GPL (>= 2)
# URL: https://gitlab.com/vigou3/expint
# BugReports: https://gitlab.com/vigou3/expint/issues
# Encoding: UTF-8
# LazyLoad: yes
# LazyData: yes
# NeedsCompilation: yes
# Packaged: 2019-12-03 21:04:58 UTC; vincent
# Author: Vincent Goulet [cre, aut], Gerard Jungman [aut] (Original GSL code), Brian Gough [aut] (Original GSL code), 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: 2019-12-04 07:50:03 UTC
