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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/chebpol_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/chebpol/chebpol_{{ version }}.tar.gz
  sha256: f17f23a4e038f7cc7a5853710e5954019316426ee9710fb018c3cb442d7ecc88

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


requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}sed               # [win]
    - {{ posix }}grep              # [win]
    - {{ posix }}autoconf
    - {{ posix }}automake          # [not win]
    - {{ posix }}automake-wrapper  # [win]
    - {{ posix }}pkg-config
    - {{ posix }}make
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]

  host:
    - r-base
    - r-geometry
    - libblas
    - liblapack
    - llvm-openmp  # [osx]

  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-geometry
    - gsl
    - _openmp_mutex  # [linux]
    
test:
  commands:
    - $R -e "library('chebpol')"           # [not win]
    - "\"%R%\" -e \"library('chebpol')\""  # [win]

about:
  home: https://github.com/sgaure/chebpol

  license: Artistic-2.0
  summary: Contains methods for creating multivariate/multidimensional interpolations of functions
    on a hypercube. If available through fftw3, the DCT-II/FFT is used to compute coefficients
    for a Chebyshev interpolation. Other interpolation methods for arbitrary Cartesian
    grids are also provided, a piecewise multilinear, and the Floater-Hormann barycenter
    method. For scattered data polyharmonic splines with a linear term is provided.
    The time-critical parts are written in C for speed. All interpolants are parallelized
    if used to evaluate more than one point.

  license_family: OTHER
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/Artistic-2.0'

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

# Package: chebpol
# Version: 2.1-2
# Date: 2019-12-09
# Title: Multivariate Interpolation
# Authors@R: person("Simen", "Gaure", email="Simen.Gaure@frisch.uio.no", role=c("aut","cre"), comment=c(ORCID="https://orcid.org/0000-0001-7251-8747"))
# Copyright: 2013-2019, Simen Gaure
# Imports: compiler, stats, geometry
# Suggests: lattice, knitr, cubature, plot3D
# SystemRequirements: fftw3 (>= 3.1.2), gsl
# Description: Contains methods for creating multivariate/multidimensional interpolations of functions on a hypercube. If available through fftw3, the DCT-II/FFT is used to compute coefficients for a Chebyshev interpolation. Other interpolation methods for arbitrary Cartesian grids are also provided, a piecewise multilinear, and the Floater-Hormann barycenter method. For scattered data polyharmonic splines with a linear term is provided. The time-critical parts are written in C for speed. All interpolants are parallelized if used to evaluate more than one point.
# License: Artistic-2.0
# Classification/MSC: 41A05, 41A10, 41A50, 41A63, 65D05, 65T40
# Classification/ACM: G.1.2
# URL: https://github.com/sgaure/chebpol
# VignetteBuilder: knitr
# BugReports: https://github.com/sgaure/chebpol/issues
# Encoding: UTF-8
# RoxygenNote: 6.1.1
# NeedsCompilation: yes
# Packaged: 2019-12-09 11:33:11 UTC; sgaure
# Author: Simen Gaure [aut, cre] (<https://orcid.org/0000-0001-7251-8747>)
# Maintainer: Simen Gaure <Simen.Gaure@frisch.uio.no>
# Repository: CRAN
# Date/Publication: 2019-12-09 12:00:03 UTC
