{% set version = '1.9.3' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/lubridate_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/lubridate/lubridate_{{ version }}.tar.gz
  sha256: 2b6e1406d231b0a14d60b99cc406d159fea5465a5694725ad25343f12cf37fff

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: covr, knitr, rmarkdown, testthat (>= 2.1.0), vctrs (>= 0.5.0)
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
    - r-generics
    - r-timechange >=0.1.1

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-generics
    - r-timechange >=0.1.1

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('lubridate')"           # [not win]
    - "\"%R%\" -e \"library('lubridate')\""  # [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://lubridate.tidyverse.org, https://github.com/tidyverse/lubridate
  license: GPL-2
  summary: 'Functions to work with date-times and time-spans: fast and user friendly parsing
    of date-time data, extraction and updating of components of a date-time (years,
    months, days, hours, minutes, and seconds), algebraic manipulation on date-time
    and time-span objects. The ''lubridate'' package has a consistent and memorable
    syntax that makes working with dates easy and fun.'
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# The original CRAN metadata for this package was:

# Type: Package
# Package: lubridate
# Title: Make Dealing with Dates a Little Easier
# Version: 1.9.3
# Authors@R: c( person("Vitalie", "Spinu", , "spinuvit@gmail.com", role = c("aut", "cre")), person("Garrett", "Grolemund", role = "aut"), person("Hadley", "Wickham", role = "aut"), person("Davis", "Vaughan", role = "ctb"), person("Ian", "Lyttle", role = "ctb"), person("Imanuel", "Costigan", role = "ctb"), person("Jason", "Law", role = "ctb"), person("Doug", "Mitarotonda", role = "ctb"), person("Joseph", "Larmarange", role = "ctb"), person("Jonathan", "Boiser", role = "ctb"), person("Chel Hee", "Lee", role = "ctb") )
# Maintainer: Vitalie Spinu <spinuvit@gmail.com>
# Description: Functions to work with date-times and time-spans: fast and user friendly parsing of date-time data, extraction and updating of components of a date-time (years, months, days, hours, minutes, and seconds), algebraic manipulation on date-time and time-span objects. The 'lubridate' package has a consistent and memorable syntax that makes working with dates easy and fun.
# License: GPL (>= 2)
# URL: https://lubridate.tidyverse.org, https://github.com/tidyverse/lubridate
# BugReports: https://github.com/tidyverse/lubridate/issues
# Depends: methods, R (>= 3.2)
# Imports: generics, timechange (>= 0.1.1)
# Suggests: covr, knitr, rmarkdown, testthat (>= 2.1.0), vctrs (>= 0.5.0)
# Enhances: chron, data.table, timeDate, tis, zoo
# VignetteBuilder: knitr
# Config/Needs/website: tidyverse/tidytemplate
# Config/testthat/edition: 3
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 7.2.3
# SystemRequirements: C++11, A system with zoneinfo data (e.g. /usr/share/zoneinfo). On Windows the zoneinfo included with R is used.
# Collate: 'Dates.r' 'POSIXt.r' 'util.r' 'parse.r' 'timespans.r' 'intervals.r' 'difftimes.r' 'durations.r' 'periods.r' 'accessors-date.R' 'accessors-day.r' 'accessors-dst.r' 'accessors-hour.r' 'accessors-minute.r' 'accessors-month.r' 'accessors-quarter.r' 'accessors-second.r' 'accessors-tz.r' 'accessors-week.r' 'accessors-year.r' 'am-pm.r' 'time-zones.r' 'numeric.r' 'coercion.r' 'constants.r' 'cyclic_encoding.r' 'data.r' 'decimal-dates.r' 'deprecated.r' 'format_ISO8601.r' 'guess.r' 'hidden.r' 'instants.r' 'leap-years.r' 'ops-addition.r' 'ops-compare.r' 'ops-division.r' 'ops-integer-division.r' 'ops-m+.r' 'ops-modulo.r' 'ops-multiplication.r' 'ops-subtraction.r' 'package.r' 'pretty.r' 'round.r' 'stamp.r' 'tzdir.R' 'update.r' 'vctrs.R' 'zzz.R'
# NeedsCompilation: yes
# Packaged: 2023-09-24 18:46:12 UTC; vspinu
# Author: Vitalie Spinu [aut, cre], Garrett Grolemund [aut], Hadley Wickham [aut], Davis Vaughan [ctb], Ian Lyttle [ctb], Imanuel Costigan [ctb], Jason Law [ctb], Doug Mitarotonda [ctb], Joseph Larmarange [ctb], Jonathan Boiser [ctb], Chel Hee Lee [ctb]
# Repository: CRAN
# Date/Publication: 2023-09-27 09:20:06 UTC

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