{% set version = '0.10' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/highr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/highr/highr_{{ version }}.tar.gz
  sha256: ec55bc1ff66390ed66806dc2a7b6c17dbfd089b3d73fe2e369017f8cb4bc347b

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

  host:
    - r-base
    - r-xfun >=0.18

  run:
    - r-base
    - r-xfun >=0.18

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('highr')"           # [not win]
    - "\"%R%\" -e \"library('highr')\""  # [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/yihui/highr
  license: GPL-3
  summary: Provides syntax highlighting for R source code. Currently it supports LaTeX and HTML
    output. Source code of other languages is supported via Andre Simon's highlight
    package (<http://www.andre-simon.de>).
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: highr
# Type: Package
# Title: Syntax Highlighting for R Source Code
# Version: 0.10
# Authors@R: c( person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), person("Yixuan", "Qiu", role = "aut"), person("Christopher", "Gandrud", role = "ctb"), person("Qiang", "Li", role = "ctb") )
# Description: Provides syntax highlighting for R source code. Currently it supports LaTeX and HTML output. Source code of other languages is supported via Andre Simon's highlight package (<http://www.andre-simon.de>).
# Depends: R (>= 3.3.0)
# Imports: xfun (>= 0.18)
# Suggests: knitr, markdown, testit
# License: GPL
# URL: https://github.com/yihui/highr
# BugReports: https://github.com/yihui/highr/issues
# VignetteBuilder: knitr
# Encoding: UTF-8
# RoxygenNote: 7.2.3
# NeedsCompilation: no
# Packaged: 2022-12-22 06:43:07 UTC; yihui
# Author: Yihui Xie [aut, cre] (<https://orcid.org/0000-0003-0645-5666>), Yixuan Qiu [aut], Christopher Gandrud [ctb], Qiang Li [ctb]
# Maintainer: Yihui Xie <xie@yihui.name>
# Repository: CRAN
# Date/Publication: 2022-12-22 07:00:02 UTC

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