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

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

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

build:
  merge_build_host: True  # [win]
  number: 1
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
  run:
    - r-base

test:
  commands:
    - $R -e "library('labeling')"           # [not win]
    - "\"%R%\" -e \"library('labeling')\""  # [win]

about:
  home: https://CRAN.R-project.org/package=labeling
  license: MIT
  summary: Provides a range of axis labeling algorithms
  license_family: MIT

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
    - dbast
