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

package:
  name: r-spatstat.linnet
  version: {{ version|replace("-", "_") }}

source:
  url:
    - {{ cran_mirror }}/src/contrib/spatstat.linnet_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/spatstat.linnet/spatstat.linnet_{{ version }}.tar.gz
  sha256: 2eb4b938f79d723238321040ae6c0d267fc07d252b25cc8d1a1b3b8c5d35feb6

build:
  merge_build_host: true  # [win]
  number: 0
  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-matrix
    - r-spatstat.core >=1.65_0
    - r-spatstat.data >=1.4_2
    - r-spatstat.geom >=1.65_0
    - r-spatstat.utils >=1.17_0
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-matrix
    - r-spatstat.core >=1.65_0
    - r-spatstat.data >=1.4_2
    - r-spatstat.geom >=1.65_0
    - r-spatstat.utils >=1.17_0

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

about:
  home: http://spatstat.org/
  license: GPL-2.0-or-later
  summary: This is a subset of the 'spatstat' package, containing its functionality for spatial data on a linear network.
  license_family: GPL2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Package: spatstat.linnet
# Version: 1.65-3
# Date: 2021-01-30
# Title: Linear Networks Functionality of the 'spatstat' Package
# Authors@R: c(person("Adrian", "Baddeley", role = c("aut", "cre"), email = "Adrian.Baddeley@curtin.edu.au"), person("Rolf", "Turner", role = "aut", email="r.turner@auckland.ac.nz"), person("Ege",   "Rubak", role = "aut", email = "rubak@math.aau.dk"), person("Ottmar", "Cronie", role = "ctb"), person("Tilman", "Davies", role = "ctb"), person("Greg", "McSwiggan", role = "ctb"), person("Suman", "Rakshit", role = "ctb"))
# Maintainer: Adrian Baddeley <Adrian.Baddeley@curtin.edu.au>
# Depends: R (>= 3.5.0), spatstat.data (>= 1.4-2), spatstat.geom (>= 1.65-0), spatstat.core (>= 1.65-0), stats, graphics, grDevices, methods, utils
# Imports: spatstat.utils (>= 1.17-0), Matrix
# Suggests:
# Description: This is a subset of the 'spatstat' package, containing its functionality for spatial data on a linear network.
# License: GPL (>= 2)
# URL: http://spatstat.org/
# LazyData: true
# NeedsCompilation: yes
# ByteCompile: true
# BugReports: https://github.com/baddstats/spatstat.linnet/issues
# Packaged: 2021-01-30 11:11:15 UTC; adrian
# Author: Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Ottmar Cronie [ctb], Tilman Davies [ctb], Greg McSwiggan [ctb], Suman Rakshit [ctb]
# Repository: CRAN
# Date/Publication: 2021-02-05 09:40:11 UTC
