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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/dplR_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/dplR/dplR_{{ version }}.tar.gz
  sha256: 41a9357e198a312cb6029197a0c7f60a38eabf6d78060a4c376c6cdee357a7bc

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-matrix >=1.0_3
    - r-r.utils >=1.32.1
    - r-xml >=2.1_0
    - r-digest >=0.2.3
    - r-lattice >=0.13_6
    - r-matrixstats >=0.50.2
    - r-plyr >=1.8
    - r-png >=0.1_2
    - r-signal
    - r-stringi >=0.2_3
    - r-stringr >=0.4
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-matrix >=1.0_3
    - r-r.utils >=1.32.1
    - r-xml >=2.1_0
    - r-digest >=0.2.3
    - r-lattice >=0.13_6
    - r-matrixstats >=0.50.2
    - r-plyr >=1.8
    - r-png >=0.1_2
    - r-signal
    - r-stringi >=0.2_3
    - r-stringr >=0.4

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

about:
  home: https://github.com/AndyBunn/dplR
  license: GPL-2.0-or-later
  summary: Perform tree-ring analyses such as detrending, chronology building, and cross dating.  Read and write standard file formats used in dendrochronology.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Encoding: UTF-8
# Package: dplR
# Type: Package
# Title: Dendrochronology Program Library in R
# Version: 1.7.0
# Date: 2019-07-15
# Authors@R: c(person("Andy", "Bunn", role = c("aut", "cph", "cre", "trl"), email = "andy.bunn@wwu.edu"), person("Mikko", "Korpela", role = c("aut", "cph", "trl")), person("Franco", "Biondi", role = c("aut", "cph")), person("Filipe", "Campelo", role = c("aut", "cph")), person("Pierre", "Merian", role = c("aut", "cph")), person("Fares", "Qeadan", role = c("aut", "cph")), person("Christian", "Zang", role = c("aut", "cph")), person("Allan", "Buras", role = "ctb"), person("Jacob", "Cecile", role = "ctb"), person("Manfred", "Mudelsee", role = "ctb"), person("Michael", "Schulz", role = "ctb"))
# Author: Andy Bunn [aut, cph, cre, trl], Mikko Korpela [aut, cph, trl], Franco Biondi [aut, cph], Filipe Campelo [aut, cph], Pierre Merian [aut, cph], Fares Qeadan [aut, cph], Christian Zang [aut, cph], Allan Buras [ctb], Jacob Cecile [ctb], Manfred Mudelsee [ctb], Michael Schulz [ctb]
# Copyright: Authors and file inst/COPYRIGHTS
# Maintainer: Andy Bunn <andy.bunn@wwu.edu>
# Depends: R (>= 2.15.2)
# Imports: graphics, grDevices, grid, stats, utils, lattice (>= 0.13-6), Matrix (>= 1.0-3), digest (>= 0.2.3), matrixStats (>= 0.50.2), png (>= 0.1-2), R.utils (>= 1.32.1), stringi (>= 0.2-3), stringr (>= 0.4), XML (>= 2.1-0), plyr (>= 1.8), signal
# Suggests: Biobase, Cairo (>= 1.5-0), dichromat (>= 1.2-3), foreach, forecast (>= 3.6), gmp (>= 0.5-5), iterators, knitr, RColorBrewer, testthat (>= 0.8), tikzDevice, waveslim
# Description: Perform tree-ring analyses such as detrending, chronology building, and cross dating.  Read and write standard file formats used in dendrochronology.
# LazyData: no
# License: GPL (>= 2)
# URL: https://github.com/AndyBunn/dplR
# NeedsCompilation: yes
# Packaged: 2019-07-16 02:40:12 UTC; bunna
# Repository: CRAN
# Date/Publication: 2019-07-18 11:20:08 UTC
