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

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

source:
  fn: thinkr_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/thinkr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/thinkr/thinkr_{{ version }}.tar.gz
  sha256: abedbf40ebef097242907043a5117e42fefa76202b8312676908c76cbfac83c8

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

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-assertthat
    - r-devtools
    - r-dplyr
    - r-ggplot2
    - r-lazyeval
    - r-lubridate
    - r-magrittr
    - r-officer
    - r-rvg
    - r-stringi
    - r-stringr
    - r-tidyr
  run:
    - r-base
    - r-assertthat
    - r-devtools
    - r-dplyr
    - r-ggplot2
    - r-lazyeval
    - r-lubridate
    - r-magrittr
    - r-officer
    - r-rvg
    - r-stringi
    - r-stringr
    - r-tidyr

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

about:
  home: https://CRAN.R-project.org/package=thinkr
  license: GPL-3
  summary: Some tools for cleaning up messy 'Excel' files to be suitable for R. People who have
    been working with 'Excel' for years built more or less complicated sheets with names,
    characters, formats that are not homogeneous. To be able to use them in R nowadays,
    we built a set of functions that will avoid the majority of importation problems
    and keep all the data at best.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]

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