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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/memuse_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/memuse/memuse_{{ version }}.tar.gz
  sha256: 58d6d1ca5d6bd481f4ed299eff6a9d5660eb0f8db1abe54c49e144093cba72ad

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

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [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
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]

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

about:
  home: https://github.com/shinra-dev/memuse
  license: BSD 2-clause
  license_file: LICENSE
  summary: How much ram do you need to store a 100,000 by 100,000 matrix? How much ram is your
    current R session using? How much ram do you even have? Learn the scintillating
    answer to these and many more such questions with the 'memuse' package.
  license_family: BSD

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

# Package: memuse
# Title: Memory Estimation Utilities
# Version: 4.0-0
# Description: How much ram do you need to store a 100,000 by 100,000 matrix? How much ram is your current R session using? How much ram do you even have? Learn the scintillating answer to these and many more such questions with the 'memuse' package.
# License: BSD 2-clause License + file LICENSE
# Depends: R (>= 3.0.0)
# Imports: methods, utils
# NeedsCompilation: yes
# ByteCompile: yes
# Authors@R: c( person("Drew", "Schmidt", email="wrathematics@gmail.com", role=c("aut", "cre")), person("Christian", "Heckendorf", role="ctb", comment="FreeBSD improvements to meminfo"), person("Wei-Chen", "Chen", role="ctb", comment="Windows build fixes"), person("Dan", "Burgess", role="ctb", comment="donation of a Mac for development and testing"))
# Maintainer: Drew Schmidt <wrathematics@gmail.com>
# URL: https://github.com/shinra-dev/memuse
# BugReports: https://github.com/shinra-dev/memuse/issues
# RoxygenNote: 6.0.1
# Packaged: 2017-11-10 13:08:29 UTC; mschmid3
# Author: Drew Schmidt [aut, cre], Christian Heckendorf [ctb] (FreeBSD improvements to meminfo), Wei-Chen Chen [ctb] (Windows build fixes), Dan Burgess [ctb] (donation of a Mac for development and testing)
# Repository: CRAN
# Date/Publication: 2017-11-10 19:04:08 UTC
