{% set version = '0.4.2' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/viridisLite_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/viridisLite/viridisLite_{{ version }}.tar.gz
  sha256: 893f111d31deccd2cc959bc9db7ba2ce9020a2dd1b9c1c009587e449c4cce1a1

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: hexbin (>= 1.27.0), ggplot2 (>= 1.0.1), testthat, covr
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('viridisLite')"           # [not win]
    - "\"%R%\" -e \"library('viridisLite')\""  # [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://sjmgarnier.github.io/viridisLite/, https://github.com/sjmgarnier/viridisLite/
  license: MIT
  summary: Color maps designed to improve graph readability for readers with common forms of
    color blindness and/or color vision deficiency. The color maps are also perceptually-uniform,
    both in regular form and also when converted to black-and-white for printing. This
    is the 'lite' version of the 'viridis' package that also contains 'ggplot2' bindings
    for discrete and continuous color and fill scales and can be found at <https://cran.r-project.org/package=viridis>.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - croth1
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: viridisLite
# Type: Package
# Title: Colorblind-Friendly Color Maps (Lite Version)
# Version: 0.4.2
# Date: 2023-05-02
# Authors@R: c( person("Simon", "Garnier", email = "garnier@njit.edu", role = c("aut", "cre")), person("Noam", "Ross", email = "noam.ross@gmail.com", role = c("ctb", "cph")), person("Bob", "Rudis", email = "bob@rud.is", role = c("ctb", "cph")), person("Marco", "Sciaini", email = "sciaini.marco@gmail.com", role = c("ctb", "cph")), person("Antonio Pedro", "Camargo", role = c("ctb", "cph")), person("Cedric", "Scherer", email = "scherer@izw-berlin.de", role = c("ctb", "cph")) )
# Maintainer: Simon Garnier <garnier@njit.edu>
# Description: Color maps designed to improve graph readability for readers with common forms of color blindness and/or color vision deficiency. The color maps are also perceptually-uniform, both in regular form and also when converted to black-and-white for printing. This is the 'lite' version of the 'viridis' package that also contains 'ggplot2' bindings for discrete and continuous color and fill scales and can be found at <https://cran.r-project.org/package=viridis>.
# License: MIT + file LICENSE
# Encoding: UTF-8
# Depends: R (>= 2.10)
# Suggests: hexbin (>= 1.27.0), ggplot2 (>= 1.0.1), testthat, covr
# URL: https://sjmgarnier.github.io/viridisLite/, https://github.com/sjmgarnier/viridisLite/
# BugReports: https://github.com/sjmgarnier/viridisLite/issues/
# RoxygenNote: 7.2.3
# NeedsCompilation: no
# Packaged: 2023-05-02 21:38:46 UTC; simon
# Author: Simon Garnier [aut, cre], Noam Ross [ctb, cph], Bob Rudis [ctb, cph], Marco Sciaini [ctb, cph], Antonio Pedro Camargo [ctb, cph], Cedric Scherer [ctb, cph]
# Repository: CRAN
# Date/Publication: 2023-05-02 23:50:02 UTC

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