{% set version = '4.0.5' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/bit_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/bit/bit_{{ version }}.tar.gz
  sha256: f0f2536a8874b6a30b80baefbc68cb21f0ffbf51f3877bda8038c3f9f354bfbc

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: testthat (>= 0.11.0), roxygen2, knitr, rmarkdown, microbenchmark, bit64 (>= 4.0.0), ff (>= 4.0.0)
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:
    # You can put additional test commands to be run here.
    - $R -e "library('bit')"           # [not win]
    - "\"%R%\" -e \"library('bit')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://github.com/truecluster/bit
  license: GPL-2 | GPL-3
  summary: Provided are classes for boolean and skewed boolean vectors, fast boolean methods,
    fast unique and non-unique integer sorting, fast set operations on sorted and unsorted
    sets of integers, and foundations for ff (range index, compression, chunked processing).
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: bit
# Type: Package
# Title: Classes and Methods for Fast Memory-Efficient Boolean Selections
# Version: 4.0.5
# Date: 2022-11-13
# Author: Jens Oehlschlagel [aut, cre], Brian Ripley [ctb]
# Maintainer: Jens Oehlschlagel <Jens.Oehlschlaegel@truecluster.com>
# Depends: R (>= 2.9.2)
# Suggests: testthat (>= 0.11.0), roxygen2, knitr, rmarkdown, microbenchmark, bit64 (>= 4.0.0), ff (>= 4.0.0)
# Description: Provided are classes for boolean and skewed boolean vectors, fast boolean methods, fast unique and non-unique integer sorting, fast set operations on sorted and unsorted sets of integers, and foundations for ff (range index, compression, chunked processing).
# License: GPL-2 | GPL-3
# LazyLoad: yes
# ByteCompile: yes
# Encoding: UTF-8
# URL: https://github.com/truecluster/bit
# VignetteBuilder: knitr, rmarkdown
# RoxygenNote: 7.2.0
# NeedsCompilation: yes
# Packaged: 2022-11-13 21:22:09 UTC; jo
# Repository: CRAN
# Date/Publication: 2022-11-15 21:20:16 UTC

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