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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/readODS_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/readODS/readODS_{{ version }}.tar.gz
  sha256: f6a8ec724df68983c9b176a1b3b3b01239cc4e99aac4bfb42ce1c2b3d40922c2

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

requirements:
  host: 
    - r-base
    - r-cellranger
    - r-readr
    - r-stringi
    - r-xml2 >=1.0.0
  run:
    - r-base
    - r-cellranger
    - r-readr
    - r-stringi
    - r-xml2 >=1.0.0

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

about:
  home: https://CRAN.R-project.org/package=readODS
  license: GPL-3
  summary: Import ODS (OpenDocument Spreadsheet) into R as a data frame. Also support writing data frame into ODS file.
  license_family: GPL3
  license_file: {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

extra:
  recipe-maintainers:
    - oblute
    - rluria14
    - ndmaxar
    - conda-forge/r

# The original CRAN metadata for this package was:

# Package: readODS
# Type: Package
# Title: Read and Write ODS Files
# Version: 1.6.7
# Date: 2018-11-25
# Author: Gerrit-Jan Schutten, Chung-hong Chan, Thomas J. Leeper and other contributors
# Maintainer: Chung-hong Chan <chainsawtiney@gmail.com>
# Contact: https://github.com/chainsawriot/readODS/
# Description: Import ODS (OpenDocument Spreadsheet) into R as a data frame. Also support writing data frame into ODS file.
# Imports: xml2 (>= 1.0.0), cellranger, readr, stringi
# Suggests: dplyr, testthat, datasets
# License: GPL-3
# RoxygenNote: 6.1.1
# NeedsCompilation: no
# Packaged: 2018-11-26 02:04:27 UTC; chainsaw
# Repository: CRAN
# Date/Publication: 2018-11-26 05:40:03 UTC

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