{% set version = '0.7-103' %}

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

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

source:
  fn: logging_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/logging_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/logging/logging_{{ version }}.tar.gz
  sha256: aca8153206cc815a49470844c48f44f84e6d7a6ce52686a8593f727582c0e7ea

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=logging
  license: GPL (>= 2)
  summary: logging is a pure R package that implements the ubiquitous log4j package.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
