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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/qs_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/qs/qs_{{ version }}.tar.gz
  sha256: dbda57b39cfb1af9aae716bd38c4cc6a172ad1ebfe702f4f9ffcb5c43f724293

build:
  merge_build_host: true  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}sed               # [win]
    - {{ posix }}grep              # [win]
    - {{ posix }}autoconf
    - {{ posix }}automake          # [not win]
    - {{ posix }}automake-wrapper  # [win]
    - {{ posix }}pkg-config
    - {{ posix }}make
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-rapiserialize
    - r-rcpp
    - r-stringfish
    - zstd
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rapiserialize
    - r-rcpp
    - r-stringfish
    - zstd

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

about:
  home: https://github.com/traversc/qs
  license: GPL-3.0-only
  summary: Provides functions for quickly writing and reading any R object to and from disk.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3
    - LICENSE

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

# Package: qs
# Type: Package
# Title: Quick Serialization of R Objects
# Version: 0.21.1
# Date: 2020-2-6
# Authors@R: c( person("Travers", "Ching", email = "traversc@gmail.com", role = c("aut", "cre", "cph")), person("Yann", "Collet", role = c("ctb", "cph"), comment = "Yann Collet is the author of the bundled zstd and lz4 code"), person("Facebook, Inc.", role = "cph", comment = "Facebook is the copyright holder of the bundled zstd code"), person("Reichardt", "Tino", role = c("ctb", "cph"), comment = "Contributor/copyright holder of zstd bundled code"), person("Skibinski", "Przemyslaw", role = c("ctb", "cph"), comment = "Contributor/copyright holder of zstd bundled code"), person("Mori", "Yuta", role = c("ctb", "cph"), comment = "Contributor/copyright holder of zstd bundled code"), person("Romain", "Francois", role = c("ctb", "cph"), comment = "Derived example/tutorials for Alt-Rep structures"), person("Francesc", "Alted", role = c("ctb", "cph"), comment = "Shuffling routines derived from Blosc library"))
# Maintainer: Travers Ching <traversc@gmail.com>
# Description: Provides functions for quickly writing and reading any R object to and from disk.
# License: GPL-3 | file LICENSE
# LazyData: true
# Biarch: true
# SystemRequirements: C++11
# Imports: Rcpp, RApiSerialize
# LinkingTo: Rcpp, RApiSerialize
# RoxygenNote: 6.1.1
# Suggests: knitr, rmarkdown
# VignetteBuilder: knitr
# Copyright: This package includes code from the 'zstd' library owned by Facebook, Inc. and created by Yann Collet; the 'lz4' library created by Yann Collet; and code derived from the 'Blosc' library created by Francesc Alted.
# URL: https://github.com/traversc/qs
# BugReports: https://github.com/traversc/qs/issues
# NeedsCompilation: yes
# Packaged: 2020-02-06 23:19:15 UTC; tching
# Author: Travers Ching [aut, cre, cph], Yann Collet [ctb, cph] (Yann Collet is the author of the bundled zstd and lz4 code), Facebook, Inc. [cph] (Facebook is the copyright holder of the bundled zstd code), Reichardt Tino [ctb, cph] (Contributor/copyright holder of zstd bundled code), Skibinski Przemyslaw [ctb, cph] (Contributor/copyright holder of zstd bundled code), Mori Yuta [ctb, cph] (Contributor/copyright holder of zstd bundled code), Romain Francois [ctb, cph] (Derived example/tutorials for Alt-Rep structures), Francesc Alted [ctb, cph] (Shuffling routines derived from Blosc library)
# Repository: CRAN
# Date/Publication: 2020-02-07 10:20:06 UTC
