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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/collections_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/collections/collections_{{ version }}.tar.gz
  sha256: 254fdcd1c3279de258fe7194648333fadf7ac99b8bb1a17f07fe2582a89baf06

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
    - r-xptr
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-xptr

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

about:
  home: https://randy3k.github.io/collections
  license: MIT
  summary: Provides high performance container data types such as Queue, Stack, Deque, Dict and OrderedDict. Benchmarks <https://randy3k.github.io/collections/articles/benchmark.html>
    have shown that these containers are asymptotically more efficient than those offered by other packages.
  license_family: MIT
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/MIT
    - LICENSE

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

# Package: collections
# Type: Package
# Title: High Performance Container Data Types
# Version: 0.2.0
# Date: 2019-09-30
# Authors@R: c( person("Randy", "Lai", , "randy.cs.lai@gmail.com", role = c("aut", "cre")), person("Andrea", "Mazzoleni", role = "cph", comment = "tommy hash table library") )
# Description: Provides high performance container data types such as Queue, Stack, Deque, Dict and OrderedDict. Benchmarks <https://randy3k.github.io/collections/articles/benchmark.html> have shown that these containers are asymptotically more efficient than those offered by other packages.
# URL: https://randy3k.github.io/collections
# License: MIT + file LICENSE
# Depends: R (>= 3.4.0)
# Imports: xptr
# NeedsCompilation: yes
# ByteCompile: yes
# Suggests: testthat
# LazyData: true
# RoxygenNote: 6.1.1
# Packaged: 2019-10-02 05:34:35 UTC; randy
# Author: Randy Lai [aut, cre], Andrea Mazzoleni [cph] (tommy hash table library)
# Maintainer: Randy Lai <randy.cs.lai@gmail.com>
# Repository: CRAN
# Date/Publication: 2019-10-02 06:00:02 UTC
