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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/fasttime_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/fasttime/fasttime_{{ version }}.tar.gz
  sha256: 46c551facf3dbff36aca55aaf82f03d5f9aa2fd52be951a182d11ae5ba064900

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

about:
  home: http://www.rforge.net/fasttime
  license: GPL-2.0-only
  summary: Fast functions for timestamp manipulation that avoid system calls and take shortcuts to facilitate operations on very large data.
  license_family: GPL2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Package: fasttime
# Version: 1.0-2
# Title: Fast Utility Function for Time Parsing and Conversion
# Author: Simon Urbanek <simon.urbanek@r-project.org>
# Maintainer: Simon Urbanek <simon.urbanek@r-project.org>
# Description: Fast functions for timestamp manipulation that avoid system calls and take shortcuts to facilitate operations on very large data.
# License: GPL-2
# URL: http://www.rforge.net/fasttime
# NeedsCompilation: yes
# Packaged: 2016-10-26 12:48:59 UTC; svnuser
# Repository: CRAN
# Date/Publication: 2016-10-26 15:43:07
