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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/brio_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/brio/brio_{{ version }}.tar.gz
  sha256: 42dde6953151e31cc38bbec72335c01ac9e755cc07d11e26f4e1fcd0f9f471ef

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('brio')"           # [not win]
    - "\"%R%\" -e \"library('brio')\""  # [win]

about:
  home: https://github.com/r-lib/brio
  license: MIT
  summary: Functions to handle basic input output, these functions always read and write UTF-8 (8-bit Unicode Transformation Format) files and provide more explicit control over line endings.
  license_family: MIT
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/MIT
    - LICENSE

extra:
  recipe-maintainers:
    - conda-forge/r

# Package: brio
# Title: Basic R Input Output
# Version: 1.1.0
# Authors@R: c(person(given = "Jim", family = "Hester", role = c("aut", "cre"), email = "jim.hester@rstudio.com", comment = c(ORCID = "0000-0002-2739-7082")), person(given = "RStudio", role = c("cph", "fnd")))
# Description: Functions to handle basic input output, these functions always read and write UTF-8 (8-bit Unicode Transformation Format) files and provide more explicit control over line endings.
# License: MIT + file LICENSE
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 7.1.1
# Suggests: testthat (>= 2.1.0), covr
# URL: https://github.com/r-lib/brio
# BugReports: https://github.com/r-lib/brio/issues
# NeedsCompilation: yes
# Packaged: 2020-08-28 18:14:14 UTC; jhester
# Author: Jim Hester [aut, cre] (<https://orcid.org/0000-0002-2739-7082>), RStudio [cph, fnd]
# Maintainer: Jim Hester <jim.hester@rstudio.com>
# Repository: CRAN
# Date/Publication: 2020-08-31 07:20:02 UTC
