{% set version = '0.48' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/tinytex_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/tinytex/tinytex_{{ version }}.tar.gz
  sha256: 1d0b989fa781a50a560b8d785f20c28bffc63b5b2e0fcd937c57fdd61d597695

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

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

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

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('tinytex')"           # [not win]
    - "\"%R%\" -e \"library('tinytex')\""  # [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/rstudio/tinytex
  license: MIT
  summary: Helper functions to install and maintain the 'LaTeX' distribution named 'TinyTeX'
    (<https://yihui.org/tinytex/>), a lightweight, cross-platform, portable, and easy-to-maintain
    version of 'TeX Live'. This package also contains helper functions to compile 'LaTeX'
    documents, and install missing 'LaTeX' packages automatically.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
    - ConorIA
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: tinytex
# Type: Package
# Title: Helper Functions to Install and Maintain TeX Live, and Compile LaTeX Documents
# Version: 0.48
# Authors@R: c( person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), person(given = "Posit Software, PBC", role = c("cph", "fnd")), person("Christophe", "Dervieux", role = "ctb", comment = c(ORCID = "0000-0003-4474-2498")), person("Devon", "Ryan", role = "ctb", email = "dpryan79@gmail.com", comment = c(ORCID = "0000-0002-8549-0971")), person("Ethan", "Heinzen", role = "ctb"), person("Fernando", "Cagua", role = "ctb"), person() )
# Description: Helper functions to install and maintain the 'LaTeX' distribution named 'TinyTeX' (<https://yihui.org/tinytex/>), a lightweight, cross-platform, portable, and easy-to-maintain version of 'TeX Live'. This package also contains helper functions to compile 'LaTeX' documents, and install missing 'LaTeX' packages automatically.
# Imports: xfun (>= 0.29)
# Suggests: testit, rstudioapi
# License: MIT + file LICENSE
# URL: https://github.com/rstudio/tinytex
# BugReports: https://github.com/rstudio/tinytex/issues
# Encoding: UTF-8
# RoxygenNote: 7.2.3
# NeedsCompilation: no
# Packaged: 2023-10-13 03:55:59 UTC; yihui
# Author: Yihui Xie [aut, cre, cph] (<https://orcid.org/0000-0003-0645-5666>), Posit Software, PBC [cph, fnd], Christophe Dervieux [ctb] (<https://orcid.org/0000-0003-4474-2498>), Devon Ryan [ctb] (<https://orcid.org/0000-0002-8549-0971>), Ethan Heinzen [ctb], Fernando Cagua [ctb]
# Maintainer: Yihui Xie <xie@yihui.name>
# Repository: CRAN
# Date/Publication: 2023-10-13 05:10:02 UTC

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