{% set version = '0.3.3' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/rappdirs_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/rappdirs/rappdirs_{{ version }}.tar.gz
  sha256: 49959f65b45b0b189a2792d6c1339bef59674ecae92f8c2ed9f26ff9e488c184

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: roxygen2, testthat (>= 3.0.0), covr, withr
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:
    # You can put additional test commands to be run here.
    - $R -e "library('rappdirs')"           # [not win]
    - "\"%R%\" -e \"library('rappdirs')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://rappdirs.r-lib.org, https://github.com/r-lib/rappdirs
  license: MIT
  summary: An easy way to determine which directories on the users computer you should use to
    save data, caches and logs. A port of Python's 'Appdirs' (<https://github.com/ActiveState/appdirs>)
    to R.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - mingwandroid

# The original CRAN metadata for this package was:

# Type: Package
# Package: rappdirs
# Title: Application Directories: Determine Where to Save Data, Caches, and Logs
# Version: 0.3.3
# Authors@R: c(person(given = "Hadley", family = "Wickham", role = c("trl", "cre", "cph"), email = "hadley@rstudio.com"), person(given = "RStudio", role = "cph"), person(given = "Sridhar", family = "Ratnakumar", role = "aut"), person(given = "Trent", family = "Mick", role = "aut"), person(given = "ActiveState", role = "cph", comment = "R/appdir.r, R/cache.r, R/data.r, R/log.r translated from appdirs"), person(given = "Eddy", family = "Petrisor", role = "ctb"), person(given = "Trevor", family = "Davis", role = c("trl", "aut")), person(given = "Gabor", family = "Csardi", role = "ctb"), person(given = "Gregory", family = "Jefferis", role = "ctb"))
# Description: An easy way to determine which directories on the users computer you should use to save data, caches and logs. A port of Python's 'Appdirs' (<https://github.com/ActiveState/appdirs>) to R.
# License: MIT + file LICENSE
# URL: https://rappdirs.r-lib.org, https://github.com/r-lib/rappdirs
# BugReports: https://github.com/r-lib/rappdirs/issues
# Depends: R (>= 3.2)
# Suggests: roxygen2, testthat (>= 3.0.0), covr, withr
# Copyright: Original python appdirs module copyright (c) 2010 ActiveState Software Inc. R port copyright Hadley Wickham, RStudio. See file LICENSE for details.
# Encoding: UTF-8
# RoxygenNote: 7.1.1
# Config/testthat/edition: 3
# NeedsCompilation: yes
# Packaged: 2021-01-28 22:29:57 UTC; hadley
# Author: Hadley Wickham [trl, cre, cph], RStudio [cph], Sridhar Ratnakumar [aut], Trent Mick [aut], ActiveState [cph] (R/appdir.r, R/cache.r, R/data.r, R/log.r translated from appdirs), Eddy Petrisor [ctb], Trevor Davis [trl, aut], Gabor Csardi [ctb], Gregory Jefferis [ctb]
# Maintainer: Hadley Wickham <hadley@rstudio.com>
# Repository: CRAN
# Date/Publication: 2021-01-31 05:40:02 UTC

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