{% set version = '1.4.4' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/reshape2_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/reshape2/reshape2_{{ version }}.tar.gz
  sha256: d88dcf9e2530fa9695fc57d0c78adfc5e361305fe8919fe09410b17da5ca12d8

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: covr, lattice, testthat (>= 0.8.0)
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
    - r-plyr >=1.8.1
    - r-stringr

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-rcpp
    - r-plyr >=1.8.1
    - r-stringr

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('reshape2')"           # [not win]
    - "\"%R%\" -e \"library('reshape2')\""  # [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/hadley/reshape
  license: MIT
  summary: 'Flexibly restructure and aggregate data using just two functions: melt and ''dcast''
    (or ''acast'').'
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

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

# The original CRAN metadata for this package was:

# Package: reshape2
# Title: Flexibly Reshape Data: A Reboot of the Reshape Package
# Version: 1.4.4
# Author: Hadley Wickham <h.wickham@gmail.com>
# Maintainer: Hadley Wickham <h.wickham@gmail.com>
# Description: Flexibly restructure and aggregate data using just two functions: melt and 'dcast' (or 'acast').
# License: MIT + file LICENSE
# URL: https://github.com/hadley/reshape
# BugReports: https://github.com/hadley/reshape/issues
# Depends: R (>= 3.1)
# Imports: plyr (>= 1.8.1), Rcpp, stringr
# Suggests: covr, lattice, testthat (>= 0.8.0)
# LinkingTo: Rcpp
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 7.1.0
# NeedsCompilation: yes
# Packaged: 2020-04-09 12:27:19 UTC; hadley
# Repository: CRAN
# Date/Publication: 2020-04-09 13:50:02 UTC

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