{% set version = '1.1-11' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-climdex.pcic
  version: {{ version|replace("-", "_") }}

source:
  url:
    - {{ cran_mirror }}/src/contrib/climdex.pcic_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/climdex.pcic/climdex.pcic_{{ version }}.tar.gz
  sha256: 5d1ac65665703e9033221bcdfa0c41a912fa920388fd1e8380e30da2d5045d05

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-pcict >=0.5_4
    - r-rcpp >=0.11.4
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-pcict >=0.5_4
    - r-rcpp >=0.11.4

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

about:
  home: https://www.r-project.org
  license: GPL-3.0-only
  summary: PCIC's implementation of Climdex routines for computation of extreme climate indices.
    Further details on the extreme climate indices can be found at <http://etccdi.pacificclimate.org/list_27_indices.shtml>
    and in the package manual.
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# Package: climdex.pcic
# Version: 1.1-11
# Date: 2020-01-21
# Title: PCIC Implementation of Climdex Routines
# Author: David Bronaugh <bronaugh@uvic.ca> for the Pacific Climate Impacts Consortium
# Maintainer: James Hiebert <hiebert@uvic.ca>
# Depends: R (>= 2.12.0), PCICt (>= 0.5-4)
# Imports: methods, Rcpp (>= 0.11.4)
# Suggests: compiler, RUnit
# LinkingTo: Rcpp
# Description: PCIC's implementation of Climdex routines for computation of extreme climate indices. Further details on the extreme climate indices can be found at <http://etccdi.pacificclimate.org/list_27_indices.shtml> and in the package manual.
# License: GPL-3
# URL: https://www.r-project.org
# LazyData: yes
# BugReports: https://github.com/pacificclimate/climdex.pcic/issues/
# RoxygenNote: 6.0.1
# NeedsCompilation: yes
# Packaged: 2020-01-21 18:53:11 UTC; james
# Repository: CRAN
# Date/Publication: 2020-01-22 12:30:05 UTC
#
