{% set version = '1.2.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/scales_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/scales/scales_{{ version }}.tar.gz
  sha256: 59453e6dbdafee93dfb101e4d86048a62a12898134259d3ef02d65aeec57ed08

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip
  noarch: generic

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: bit64, covr, dichromat, ggplot2, hms (>= 0.5.0), stringi, testthat (>= 3.0.0), waldo (>= 0.4.0)
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-r6
    - r-rcolorbrewer
    - r-farver >=2.0.3
    - r-labeling
    - r-lifecycle
    - r-munsell >=0.5
    - r-rlang >=1.0.0
    - r-viridislite

  run:
    - r-base
    - r-r6
    - r-rcolorbrewer
    - r-farver >=2.0.3
    - r-labeling
    - r-lifecycle
    - r-munsell >=0.5
    - r-rlang >=1.0.0
    - r-viridislite

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('scales')"           # [not win]
    - "\"%R%\" -e \"library('scales')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://scales.r-lib.org, https://github.com/r-lib/scales
  license: MIT
  summary: Graphical scales map data to aesthetics, and provide methods for automatically determining
    breaks and labels for axes and legends.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: scales
# Title: Scale Functions for Visualization
# Version: 1.2.1
# Authors@R: c( person("Hadley", "Wickham", , "hadley@rstudio.com", role = c("aut", "cre")), person("Dana", "Seidel", role = "aut"), person("RStudio", role = c("cph", "fnd")) )
# Description: Graphical scales map data to aesthetics, and provide methods for automatically determining breaks and labels for axes and legends.
# License: MIT + file LICENSE
# URL: https://scales.r-lib.org, https://github.com/r-lib/scales
# BugReports: https://github.com/r-lib/scales/issues
# Depends: R (>= 3.2)
# Imports: farver (>= 2.0.3), labeling, lifecycle, munsell (>= 0.5), R6, RColorBrewer, rlang (>= 1.0.0), viridisLite
# Suggests: bit64, covr, dichromat, ggplot2, hms (>= 0.5.0), stringi, testthat (>= 3.0.0), waldo (>= 0.4.0)
# Config/Needs/website: tidyverse/tidytemplate
# Encoding: UTF-8
# LazyLoad: yes
# RoxygenNote: 7.2.1
# Config/testthat/edition: 3
# NeedsCompilation: no
# Packaged: 2022-08-19 15:35:49 UTC; hadleywickham
# Author: Hadley Wickham [aut, cre], Dana Seidel [aut], RStudio [cph, fnd]
# Maintainer: Hadley Wickham <hadley@rstudio.com>
# Repository: CRAN
# Date/Publication: 2022-08-20 00:10:11 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
