{% set version = "0.0.8" %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/RcppSpdlog_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/RcppSpdlog/RcppSpdlog_{{ version }}.tar.gz
  sha256: ea8f7f6247ed03a544225fb35c9e7949eb27fd012adbee2c81975e9d6278aefc

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 }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-rcpp

  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp

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

about:
  home: https://github.com/eddelbuettel/rcppspdlog, https://dirk.eddelbuettel.com/code/rcpp.spdlog.html
  license: GPL-2.0-or-later
  summary: The mature and widely-used C++ logging library 'spdlog' by Gabi Melman provides many desirable features. This package bundles these header files for easy use by R packages via a simple 'LinkingTo:' inclusion.
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# The original CRAN metadata for this package was:

# Package: RcppSpdlog
# Type: Package
# Title: 'spdlog' C++ Header Library for Logging
# Version: 0.0.7
# Date: 2021-12-05
# License: GPL (>= 2)
# Author: Dirk Eddelbuettel
# Maintainer: Dirk Eddelbuettel <edd@debian.org>
# Description: The mature and widely-used C++ logging library 'spdlog' by Gabi Melman provides many desirable features. This package bundles these header files for easy use by R packages via a simple 'LinkingTo:' inclusion.
# URL: https://github.com/eddelbuettel/rcppspdlog, https://dirk.eddelbuettel.com/code/rcpp.spdlog.html
# BugReports: https://github.com/eddelbuettel/rcppspdlog/issues
# LinkingTo: Rcpp
# Imports: Rcpp
# Suggests: simplermarkdown
# VignetteBuilder: simplermarkdown
# RoxygenNote: 6.0.1
# NeedsCompilation: yes
# Packaged: 2021-12-05 15:16:24 UTC; edd
# Repository: CRAN
# Date/Publication: 2021-12-05 15:40:02 UTC

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