{% set version = '0.3.4' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/gtable_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/gtable/gtable_{{ version }}.tar.gz
  sha256: 7032039371a4ec1bde9d3e4b7dae450dcc9aab50bb0e6287ab26a1b0199c7977

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: covr, ggplot2, knitr, profvis, rmarkdown, testthat (>= 3.0.0)
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-cli
    - r-glue
    - r-lifecycle
    - r-rlang >=1.1.0

  run:
    - r-base
    - r-cli
    - r-glue
    - r-lifecycle
    - r-rlang >=1.1.0

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('gtable')"           # [not win]
    - "\"%R%\" -e \"library('gtable')\""  # [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://gtable.r-lib.org, https://github.com/r-lib/gtable
  license: MIT
  summary: Tools to make it easier to work with "tables" of 'grobs'. The 'gtable' package defines
    a 'gtable' grob class that specifies a grid along with a list of grobs and their
    placement in the grid. Further the package makes it easy to manipulate and combine
    'gtable' objects so that complex compositions can be built up sequentially.
  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: gtable
# Title: Arrange 'Grobs' in Tables
# Version: 0.3.4
# Authors@R: c(person(given = "Hadley", family = "Wickham", role = "aut", email = "hadley@posit.co"), person(given = "Thomas Lin", family = "Pedersen", role = c("aut", "cre"), email = "thomas.pedersen@posit.co"), person(given = "Posit Software, PBC", role = "cph"))
# Description: Tools to make it easier to work with "tables" of 'grobs'. The 'gtable' package defines a 'gtable' grob class that specifies a grid along with a list of grobs and their placement in the grid. Further the package makes it easy to manipulate and combine 'gtable' objects so that complex compositions can be built up sequentially.
# License: MIT + file LICENSE
# Depends: R (>= 3.5)
# Imports: cli, glue, grid, lifecycle, rlang (>= 1.1.0)
# Suggests: covr, ggplot2, knitr, profvis, rmarkdown, testthat (>= 3.0.0)
# VignetteBuilder: knitr
# Encoding: UTF-8
# RoxygenNote: 7.2.3
# URL: https://gtable.r-lib.org, https://github.com/r-lib/gtable
# BugReports: https://github.com/r-lib/gtable/issues
# Config/testthat/edition: 3
# Config/Needs/website: tidyverse/tidytemplate
# NeedsCompilation: no
# Packaged: 2023-08-21 10:36:53 UTC; thomas
# Author: Hadley Wickham [aut], Thomas Lin Pedersen [aut, cre], Posit Software, PBC [cph]
# Maintainer: Thomas Lin Pedersen <thomas.pedersen@posit.co>
# Repository: CRAN
# Date/Publication: 2023-08-21 11:20:02 UTC

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