{% set version = "0.4-27" %}
{% set posix = 'm2-' if win else '' %}

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/proxy_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/proxy/proxy_{{ version }}.tar.gz
  sha256: 249991a4c4d70ad139e93f3a24e17f161ad1ec854951813ea192daf79478563f

build:
  number: 3
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - cross-r-base {{ r_base }}  # [build_platform != target_platform]
    - {{ compiler('c') }}              # [not win]
    - {{ stdlib("c") }}                # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ stdlib("m2w64_c") }}          # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=proxy
  license: GPL-2.0-only
  summary: 'Provides an extensible framework for the efficient calculation of auto- and cross-proximities, along with implementations of the most popular ones. '
  license_family: GPL2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Package: proxy
# Type: Package
# Title: Distance and Similarity Measures
# Version: 0.4-23
# Authors@R: c(person(given = "David", family = "Meyer", role = c("aut", "cre"), email = "David.Meyer@R-project.org"), person(given = "Christian", family = "Buchta", role = "aut"))
# Description: Provides an extensible framework for the efficient calculation of auto- and cross-proximities, along with implementations of the most popular ones.
# Depends: R (>= 3.4.0)
# Imports: stats, utils
# Suggests: cba
# Collate: registry.R database.R dist.R similarities.R dissimilarities.R util.R seal.R
# License: GPL-2
# NeedsCompilation: yes
# Packaged: 2019-03-05 12:32:19 UTC; meyer
# Author: David Meyer [aut, cre], Christian Buchta [aut]
# Maintainer: David Meyer <David.Meyer@R-project.org>
# Repository: CRAN
# Date/Publication: 2019-03-05 14:15:31 UTC
