{% set version = '4.0.5' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/bit64_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/bit64/bit64_{{ version }}.tar.gz
  sha256: 25df6826ea5e93241c4874cad4fa8dadc87a40f4ff74c9107aa12a9e033e1578

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/

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-bit >=4.0.0

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-bit >=4.0.0

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('bit64')"           # [not win]
    - "\"%R%\" -e \"library('bit64')\""  # [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/bit64
  license: GPL-2 | GPL-3
  summary: 'Package ''bit64'' provides serializable S3 atomic 64bit (signed) integers. These
    are useful for handling database keys and exact counting in +-2^63. WARNING: do
    not use them as replacement for 32bit integers, integer64 are not supported for
    subscripting by R-core and they have different semantics when combined with double,
    e.g. integer64 + double => integer64. Class integer64 can be used in vectors, matrices,
    arrays and data.frames. Methods are available for coercion from and to logicals,
    integers, doubles, characters and factors as well as many elementwise and summary
    functions. Many fast algorithmic operations such as ''match'' and ''order'' support
    inter- active data exploration and manipulation and optionally leverage caching.'
  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: bit64
# Type: Package
# Title: A S3 Class for Vectors of 64bit Integers
# Version: 4.0.5
# Date: 2020-08-29
# Author: Jens Oehlschlagel [aut, cre], Leonardo Silvestri [ctb]
# Maintainer: Jens Oehlschlagel <Jens.Oehlschlaegel@truecluster.com>
# Depends: R (>= 3.0.1), bit (>= 4.0.0), utils, methods, stats
# Description: Package 'bit64' provides serializable S3 atomic 64bit (signed) integers. These are useful for handling database keys and exact counting in +-2^63. WARNING: do not use them as replacement for 32bit integers, integer64 are not supported for subscripting by R-core and they have different semantics when combined with double, e.g. integer64 + double => integer64. Class integer64 can be used in vectors, matrices, arrays and data.frames. Methods are available for coercion from and to logicals, integers, doubles, characters and factors as well as many elementwise and summary functions. Many fast algorithmic operations such as 'match' and 'order' support inter- active data exploration and manipulation and optionally leverage caching.
# License: GPL-2 | GPL-3
# LazyLoad: yes
# ByteCompile: yes
# URL: https://github.com/truecluster/bit64
# Encoding: UTF-8
# Repository: CRAN
# Repository/R-Forge/Project: ff
# Repository/R-Forge/Revision: 177
# Repository/R-Forge/DateTimeStamp: 2018-08-17 17:45:18
# Date/Publication: 2020-08-30 07:20:02 UTC
# NeedsCompilation: yes
# Packaged: 2020-08-29 10:56:45 UTC; jo

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