{% set version = '0.5-3' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/SpecsVerification_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/SpecsVerification/SpecsVerification_{{ version }}.tar.gz
  sha256: 630fd876b51cb5e22061fa64dbb447c09e88c14e81fb801001ae18e969a4e6ec

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

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

about:
  home: https://CRAN.R-project.org/package=SpecsVerification
  license: GPL-2.0-or-later
  summary: A collection of forecast verification routines developed for the SPECS FP7 project.
    The emphasis is on comparative verification of ensemble forecasts of weather and
    climate.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: SpecsVerification
# Version: 0.5-3
# Date: 2020-02-26
# Title: Forecast Verification Routines for Ensemble Forecasts of Weather and Climate
# Authors@R: c(person(given="Stefan", family="Siegert",   role = c("aut", "cre"), email="s.siegert@exeter.ac.uk"), person(given="Jonas",  family="Bhend",     role="ctb"), person(given="Igor",   family="Kroener",   role="ctb"), person(given="Matteo", family="De Felice", role="ctb") )
# Maintainer: Stefan Siegert <s.siegert@exeter.ac.uk>
# Description: A collection of forecast verification routines developed for the SPECS FP7 project. The emphasis is on comparative verification of ensemble forecasts of weather and climate.
# License: GPL (>= 2)
# Imports: Rcpp, methods
# LinkingTo: Rcpp, RcppArmadillo
# Suggests: testthat
# LazyData: true
# RoxygenNote: 7.0.2
# NeedsCompilation: yes
# Packaged: 2020-02-26 13:27:31 UTC; stefan
# Author: Stefan Siegert [aut, cre], Jonas Bhend [ctb], Igor Kroener [ctb], Matteo De Felice [ctb]
# Repository: CRAN
# Date/Publication: 2020-02-26 15:40:06 UTC
