{% set version = '0.4.3' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/labeling_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/labeling/labeling_{{ version }}.tar.gz
  sha256: c62f4fc2cc74377d7055903c5f1913b7295f7587456fe468592738a483e264f2

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/

requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('labeling')"           # [not win]
    - "\"%R%\" -e \"library('labeling')\""  # [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://CRAN.R-project.org/package=labeling
  license: MIT
  summary: Functions which provide a range of axis labeling algorithms.
  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: labeling
# Type: Package
# Title: Axis Labeling
# Version: 0.4.3
# Date: 2023-08-29
# Author: Justin Talbot,
# Maintainer: Nuno Sempere <nuno.semperelh@gmail.com>
# Description: Functions which provide a range of axis labeling algorithms.
# License: MIT + file LICENSE | Unlimited
# Collate: 'labeling.R'
# NeedsCompilation: no
# Imports: stats, graphics
# Packaged: 2023-08-29 21:01:57 UTC; loki
# Repository: CRAN
# Date/Publication: 2023-08-29 22:20:02 UTC

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