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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/hashmap_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/hashmap/hashmap_{{ version }}.tar.gz
  sha256: 1280f387a53de0185d6aee15094b7d2929ec30493b9702a6ec328f01a2afd7e3

build:
  merge_build_host: True  # [win]
  number: 1000
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{ compiler('cxx') }}      # [not win]
    - {{native}}toolchain        # [win]
    - {{posix}}filesystem        # [win]
    - {{posix}}make
    - {{posix}}sed               # [win]
    - {{posix}}coreutils         # [win]
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-bh
    - r-rcpp >=0.12.4
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-bh
    - r-rcpp >=0.12.4

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

about:
  home: https://github.com/nathan-russell/hashmap
  license: MIT
  summary: Provides a hash table class for fast key-value storage of atomic vector types.
  license_family: MIT

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

# Package: hashmap
# Type: Package
# Title: The Faster Hash Map
# Version: 0.2.2
# Date: 2017-11-16
# Authors@R: person("Nathan", "Russell", email = "russell.nr2012@gmail.com", role = c("aut", "cre"))
# URL: https://github.com/nathan-russell/hashmap
# BugReports: https://github.com/nathan-russell/hashmap/issues
# Description: Provides a hash table class for fast key-value storage of atomic vector types.
# License: MIT + file LICENSE
# LazyData: Yes
# ByteCompile: TRUE
# Imports: Rcpp (>= 0.12.4)
# LinkingTo: Rcpp, BH
# Suggests: devtools, microbenchmark, testthat
# Depends: methods
# RcppModules: Hashmap
# Collate: 'hashmap.R' 'classes.R' 'Hashmap-class.R' 'RcppExports.R' 'clone.R' 'load_hashmap.R' 'merge.R' 'plugin.R' 'save_hashmap.R' 'zzz.R'
# RoxygenNote: 6.0.1
# NeedsCompilation: yes
# Packaged: 2017-11-16 14:19:08 UTC; nathan
# Author: Nathan Russell [aut, cre]
# Maintainer: Nathan Russell <russell.nr2012@gmail.com>
# Repository: CRAN
# Date/Publication: 2017-11-16 15:19:42 UTC
