{% set version = '4.7.2' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/wavethresh_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/wavethresh/wavethresh_{{ version }}.tar.gz
  sha256: 9a9774ca23496df4ecaa2bf9bff345a2ae40ded07f6afd81dd8847d48b43b656

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-mass

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

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('wavethresh')"           # [not win]
    - "\"%R%\" -e \"library('wavethresh')\""  # [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://CRAN.R-project.org/package=wavethresh
  license: GPL-2
  summary: Performs 1, 2 and 3D real and complex-valued wavelet transforms, nondecimated transforms,
    wavelet packet transforms, nondecimated wavelet packet transforms, multiple wavelet
    transforms, complex-valued wavelet transforms, wavelet shrinkage for various kinds
    of data, locally stationary wavelet time series, nonstationary multiscale transfer
    function modeling, density estimation.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: wavethresh
# Type: Package
# Title: Wavelets Statistics and Transforms
# Version: 4.7.2
# Date: 2022-11-14
# Authors@R: c(person("Guy", "Nason", role=c("aut", "cre"), email="g.nason@imperial.ac.uk"), person("Stuart", "Barber", role="ctb", email="s.barber@leeds.ac.uk"), person("Tim", "Downie", role="ctb", email="tim.downie@bht-berlin.de"), person("Piotr", "Frylewicz", role="ctb", email="p.fryzlewicz@lse.ac.uk"), person("Arne", "Kovac", role="ctb", email="A.Kovac@bristol.ac.uk"), person("Todd", "Ogden", role="ctb", email="todd.ogden@columbia.edu"), person("Bernard", "Silverman", role="ctb"))
# Depends: R (>= 2.10), MASS
# Description: Performs 1, 2 and 3D real and complex-valued wavelet transforms, nondecimated transforms, wavelet packet transforms, nondecimated wavelet packet transforms, multiple wavelet transforms, complex-valued wavelet transforms, wavelet shrinkage for various kinds of data, locally stationary wavelet time series, nonstationary multiscale transfer function modeling, density estimation.
# License: GPL (>= 2)
# NeedsCompilation: yes
# Packaged: 2022-11-14 11:59:38 UTC; guynason
# Author: Guy Nason [aut, cre], Stuart Barber [ctb], Tim Downie [ctb], Piotr Frylewicz [ctb], Arne Kovac [ctb], Todd Ogden [ctb], Bernard Silverman [ctb]
# Maintainer: Guy Nason <g.nason@imperial.ac.uk>
# Repository: CRAN
# Date/Publication: 2022-11-16 15:20:02 UTC

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