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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/rlas_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/rlas/rlas_{{ version }}.tar.gz
  sha256: d802e293995c4246faa4019d59400458621532eda5fad445d16412be27a7a169

build:
  merge_build_host: True  # [win]
  script: R CMD INSTALL --build .
  number: 2
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{ compiler('cxx') }}      # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('m2w64_cxx') }}        # [win]
    - {{posix}}filesystem        # [win]
    - {{posix}}make
    - {{posix}}sed               # [win]
    - {{posix}}coreutils         # [win]
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-bh
    - r-rcpp
    - r-data.table
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-bh
    - r-rcpp
    - r-data.table

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

about:
  home: https://github.com/Jean-Romain/rlas
  license: GPL-3
  summary: Read and write 'las' and 'laz' binary file formats. The LAS file format is a public
    file format for the interchange of 3-dimensional point cloud data between data users.
    The LAS specifications are approved by the American Society for Photogrammetry and
    Remote Sensing <https://www.asprs.org/committee-general/laser-las-file-format-exchange-activities.html>.
    The LAZ file format is an open and lossless compression scheme for binary LAS format
    versions 1.0 to 1.3 <https://www.laszip.org/>.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# Package: rlas
# Type: Package
# Title: Read and Write 'las' and 'laz' Binary File Formats Used for Remote Sensing Data
# Version: 1.3.2
# Date: 2019-04-26
# Authors@R: c( person("Jean-Romain", "Roussel", email = "jean-romain.roussel.1@ulaval.ca", role = c("aut", "cre", "cph")), person("Florian", "De Boissieu", email = "", role = c("aut", "ctb"), comment = "Enable the support of .lax file and extra byte attributes"), person("Martin", "Isenburg", email = "", role = "cph", comment = "Is the author of the LASlib and LASzip libraries"), person("David", "Auty", email = "", role = c("ctb"), comment = "Reviewed the documentation"), person("Pierrick", "Marie", email = "", role = ("ctb"), comment = "Helped to compile LASlib code in R"), person("Tiago", "de Conto", email = "", role = ("ctb"), comment = "Implemented the -thin_with_voxel filter method"))
# Description: Read and write 'las' and 'laz' binary file formats. The LAS file format is a public file format for the interchange of 3-dimensional point cloud data between data users. The LAS specifications are approved by the American Society for Photogrammetry and Remote Sensing <https://www.asprs.org/committee-general/laser-las-file-format-exchange-activities.html>. The LAZ file format is an open and lossless compression scheme for binary LAS format versions 1.0 to 1.3 <https://www.laszip.org/>.
# URL: https://github.com/Jean-Romain/rlas
# BugReports: https://github.com/Jean-Romain/rlas/issues
# License: GPL-3
# Depends: R (>= 3.0.0)
# Imports: Rcpp, data.table
# LazyData: true
# RoxygenNote: 6.1.1
# LinkingTo: Rcpp,BH
# Suggests: testthat
# Encoding: UTF-8
# NeedsCompilation: yes
# Packaged: 2019-04-26 15:49:35 UTC; jr
# Author: Jean-Romain Roussel [aut, cre, cph], Florian De Boissieu [aut, ctb] (Enable the support of .lax file and extra byte attributes), Martin Isenburg [cph] (Is the author of the LASlib and LASzip libraries), David Auty [ctb] (Reviewed the documentation), Pierrick Marie [ctb] (Helped to compile LASlib code in R), Tiago de Conto [ctb] (Implemented the -thin_with_voxel filter method)
# Maintainer: Jean-Romain Roussel <jean-romain.roussel.1@ulaval.ca>
# Repository: CRAN
# Date/Publication: 2019-04-27 05:00:14 UTC
