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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/log4r_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/log4r/log4r_{{ version }}.tar.gz
  sha256: 36d860767d448554303a2851b14812410741c8497d2f28001016eaa09fd32e20

build:
  merge_build_host: True  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{posix}}filesystem        # [win]
    - {{posix}}make
    - {{posix}}sed               # [win]
    - {{posix}}coreutils         # [win]
    - {{posix}}zip               # [win]
  host:
    - r-base
  run:
    - r-base
    - {{native}}gcc-libs         # [win]

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

about:
  home: https://github.com/johnmyleswhite/log4r
  license: Artistic-2.0
  summary: The log4r package is meant to provide a fast, lightweight, object-oriented approach
    to logging in R based on the widely-emulated 'log4j' system and etymology.
  license_family: OTHER
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/Artistic-2.0'

extra:
  recipe-maintainers:
    - conda-forge/r
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr

# Type: Package
# Package: log4r
# Title: A Simple Logging System for R, Based on 'log4j'
# Version: 0.3.0
# Authors@R: c( person("John Myles", "White", role = c("aut", "cph")), person("Kenton", "White", role = "ctb"), person("Kirill", "Muller", email = "krlmlr+r@mailbox.org", role = "ctb"), person("Aaron", "Jacobs", email = "atheriel@gmail.com", role = c("aut", "cre")) )
# Description: The log4r package is meant to provide a fast, lightweight, object-oriented approach to logging in R based on the widely-emulated 'log4j' system and etymology.
# License: Artistic-2.0
# URL: https://github.com/johnmyleswhite/log4r
# BugReports: https://github.com/johnmyleswhite/log4r/issues
# Suggests: testthat
# Encoding: UTF-8
# LazyLoad: yes
# RoxygenNote: 6.1.1
# NeedsCompilation: yes
# Packaged: 2019-06-20 22:46:08 UTC; aaronj
# Author: John Myles White [aut, cph], Kenton White [ctb], Kirill Muller [ctb], Aaron Jacobs [aut, cre]
# Maintainer: Aaron Jacobs <atheriel@gmail.com>
# Repository: CRAN
# Date/Publication: 2019-06-21 08:00:11 UTC
