{% set version = '0.22-5' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/lattice_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/lattice/lattice_{{ version }}.tar.gz
  sha256: ba1fbe5e18a133507dca9851b7f933002bdb6d1f3ea5f410a0a441103b6da5f1

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

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

# Suggests: KernSmooth, MASS, latticeExtra, colorspace
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

  run:
    - r-base
    - {{native}}gcc-libs         # [win]

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('lattice')"           # [not win]
    - "\"%R%\" -e \"library('lattice')\""  # [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://lattice.r-forge.r-project.org/
  license: GPL-2
  summary: A powerful and elegant high-level data visualization system inspired by Trellis graphics,
    with an emphasis on multivariate data. Lattice is sufficient for typical graphics
    needs, and is also flexible enough to handle most nonstandard requirements. See
    ?Lattice for an introduction.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

extra:
  recipe-maintainers:
    - ocefpaf
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: lattice
# Version: 0.22-5
# Date: 2023-10-23
# Priority: recommended
# Title: Trellis Graphics for R
# Authors@R: c(person("Deepayan", "Sarkar", role = c("aut", "cre"), email = "deepayan.sarkar@r-project.org", comment = c(ORCID = "0000-0003-4107-1553")), person("Felix", "Andrews", role = "ctb"), person("Kevin", "Wright", role = "ctb", comment = "documentation"), person("Neil", "Klepeis", role = "ctb"), person("Johan", "Larsson", role = "ctb", comment = "miscellaneous improvements"), person("Zhijian (Jason)", "Wen", role = "cph", comment = "filled contour code"), person("Paul", "Murrell", role = "ctb", email = "paul@stat.auckland.ac.nz"), person("Stefan", "Eng", role = "ctb", comment = "violin plot improvements"), person("Achim", "Zeileis", role = "ctb", comment = "modern colors"), person("Alexandre", "Courtiol", role = "ctb", comment = "generics for larrows, lpolygon, lrect and lsegments") )
# Description: A powerful and elegant high-level data visualization system inspired by Trellis graphics, with an emphasis on multivariate data. Lattice is sufficient for typical graphics needs, and is also flexible enough to handle most nonstandard requirements. See ?Lattice for an introduction.
# Depends: R (>= 4.0.0)
# Suggests: KernSmooth, MASS, latticeExtra, colorspace
# Imports: grid, grDevices, graphics, stats, utils
# Enhances: chron, zoo
# LazyLoad: yes
# LazyData: yes
# License: GPL (>= 2)
# URL: https://lattice.r-forge.r-project.org/
# BugReports: https://github.com/deepayan/lattice/issues
# NeedsCompilation: yes
# Packaged: 2023-10-23 20:44:42 UTC; deepayan
# Author: Deepayan Sarkar [aut, cre] (<https://orcid.org/0000-0003-4107-1553>), Felix Andrews [ctb], Kevin Wright [ctb] (documentation), Neil Klepeis [ctb], Johan Larsson [ctb] (miscellaneous improvements), Zhijian (Jason) Wen [cph] (filled contour code), Paul Murrell [ctb], Stefan Eng [ctb] (violin plot improvements), Achim Zeileis [ctb] (modern colors), Alexandre Courtiol [ctb] (generics for larrows, lpolygon, lrect and lsegments)
# Maintainer: Deepayan Sarkar <deepayan.sarkar@r-project.org>
# Repository: CRAN
# Date/Publication: 2023-10-24 07:00:02 UTC

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