{% set version = '1.1.6' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/repr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/repr/repr_{{ version }}.tar.gz
  sha256: 3d2e6c9b363c1ec4811688deff7fb22093cadc9e0a333930382093d93c16673f

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: methods, highr, Cairo, stringr, testthat (>= 3.0.0), leaflet
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-base64enc
    - r-htmltools
    - r-jsonlite
    - r-pillar >=1.4.0

  run:
    - r-base
    - r-base64enc
    - r-htmltools
    - r-jsonlite
    - r-pillar >=1.4.0

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('repr')"           # [not win]
    - "\"%R%\" -e \"library('repr')\""  # [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://github.com/IRkernel/repr/
  license: GPL-3
  summary: String and binary representations of objects for several formats / mime types.
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
  recipe-maintainers:
    - ocefpaf
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: repr
# Title: Serializable Representations
# Version: 1.1.6
# Authors@R: c( person('Philipp', 'Angerer', email = 'phil.angerer@gmail.com', role = c('aut', 'cre'), comment = c(ORCID = "0000-0002-0369-2888")), person('Thomas', 'Kluyver', email = 'thomas@kluyver.me.uk', role = 'aut'), person('Jan', 'Schulz', email = 'jasc@gmx.net', role = 'aut'), person('abielr', role = 'ctb'), person('Denilson', 'Figueiredo de Sa', role = 'ctb'), person('Jim', 'Hester', role = 'ctb'), person('karldw', role = 'ctb'), person('Dave', 'Foster', role = 'ctb'), person('Carson', 'Sievert', role = 'ctb') )
# Maintainer: Philipp Angerer <phil.angerer@gmail.com>
# Description: String and binary representations of objects for several formats / mime types.
# URL: https://github.com/IRkernel/repr/
# BugReports: https://github.com/IRkernel/repr/issues/
# Depends: R (>= 3.0.1)
# Imports: utils, grDevices, htmltools, jsonlite, pillar (>= 1.4.0), base64enc
# Suggests: methods, highr, Cairo, stringr, testthat (>= 3.0.0), leaflet
# Enhances: data.table, tibble, htmlwidgets, vegalite, plotly, geojsonio
# Config/testthat/edition: 3
# License: GPL (>= 3)
# Encoding: UTF-8
# Collate: 'generics.r' 'options.r' 'package.r' 'repr_datatable.r' 'repr_datetime.r' 'utils.r' 'repr_list.r' 'repr_vector.r' 'repr_factor.r' 'repr_function.r' 'repr_help_files_with_topic.r' 'repr_htmlwidget.r' 'repr_matrix_df.r' 'repr_packageIQR.r' 'repr_plotly.r' 'repr_recordedplot.r' 'repr_spatial.r' 'repr_ts.r' 'repr_vega.r' 'zzz_onload.r'
# RoxygenNote: 7.2.3
# NeedsCompilation: no
# Packaged: 2023-01-26 22:01:36 UTC; phil
# Author: Philipp Angerer [aut, cre] (<https://orcid.org/0000-0002-0369-2888>), Thomas Kluyver [aut], Jan Schulz [aut], abielr [ctb], Denilson Figueiredo de Sa [ctb], Jim Hester [ctb], karldw [ctb], Dave Foster [ctb], Carson Sievert [ctb]
# Repository: CRAN
# Date/Publication: 2023-01-26 22:30:02 UTC

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