{% set version = '1.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/IRdisplay_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/IRdisplay/IRdisplay_{{ version }}.tar.gz
  sha256: 83eb030ff91f546cb647899f8aa3f5dc9fe163a89a981696447ea49cc98e8d2b

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: testthat, withr
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-repr

  run:
    - r-base
    - r-repr

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('IRdisplay')"           # [not win]
    - "\"%R%\" -e \"library('IRdisplay')\""  # [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/IRdisplay
  license: MIT
  summary: An interface to the rich display capabilities of 'Jupyter' front-ends (e.g. 'Jupyter
    Notebook') <https://jupyter.org>. Designed to be used from a running 'IRkernel'
    session <https://irkernel.github.io>.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - ocefpaf
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: IRdisplay
# Title: 'Jupyter' Display Machinery
# Description: An interface to the rich display capabilities of 'Jupyter' front-ends (e.g. 'Jupyter Notebook') <https://jupyter.org>. Designed to be used from a running 'IRkernel' session <https://irkernel.github.io>.
# Version: 1.1
# Authors@R: c( person('Thomas', 'Kluyver', role = c('aut', 'cph'), email = 'thomas@kluyver.me.uk'), person('Philipp', 'Angerer', role = c('aut', 'cph', 'cre'), email = 'phil.angerer@gmail.com', comment = c(ORCID = "0000-0002-0369-2888")), person('Jan', 'Schulz', role = c('aut', 'cph'), email = 'jasc@gmx.net'))
# URL: https://github.com/IRkernel/IRdisplay
# BugReports: https://github.com/IRkernel/IRdisplay/issues/
# Depends: R (>= 3.0.1)
# Suggests: testthat, withr
# Imports: methods, repr
# License: MIT + file LICENSE
# Encoding: UTF-8
# RoxygenNote: 7.1.2
# NeedsCompilation: no
# Packaged: 2022-01-04 08:22:43 UTC; phil
# Author: Thomas Kluyver [aut, cph], Philipp Angerer [aut, cph, cre] (<https://orcid.org/0000-0002-0369-2888>), Jan Schulz [aut, cph]
# Maintainer: Philipp Angerer <phil.angerer@gmail.com>
# Repository: CRAN
# Date/Publication: 2022-01-04 12:10:16 UTC

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